Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 2.43 KB

File metadata and controls

38 lines (28 loc) · 2.43 KB

Start VM On Connect

This solution will deploy Start VM On Connect. The feature allows stopped / deallocated VMs to be started on demand when an end user requests a session host from their assigned application group using the AVD client. For more details, see the Microsoft Learn page for this feature: Start VM On Connect.

Requirements

  • Permissions: below are the minimum required permissions to deploy this solution.
    • User Access Administrator on the target Subscription
    • Desktop Virtualization Host Pool Contributor on the resource group containing the target host pool
  • Resources: this solution assumes a host pool already exists in the target subscription.

Deployment Options

Azure portal UI

Deploy to Azure Deploy to Azure Gov

PowerShell

New-AzDeployment `
    -Location '<Azure location>' `
    -TemplateFile 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/brownfield/startVmOnConnect/solution.json' `
    -AvdObjectId '<Object ID for the AVD / WVD application in Microsoft Entra ID>' `
    -HostPoolResourceId '<Resource ID for the target host pool>' `
    -Verbose

Azure CLI

az deployment sub create \
    --location '<Azure location>' \
    --template-uri 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/brownfield/startVmOnConnect/solution.json' \
    --parameters \
        AvdObjectId '<Object ID for the AVD / WVD application in Microsoft Entra ID>' \
        HostPoolResourceId '<Resource ID for the target host pool>'