- In Azure Devops -> %Your AVD Project% -> Pipelines -> All -> click '2.1_AVD Hostpool Only Deployment pipeline'
- Enter a username for a account that can join computers to a domain (in my case I use the domain admin account I was using in previous challenges =avdadmin)
- Enter the users password.
- Enter the name of the HostPool to create (e.g 'HP1')
- Enter a name to be used as prefix for the VMs (aka desktops aka session hosts) (e.g. 'AVD-HOST')
- Enter a comma separated list (arry) of names for the desktops to create (e.g. '0,1')
- this will result in VMs: AVD-HOST-0 and AVD-HOST-1 to be created
- Enter a name for the subnet that should be used for placing the VMs into. (e.g. 'snet-HP1')
- Enter the resource group name for the VMs to be placed into. (e.g. 'rg-avdPoC-HP1')
- Enter an organizational unit (OU) where the VMs to be placed in Active Directory. (e.g. 'OU=HostPool1,OU=AVD,DC=contoso,DC=local')
- Hit Run.
If you want to remove hosts (e.g. because you want to rerun the pipeline) - cleanup by doing:
- [Azure Portal] -> Azure Virtual Desktop -> Host Pools -> HP1 -> Session Hosts -> select all session hosts -> Remove
- [Azure Portal] -> Resource Groups -> select your %resourceGroupHostPool% (e.g. rg-avdPoC-HP1) -> select all resources -> remove.