Per a request this code deploys an automation account and runbook to do the following:
- Every 15 minutes check a specific host pool's VMs and if there are no current user sessions, remove the VM and re-add using a Template Spec
Scenario:
Multisession (1 User Only) or Personal Host Pool in which data is sensitive and VM needs rebuild after use.
Deployment: