Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 2.43 KB

File metadata and controls

48 lines (36 loc) · 2.43 KB

Deploy AVD agents to VM

This solution will deploy the AVD agents to a VM.

Requirements

  • Permissions: below are the minimum required permissions to deploy this solution
    • Virtual machine contributor
    • Desktop Virtualization Host Pool Contributor
    • Key Vault Contributor
  • Resources: this solution assumes the following items already exists:
    • Virtual Machine
    • Key Vault
    • Host pool

Deployment Options

Azure portal UI

Deploy to Azure Deploy to Azure Gov

PowerShell

New-AzSubscriptionDeployment `
    -Location '<Azure location>' `
    -TemplateFile 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/brownfield/addAvdAgents/deploy.bicep' `
    -vmLocation '<VM location>' `
    -vmResourceId '<resource ID of the VM where the AVD agents will be installed>' `
    -hostPoolResourceId '<resource ID of the host pool to which the VM will be registered>' `
    -keyVaultResourceId '<resource ID of the key vault where the host pool registration token will be stored>' `
    -Verbose

Azure CLI

az deployment sub create \
    --location '<Azure location>' \
    --template-uri 'https://raw.githubusercontent.com/Azure/avdaccelerator/main/workload/brownfield/addAvdAgents/deploy.bicep' \
    --parameters \
        vmLocation '<VM location>' \
        vmResourceId '<resource ID of the VM where the AVD agents will be installed>' \
        hostPoolResourceId '<resource ID of the host pool to which the VM will be registered>' \
        keyVaultResourceId '<resource ID of the key vault where the host pool registration token will be stored>'