/azuredeallocatevms

Azure VMs deallocation function

Primary LanguageC#

All VMs are gathered. Check which VMs are running (we only interested in those) Check if the running VMs have the tag "powerstate=alwayson". If not, deallocate (poweroff) the VM.