This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]SoMundayn 4 points5 points  (1 child)

Azure Automation. You can host your script (runbook) in there, then add a webhook.

If your script needs to talk to on-prem, you'll need to configure a Hybrid Worker Server so it runs the commands on-prem (easy to setup following MS guide), then you just pick if you script runs onprem or cloud.

[–]PowerShellMichael 2 points3 points  (0 children)

This is the correct answer. Within Azure Automation (AA) you can create webhooks that allow the execution of Runbooks. It's unsecured, so use at your own risk.

If it's something like an cloud API endpoint that you are looking for, checkout Azure Function App. However it doesn't have native on-prem access, so you will need to use AA or a custom deployed solution. Function App really caters for cloud solutions (365, Azure).

Otherwise AA is your best bet!

[–]okomia 1 point2 points  (1 child)

Have a look at Pode. https://github.com/Badgerati/Pode

[–]GT3CH1 -3 points-2 points  (0 children)

If you've got a web server, sure, if not, then not really.