This solution will deploy the AVD agents to a VM.
- 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
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
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>'