Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

powershell to tell VM to shut (Deallocate) itself/how to get servicename + vm name of current VM

$
0
0

Hi all,

I have some dev VMs running in my msdn sub. I have them on a schedule to start/shut down during business hours but I also want the ability to force a 'full' shutdown from within the VM.

Do windows VMs have the azure cmdlets installed on themselves by default? Can't seem to find azure.psd1 on it and the few azure cmdlets i've tried dont work

Is there a way to get the vmname/servicename of the current vm?


Jakub @ Adelaide, Australia Blog


Viewing all articles
Browse latest Browse all 12545

Trending Articles