Question
You plan to deploy Azure Virtual Desktop. The deployment will use existing virtual machines.
You create an Azure Virtual Desktop host pool.
You need to ensure that you can add the virtual machines to the host pool.
What should you do first?
- A. Register the Microsoft.DesktopVirtualization provider.
- B. Generate a registration key. Correct
- C. Run the Invoke-AzVMRunCommand cmdlet.
- D. Create a role assignment.
Explanation
To add existing virtual machines as session hosts, you first generate a registration key for the host pool, then install the Azure Virtual Desktop Agent on each VM and supply that key, followed by the Agent Boot Loader. The Microsoft.DesktopVirtualization resource provider must already be registered because the host pool exists. Invoke-AzVMRunCommand is just a way to run scripts on a VM and does not authorize registration, and a role assignment grants permissions to people but is not the step that lets the VMs register with the pool.