Automatically deallocate VMs that may just be stopped.
Add a catchall for VMs that may be stopped, but not de-allocated, to be automatically de-allocated when the specified automatic shutdown time comes. Therefore, saving the end-user some dollars.
Lester Waters commented
How about a way to automatically deallocate if a machine is shutdown? I'd be happy for this to be an Azure extension within the VM, as well as an option within Azure itself.
We have recently added an auto shutdown policy feature in DevTest Labs that lets the lab owner enforce a shutdown policy on the lab to make sure each VM in the lab has a shutdown schedule set.
This will help lab owners save costs from endless running machines in the lab.
Learn more about this feature here: https://blogs.msdn.microsoft.com/devtestlab/2018/10/19/azure-devtest-labs-configure-enforcing-auto-shutdown-schedule-for-your-lab/
Let us know if this solves your problem.
I would actually fancy automatic deallocation of a VM after a certain time in stopped-state (e.g. 1h). Currently only a complicated workaround with runbooks can be implemented.