Does anyone know of a simple command to deprovision an Azure VM from a batch file on the guest machine?
Something like the Windows 'shutdown' command, but which will deprovision the VM so I'm no longer charged for it.
I found the Stop-AzureVM PowerShell cmdlet, but this requires a -ServiceName parameter, which I'm not sure of the value - I created the VM through the Azure Portal and can't see which value I'm supposed to use for this.
Does anyone know of an all purpose sequence of commands which will deprovision the current Azure VM?
Thanks Pete