Forum Discussion
Auto Deallocation for Unused Azure Virtual Desktop Personal VMs
PyungraeCho Hi,
The process worked great until recent WVD agent updates making WVD status as 'Shutdown' rather than 'Unavailable'.
https://learn.microsoft.com/en-us/answers/questions/1193772/what-is-the-different-between-shutdown-unavailable
Just curious if WVDs can be ''Stopped (Deallocated)' directly from 'Shutdown' status.
PyungraeCho I received an email about "Migrate your runbooks to managed identities in Azure Automation by 30 September 2023"
This is something related to this scripts? Something to do?
Regards,
Wilson
- jlou65535Aug 22, 2023MCTYes, you have to take care.
Because my env is personal AVD VMs, I decided to change it by the new feature for AVD Auto-scaling : https://jlou.eu/avd-solo-start-and-stop/- AIDADeliosApr 05, 2024Copper Contributor
jlou65535 Hello,
I've configured an scaling plan for my personal pool but never shutdown the virtual machines.
I had followed your link https://jlou.eu/avd-solo-start-and-stop/ but machines never shutdown.
I have an AVD personal pool wit 10 VMs. I've create a scaling plan and associated to the pool.
My scaling's plan configuration is:
- Ram-up --> 07:00 AM, start vm on connect active. Don't turn VMs on at start time. Disconnect setting and log og settings in shutdownn 0 minutes.
- Peak hours --> 08:00 AM, start vm on connect active. Disconnect setting and log og settings in shutdown 0 minutes.
- Ramp-down --> 03:00 PM, start vm on connect active. Disconnect setting and log og settings in shutdown 0 minutes.
- Off.peak hours --> 03:30 PM, start vm on connect active. Disconnect setting and log og settings in shutdown 0 minutes.
Whether I disconnect the user session or close the windows avd client the VMs never shutdown and put in the deallocated state.
How can I fix it? .
Thanks in advance.
- jlou65535Apr 05, 2024MCTHello,
Did you configure the RBAC role named "Desktop Virtualization Power On Off Contributor" for Azure Virtual Desktop app ?
Best,
JL