This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I would like to receive a HTTP post request from a web application, and then run a command on the VM (like I would when I SSH into the VM) and return the output. Is this possible using a runbook or any other Azure services?
Hi @np ,
If it's Azure VM then you could start it using Az PS Cmdlet Start-AzVM and then you can have commands stored as script in a storage blob and run those commands in the VM using Az PS cmdlet Invoke-AzVMRunCommand. For more information w.r.t it or for illustration, please refer this thread.
Let me know if you have any further queries around it. Also, If you have queries on how to implement receiving a HTTP post request from a web application, etc. I believe you would have to use curl if it has to be from the script that is stored in storage blob / use Invoke-RestMethod if it has to be from runbook itself. To provide exact implementation assistance, please provide more context like your exact use case / scenario / flow that's intended.