I have a usage case where I need to send the azure vm start myvmname
and azure vm shutdown myvmname
commands via a web request.
The intention is to use only on demand instances in the workflow.
So far, I have a static front end on CloudFront, which sends an http request to an intermediary cloud web service, with the intention that this can start and stop my Azure VMs similar to using the NodeJS command line tools.
Preferences for the intermediary service are GAE, Azure or if there is a pay as you go option within AWS that would suit (constantly running an EC2 or Azure VM instance just for this purpose would be overkill).
The CloudFront static front end and Azure VMs for processing are not replaceable in this case.
The Node.js cross-platform CLI uses the Windows Azure Service Management REST API to perform all its actions. This is a public API which uses an X.509 certificate for authentication. The REST API exposes operations to manage Virtual Machines including a Start Role and Shutdown Role (with the word Role being a synonym for VM).
Note that Shutdown Role deallocates the VM completely, causing it to lose its internal IP address. Performing Shutdown Role on the only VM in the Virtual Machine cloud service causes it to lose its public VIP as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With