Forum Discussion
PyungraeCho Microsoft
Microsoft
Sep 01, 2021Auto Deallocation for Unused Azure Virtual Desktop Personal VMs
 Auto-Deallocation method for Azure Virtual Desktop VM that has not been used for a specific period has been introduced in various places. I would like to introduce another scenario. But this is suita...
AIDADelios
Apr 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.
jlou65535
Apr 05, 2024MCT
Hello,
Did you configure the RBAC role named "Desktop Virtualization Power On Off Contributor" for Azure Virtual Desktop app ?
Best,
JL
Did you configure the RBAC role named "Desktop Virtualization Power On Off Contributor" for Azure Virtual Desktop app ?
Best,
JL
- AIDADeliosApr 05, 2024Copper ContributorYess, but doesn't work. Machines keeps alive. - jlou65535Apr 05, 2024MCTCould you please double check the AVD application ID ? (9cdead84-a844-4324-93f2-b2e6bb768d07)
 For each schedule phase, could you please try with :
 - Disconnect settings - When disconnected for (min) : 10 minutes
 - Log off settings - When logged off for (min) : 5 minutes
 In a AVD virtual machine activity log, could you see any "Deallocate Virtual Machine" succeeded or failed operations ?
 Best,
 JL- AIDADeliosApr 05, 2024Copper ContributorHi,
 I'll try your recommendation and give you feedback.
 When you say double check the AVD application ID ? (9cdead84-a844-4324-93f2-b2e6bb768d07) what does it means?. I don't understand.
 Thanks.
 Best,