Deallocate non-AVD VMs when shutdown by user

Occasional Contributor

There are few posts about how to properly deallocate VMs which are part of Azure Virtual Desktop (AVD). I'm interested in a more general approach - possibly involving some kind of automation.


Is there a way to automatically deallocate VMs which have a certain tag and are shutdown by the user? Can I somehow detect the "shutdown" state by automation and process it accordingly? I don't care about the actual automation tool, but it should preferably work on the Azure level and not depend on a certain VM configuration.

0 Replies