Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Automate creation of Azure Virtual Desktop hosts and host pools by using PowerShell, Azure CLI, Azure Resource Manager templates (ARM templates), and Bicep files

A worked example

Multiple answers

An Azure Virtual Desktop host pool named hp-eng exists in the resource group rg-avd and already has session hosts. The existing host pool and its session hosts must not be deleted or recreated.

You plan to deploy an ARM template that creates new virtual machines and adds them as session hosts to hp-eng. The template has a parameter for the host pool registration token, which is used to authorize the new virtual machines to join hp-eng. No registration token currently exists for hp-eng.

You will use Azure PowerShell to prepare the deployment.

Which two actions should you perform? Each correct answer presents part of the solution. Select two.

Choose 2 answers.
Why

A session host can join a host pool only with a valid registration token. Because no token exists for hp-eng, you create one by running New-AzWvdRegistrationInfo against the existing host pool with an expiration time, then supply the token value to the template parameter that the add-session-hosts deployment uses. The Get cmdlets retrieve existing registration data, and registering an application group serves a different purpose.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free