After you register a VM to a host pool within the Azure Virtual Desktop service, the agent regularly refreshes the VM's token whenever the VM is active. The certificate for the registration token is valid for 90 days. Because of this 90-day limit, Microsoft recommends VMs to be online for 20 minutes every 90 days so that the machine can refresh its tokens and update the agent and side-by-side stack components.
Can you add a feature that ensures that a VM is started for at least 20 minutes after, say, 60 days at the latest? Unfortunately, I already have this problem in labs and test environments, and it would certainly help to prevent a VM from having to reinstall the agent first. If Autoscale starts additional VMs and starts the VMs that have not been in use for the longest time first, this would optimize things even further and hardly any VMs would need to be started because they have not been used within the last 60 days. However, test host pools could still be affected.
https://docs.azure.cn/en-us/virtual-desktop/faq#how-often-should-i-turn-my-vms-on-to-prevent-registration-issues-
Comments (3 comments)