{"id":2825,"date":"2022-03-09T16:07:23","date_gmt":"2022-03-09T16:07:23","guid":{"rendered":"https:\/\/exceedthecloud.com\/?p=2825"},"modified":"2022-03-10T18:54:54","modified_gmt":"2022-03-10T18:54:54","slug":"deploy-virtual-desktop-host-pools-and-hosts-by-using-azure-resource-manager-templates","status":"publish","type":"post","link":"https:\/\/exceedthecloud.com\/?p=2825","title":{"rendered":"Deploy Virtual Desktop host pools and hosts by using Azure Resource Manager templates"},"content":{"rendered":"\n<p>You need to automate deployment of Azure Virtual Desktop host pools and hosts by using Azure Resource Manager templates.<\/p>\n\n\n\n<p><strong>Objectives<\/strong><\/p>\n\n\n\n<p>After completing this lab, you will be able to:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Deploy Azure Virtual Desktop host pools and hosts by using Azure Resource Manager templates<\/li><\/ul>\n\n\n\n<p><strong>Prerequisites for this labs<\/strong> :&nbsp;<a href=\"https:\/\/azure.microsoft.com\/en-us\/free\/\" target=\"_blank\" rel=\"noreferrer noopener\">Azure Account<\/a>&nbsp;\/&nbsp;<a href=\"https:\/\/github.com\/marcelin-ndjila\/Practical-Labs-Series\/blob\/master\/Azurelabs12.zip\" target=\"_blank\" rel=\"noreferrer noopener\">Download Labs Files here<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>An Azure subscription you will be using in this lab.<\/li><li>A Microsoft account or an Azure AD account with the Owner or Contributor role in the Azure subscription you will be using in this lab and with the Global Administrator role in the Azure AD tenant associated with that Azure subscription.<\/li><li>The completed lab <strong><a href=\"https:\/\/exceedthecloud.com\/?p=2660\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Prepare for deployment of Azure Virtual Desktop (AD DS)\">Prepare for deployment of Azure Virtual Desktop (AD DS)<\/a><\/strong><\/li><li>The completed lab <strong><a href=\"https:\/\/exceedthecloud.com\/?p=2740\" target=\"_blank\" rel=\"noreferrer noopener\" title=\"Deploy host pools and session hosts by using the Azure portal (AD DS)\">Deploy host pools and session hosts by using the Azure portal (AD DS)<\/a><\/strong><\/li><\/ul>\n\n\n\n<p><strong>Lab 1: Deploy Azure Virtual Desktop host pools and hosts by using Azure Resource Manager templates<\/strong><\/p>\n\n\n\n<p>The main tasks for this Lab are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Prepare for deployment of an Azure Virtual Desktop host pool by using an Azure Resource Manager template<\/li><li>Deploy an Azure Virtual Desktop host pool and hosts by using an Azure Resource Manager template<\/li><li>Verify deployment of the Azure Virtual Desktop host pool and hosts<\/li><li>Prepare for adding of hosts to the existing Azure Virtual Desktop host pool by using an Azure Resource Manager template<\/li><li>Add hosts to the existing Azure Virtual Desktop host pool by using an Azure Resource Manager template<\/li><li>Verify changes to the Azure Virtual Desktop host pool<\/li><li>Manage personal desktop assignments in the Azure Virtual Desktop host pool<\/li><\/ul>\n\n\n\n<p><strong>Task 1: Prepare for deployment of an Azure Virtual Desktop host pool by using an Azure Resource Manager template<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>From your lab computer, start a web browser, navigate to the <a href=\"https:\/\/portal.azure.com\">Azure portal<\/a>, and sign in by providing credentials of a user account with the Owner role in the subscription you will be using in this lab.<\/li><li>In the Azure portal, search for and select <strong>Virtual machines<\/strong> and, from the <strong>Virtual machines<\/strong> blade, select <strong>exceed-dc-vm11<\/strong>.<\/li><li>On the <strong>exceed-dc-vm11<\/strong> blade, select <strong>Connect<\/strong>, in the drop-down menu, select <strong>Bastion<\/strong>, on the <strong>Bastion<\/strong> tab of the <strong>exceed-dc-vm11 | Connect<\/strong> blade, select <strong>Use Bastion<\/strong>.<\/li><li>When prompted, provide the following credentials and select <strong>Connect<\/strong>:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>User Name<\/td><td><strong>Student<\/strong><\/td><\/tr><tr><td>Password<\/td><td><strong>Pa55w.rd1234<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"290\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture174.png\" alt=\"\" class=\"wp-image-2826\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture174.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture174-300x139.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, start <strong>Windows PowerShell ISE<\/strong> as administrator.<\/li><li>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, from the <strong>Administrator: Windows PowerShell ISE<\/strong> console, run the following to identify the distinguished name of the organizational unit named <strong>WVDInfra<\/strong> that will host the computer objects of the Azure Virtual Desktop pool hosts:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>(Get-ADOrganizationalUnit -Filter \"Name -eq 'WVDInfra'\").distinguishedName<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"205\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture175.png\" alt=\"\" class=\"wp-image-2827\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture175.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture175-300x99.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, from the <strong>Administrator: Windows PowerShell ISE<\/strong> script pane, run the following to identify the user principal name attribute of the <strong>ADATUM\\Student<\/strong> account that you will use to join the Azure Virtual Desktop hosts to the AD DS domain (<a href=\"mailto:student@adatum.com\"><strong>student@adatum.com<\/strong><\/a>):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(Get-ADUser -Filter \"sAMAccountName -eq 'student'\").userPrincipalName<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"289\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture176.png\" alt=\"\" class=\"wp-image-2828\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture176.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture176-300x139.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, from the <strong>Administrator: Windows PowerShell ISE<\/strong> script pane, run the following to identify the user principal name of the <strong>ADATUM\\aduser7<\/strong> and <strong>ADATUM\\aduser8<\/strong> accounts that you will use to test personal desktop assignments later in this lab:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>(Get-ADUser -Filter \"sAMAccountName -eq 'aduser7'\").userPrincipalName\n(Get-ADUser -Filter \"sAMAccountName -eq 'aduser8'\").userPrincipalName\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"289\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture177.png\" alt=\"\" class=\"wp-image-2829\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture177.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture177-300x139.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: Record all user principal name values you identified. You will need them later in this lab.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, from the <strong>Administrator: Windows PowerShell ISE<\/strong> script pane, run the following to calculate the token expiration time necessary to perform a template-based deployment:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$((get-date).ToUniversalTime().AddDays(1).ToString('yyyy-MM-ddTHH:mm:ss.fffffffZ'))<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"290\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture178.png\" alt=\"\" class=\"wp-image-2830\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture178.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture178-300x139.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: The value should resemble the format 2020-12-27T00:51:28.3008055Z. Record it since you will need it in the next task.<\/p>\n\n\n\n<p><strong>Note<\/strong>: A registration token is required to authorize a host to join the pool. The value of token&#8217;s expiration date must be between one hour and one month from the current date and time.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, start Microsoft Edge and navigate to the <a href=\"https:\/\/portal.azure.com\">Azure portal<\/a>. If prompted, sign in by using the Azure AD credentials of the user account with the Owner role in the subscription you are using in this lab.<\/li><li>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, in the Azure portal, use the <strong>Search resources, services, and docs<\/strong> text box at the top of the Azure portal page to search for and navigate to <strong>Virtual networks<\/strong> and, on the <strong>Virtual networks<\/strong> blade, select <strong>Exceed-adds-vnet11<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"364\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture179.png\" alt=\"\" class=\"wp-image-2831\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture179.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture179-300x175.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>Exceed-adds-vnet11<\/strong> blade, select <strong>Subnets<\/strong>, on the <strong>Subnets<\/strong> blade, select <strong>+ Subnet<\/strong>, on the <strong>Add subnet<\/strong> blade, specify the following settings (leave all other settings with their default values) and click <strong>Save<\/strong>:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Name<\/td><td><strong>hp2-Subnet<\/strong><\/td><\/tr><tr><td>Subnet address range<\/td><td><strong>10.0.2.0\/24<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"370\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture180.png\" alt=\"\" class=\"wp-image-2832\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture180.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture180-300x178.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, in the Azure portal, use the <strong>Search resources, services, and docs<\/strong> text box at the top of the Azure portal page to search for and navigate to <strong>Network security groups<\/strong> and, on the <strong>Network security groups<\/strong> blade, select the network security group in the <strong>exceed140-11-RG <\/strong>&nbsp;resource group.<\/li><li>On the network security group blade, in the vertical menu on the left, in the <strong>Settings<\/strong> section, click <strong>Properties<\/strong>.<\/li><li>On the <strong>Properties<\/strong> blade, click the <strong>Copy to clipboard<\/strong> icon on the right side of the <strong>Resource ID<\/strong> textbox.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"330\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture181.png\" alt=\"\" class=\"wp-image-2833\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture181.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture181-300x159.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: The value should resemble the format \/subscriptions\/de8279a3-0675-40e6-91e2-5c3728792cb5\/resourceGroups\/exceed140-11-RG \/providers\/Microsoft.Network\/networkSecurityGroups\/exceed140-cl-vm11-nsg, although the subscription ID will differ. Record it since you will need it in the next task.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Task 2: Deploy an Azure Virtual Desktop host pool and hosts by using an Azure Resource Manager template<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>From your lab computer, start a web browser, navigate to the <a href=\"https:\/\/portal.azure.com\" target=\"_blank\" rel=\"noreferrer noopener\">Azure portal<\/a>, and sign in by providing credentials of a user account with the Owner role in the subscription you will be using in this lab.<\/li><li>From your lab computer, in the same web browser window, open another web browser tab and navigate to the GitHub Azure RDS templates repository page <a href=\"https:\/\/github.com\/Azure\/RDS-Templates\/tree\/master\/ARM-wvd-templates\/CreateAndProvisionHostPool\" target=\"_blank\" rel=\"noreferrer noopener\">ARM Template to Create and provision new Azure Virtual Desktop hostpool<\/a>.<\/li><li>On the <strong>ARM Template to Create and provision new Azure Virtual Desktop hostpool<\/strong> page, select <strong>Deploy to Azure<\/strong>. This will automatically redirect the browser to the <strong>Custom deployment<\/strong> blade in the Azure portal.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"392\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture182.png\" alt=\"\" class=\"wp-image-2834\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture182.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture182-300x188.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture182-80x50.png 80w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>Custom deployment<\/strong> blade, select <strong>Edit parameters<\/strong>.<\/li><li>On the <strong>Edit parameters<\/strong> blade, select <strong>Load file<\/strong>, in the <strong>Open<\/strong> dialog box, select <strong><a href=\"file:\/\/Your\">\\\\Your<\/a> Folder\\exceed140-23_azuredeployhp23.parameters.json<\/strong>, select <strong>Open<\/strong>, and then select <strong>Save<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"423\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture183.png\" alt=\"\" class=\"wp-image-2835\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture183.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture183-300x203.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Back on the <strong>Custom deployment<\/strong> blade, specify the following settings (leave others with their existing values):<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Subscription<\/td><td>the name of the Azure subscription you are using in this lab<\/td><\/tr><tr><td>Resource Group<\/td><td>the name of a new resource group <strong>exceed140-23-RG<\/strong><\/td><\/tr><tr><td>Region<\/td><td>the name of the Azure region into which you deployed Azure VMs hosting AD DS domain controllers in the lab <strong>Prepare for deployment of Azure Virtual Desktop (AD DS)<\/strong><\/td><\/tr><tr><td>Location<\/td><td>the name of the same Azure region as the one set as the value of the <strong>Region<\/strong> parameters<\/td><\/tr><tr><td>Workspace location<\/td><td>the name of the same Azure region as the one set as the value of the <strong>Region<\/strong> parameters<\/td><\/tr><tr><td>Workspace Resource Group<\/td><td>none, since, if null, its value will be automatically set to match the deployment target resource group<\/td><\/tr><tr><td>All Application Group Reference<\/td><td>none, since there are no existing application groups in the target workspace (there is no workspace)<\/td><\/tr><tr><td>Vm location<\/td><td>the name of the same Azure region as the one set as the value of the <strong>Location<\/strong> parameters<\/td><\/tr><tr><td>Create Network Security Group<\/td><td><strong>false<\/strong><\/td><\/tr><tr><td>Network Security Group Id<\/td><td>the value of the resourceID parameter of the existing network security group you identified in the previous task<\/td><\/tr><tr><td>Token Expiration Time<\/td><td>the value of the token expiration time you calculated in the previous task<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Note<\/strong>: The deployment provisions a pool with personal desktop assignment type.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"3\"><li>On the <strong>Custom deployment<\/strong> blade, select <strong>Review + create<\/strong> and select <strong>Create<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"658\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture184.png\" alt=\"\" class=\"wp-image-2836\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture184.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture184-284x300.png 284w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: Wait for the deployment to complete before you proceed to the next task. This might take about 15 minutes.<\/p>\n\n\n\n<p><strong>Task 3: Verify deployment of the Azure Virtual Desktop host pool and hosts<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>From your lab computer, in the web browser displaying the Azure portal, search for and select <strong>Azure Virtual Desktop<\/strong>, on the <strong>Azure Virtual Desktop<\/strong> blade, select <strong>Host pools<\/strong> and, on the <strong>Azure Virtual Desktop | Host pools<\/strong> blade, select the entry <strong>exceed140-23-hp2 <\/strong>&nbsp;representing the newly deployed pool.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"413\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture185.png\" alt=\"\" class=\"wp-image-2837\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture185.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture185-300x199.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>exceed140-23-hp2 <\/strong>&nbsp;blade, in the vertical menu on the left side, in the <strong>Manage<\/strong> section, click <strong>Session hosts<\/strong>.<\/li><li>On the <strong>exceed140-23-hp2 &nbsp;| Session hosts<\/strong> blade, verify that the deployment consists of two hosts.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"367\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture186.png\" alt=\"\" class=\"wp-image-2838\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture186.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture186-300x176.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>On the <strong>exceed140-23-hp2 &nbsp;| Session hosts<\/strong> blade, in the vertical menu on the left side, in the <strong>Manage<\/strong> section, click <strong>Application groups<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"311\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture187.png\" alt=\"\" class=\"wp-image-2839\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture187.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture187-300x150.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>exceed140-23-hp2 &nbsp;| Application groups<\/strong> blade, verify that the deployment includes the <strong>Default Desktop<\/strong> application group named <strong>exceed140-23-hp2 -DAG<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Task 4: Prepare for adding of hosts to the existing Azure Virtual Desktop host pool by using an Azure Resource Manager template<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>From your lab computer, switch to the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>.<\/li><li>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, from the <strong>Administrator: Windows PowerShell ISE<\/strong> console, run the following to generate the token necessary to join new hosts to the pool you provisioned earlier in this Lab:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>$registrationInfo = New-AzWvdRegistrationInfo -ResourceGroupName 'exceed140-23-RG' -HostPoolName 'exceed140-23-hp2 ' -ExpirationTime $((get-date).ToUniversalTime().AddDays(1).ToString('yyyy-MM-ddTHH:mm:ss.fffffffZ'))<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"288\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture188.png\" alt=\"\" class=\"wp-image-2840\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture188.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture188-300x138.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, from the <strong>Administrator: Windows PowerShell ISE<\/strong> console, run the following to retrieve the value of the token and paste it into Clipboard:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$registrationInfo.Token | clip<\/code><\/pre>\n\n\n\n<p><strong>Note<\/strong>: Record the value copied into Clipboard (for example, by launching Notepad and pressing the Ctrl+V key combination to paste the content of the Clipboard into Notepad) the content of the since you will need it in the next task. Make sure to that the value you are using includes a single line of text, without any line breaks.<\/p>\n\n\n\n<p><strong>Note<\/strong>: A registration token is required to authorize a host to join the pool. The value of token&#8217;s expiration date must be between one hour and one month from the current date and time.<\/p>\n\n\n\n<p><strong>Task 5: Add hosts to the existing Azure Virtual Desktop host pool by using an Azure Resource Manager template<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>From your lab computer, in the same web browser window, open another web browser tab and navigate to the GitHub Azure RDS templates repository page <a href=\"https:\/\/github.com\/Azure\/RDS-Templates\/tree\/master\/ARM-wvd-templates\/AddVirtualMachinesToHostPool\">ARM Template to Add sessionhosts to an existing Azure Virtual Desktop hostpool<\/a>.<\/li><li>On the <strong>ARM Template to Add sessionhosts to an existing Azure Virtual Desktop hostpool<\/strong> page, select <strong>Deploy to Azure<\/strong>. This will automatically redirect the browser to the <strong>Custom deployment<\/strong> blade in the Azure portal.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"392\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture189.png\" alt=\"\" class=\"wp-image-2841\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture189.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture189-300x188.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture189-80x50.png 80w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>Custom deployment<\/strong> blade, select <strong>Edit parameters<\/strong>.<\/li><li>On the <strong>Edit parameters<\/strong> blade, select <strong>Load file<\/strong>, in the <strong>Open<\/strong> dialog box, select <strong><a href=\"file:\/\/Your\">\\\\Your<\/a> Folder\\exceed140-23_azuremodifyhp23.parameters.json<\/strong>, select <strong>Open<\/strong>, and then select <strong>Save<\/strong>.<\/li><li>Back on the <strong>Custom deployment<\/strong> blade, specify the following settings (leave others with their existing values):<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>Subscription<\/td><td>the name of the Azure subscription you are using in this lab<\/td><\/tr><tr><td>Resource Group<\/td><td><strong>exceed140-23-RG<\/strong><\/td><\/tr><tr><td>Hostpool Token<\/td><td>the value of the token you generated in the previous task<\/td><\/tr><tr><td>Hostpool Location<\/td><td>the name of the Azure region into which you deployed the hostpool earlier in this lab<\/td><\/tr><tr><td>Vm Administrator Account Username<\/td><td><strong>student<\/strong> Do not use @adatum.com<\/td><\/tr><tr><td>Vm Administrator Account Password<\/td><td><strong>Pa55w.rd1234<\/strong><\/td><\/tr><tr><td>Vm location<\/td><td>the name of the same Azure region as the one set as the value of the <strong>Hostpool Location<\/strong> parameters<\/td><\/tr><tr><td>Create Network Security Group<\/td><td><strong>false<\/strong><\/td><\/tr><tr><td>Network Security Group Id<\/td><td>the value of the resourceID parameter of the existing network security group you identified in the previous task<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"4\"><li>On the <strong>Custom deployment<\/strong> blade, select <strong>Review + create<\/strong> and select <strong>Create<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"667\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture190.png\" alt=\"\" class=\"wp-image-2842\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture190.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture190-281x300.png 281w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: Wait for the deployment to complete before you proceed to the next task. This might take about 5 minutes.<\/p>\n\n\n\n<p><strong>Task 6: Verify changes to the Azure Virtual Desktop host pool<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>From your lab computer, in the web browser displaying the Azure portal, search for and select <strong>Virtual machines<\/strong> and, on the <strong>Virtual machines<\/strong> blade, note that the list includes an additional virtual machine named <strong>exceed-23-p2-2<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"295\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture191.png\" alt=\"\" class=\"wp-image-2843\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture191.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture191-300x142.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>From your lab computer, switch to the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>.<\/li><li>Within the Remote Desktop session to <strong>exceed-dc-vm11<\/strong>, from the <strong>Administrator: Windows PowerShell ISE<\/strong> console, run the following to verify that the third host was successfully joined to the <strong>adatum.com<\/strong> AD DS domain:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-ADComputer -Filter \"sAMAccountName -eq 'exceed-23-p2-2$'\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"291\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture192.png\" alt=\"\" class=\"wp-image-2844\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture192.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture192-300x140.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Switch back to your lab computer, in the web browser displaying the Azure portal, search for and select <strong>Azure Virtual Desktop<\/strong>, on the <strong>Azure Virtual Desktop<\/strong> blade, select <strong>Host pools<\/strong> and, on the <strong>Azure Virtual Desktop | Host pools<\/strong> blade, select the entry <strong>exceed140-23-hp2 <\/strong>&nbsp;representing the newly modified pool.<\/li><li>On the <strong>exceed140-23-hp2 <\/strong>&nbsp;blade, review the <strong>Essentials<\/strong> section and verify that the <strong>Host pool type<\/strong> is set to <strong>Personal<\/strong> with the <strong>Assignment type<\/strong> set to <strong>Automatic<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"509\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture193.png\" alt=\"\" class=\"wp-image-2845\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture193.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture193-300x245.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>On the <strong>exceed140-23-hp2 <\/strong>&nbsp;blade, in the vertical menu on the left side, in the <strong>Manage<\/strong> section, click <strong>Session hosts<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"306\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture194.png\" alt=\"\" class=\"wp-image-2846\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture194.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture194-300x147.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>exceed140-23-hp2 &nbsp;| Session hosts<\/strong> blade, verify that the deployment consists of three hosts.<\/li><\/ul>\n\n\n\n<p><strong>Task 7: Manage personal desktop assignments in the Azure Virtual Desktop host pool<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On your lab computer, in the web browser displaying the Azure portal, on the <strong>exceed140-23-hp2 &nbsp;| Session hosts<\/strong> blade, in the vertical menu on the left side, in the <strong>Manage<\/strong> section, select <strong>Application groups<\/strong>.<\/li><li>On the <strong>exceed140-23-hp2 &nbsp;| Application groups<\/strong> blade, in the list of application groups select <strong>exceed140-23-hp2 -DAG<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"336\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture195.png\" alt=\"\" class=\"wp-image-2847\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture195.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture195-300x162.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>exceed140-23-hp2 -DAG<\/strong> blade, in the vertical menu on the left, select <strong>Assignments<\/strong>.<\/li><li>On the <strong>exceed140-23-hp2 -DAG | Assignments<\/strong> blade, select <strong>+ Add<\/strong>.<\/li><li>On the <strong>Select Azure AD users or user groups<\/strong> blade, select <strong>exceed140-wvd-personal<\/strong> and click <strong>Select<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"430\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture196.png\" alt=\"\" class=\"wp-image-2848\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture196.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture196-300x207.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: Now let&#8217;s review the experience of a user connecting to the Azure Virtual Desktop host pool.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>From your lab computer, in the browser window displaying the Azure portal, search for and select <strong>Virtual machines<\/strong> and, on the <strong>Virtual machines<\/strong> blade, select the <strong>exceed-cl-vm11<\/strong> entry.<\/li><li>On the <strong>exceed-cl-vm11<\/strong> blade, select <strong>Connect<\/strong>, in the drop-down menu, select <strong>Bastion<\/strong>, on the <strong>Bastion<\/strong> tab of the <strong>exceed-cl-vm11 | Connect<\/strong> blade, select <strong>Use Bastion<\/strong>.<\/li><li>When prompted, provide the following credentials and select <strong>Connect<\/strong>:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><td><strong>Setting<\/strong><\/td><td><strong>Value<\/strong><\/td><\/tr><\/thead><tbody><tr><td>User Name<\/td><td><a href=\"mailto:Student@adatum.com\"><strong>Student@adatum.com<\/strong><\/a><\/td><\/tr><tr><td>Password<\/td><td><strong>Pa55w.rd1234<\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"4\"><li>Within the Remote Desktop session to <strong>exceed-cl-vm11<\/strong>, click <strong>Start<\/strong> and, in the <strong>Start<\/strong> menu, select the <strong>Remote Desktop<\/strong> client app.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"263\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture197.png\" alt=\"\" class=\"wp-image-2849\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture197.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture197-300x126.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>In the Remote Desktop window, click the ellipsis icon in the upper right corner, in the dropdown menu, click <strong>Unsubscribe<\/strong>, and, when prompted for confirmation, click <strong>Continue<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"397\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture198.png\" alt=\"\" class=\"wp-image-2850\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture198.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture198-300x191.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture198-80x50.png 80w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>Within the Remote Desktop session to <strong>exceed-cl-vm11<\/strong>, in the Remote Desktop window, on the <strong>Let&#8217;s get started page<\/strong>, click <strong>Subscribe<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"311\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture199.png\" alt=\"\" class=\"wp-image-2851\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture199.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture199-300x150.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>In the <strong>Remote Desktop<\/strong> client window, select <strong>Subscribe<\/strong> and, when prompted, sign in with the <strong>aduser7<\/strong> credentials, by providing its userPrincipalName and <strong>Pa55w.rd1234<\/strong> as its password.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"396\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture200.png\" alt=\"\" class=\"wp-image-2852\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture200.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture200-300x190.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture200-80x50.png 80w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: Alternatively, in the <strong>Remote Desktop<\/strong> client window, select <strong>Subscribe with URL<\/strong>, in the <strong>Subscribe to a Workspace<\/strong> pane, in the <strong>Email or Workspace URL<\/strong>, type <strong><a href=\"https:\/\/rdweb.wvd.microsoft.com\/api\/arm\/feeddiscovery\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/rdweb.wvd.microsoft.com\/api\/arm\/feeddiscovery<\/a><\/strong>, select <strong>Next<\/strong>, and, once prompted, sign in with the <strong>aduser7<\/strong> credentials (using its userPrincipalName attribute as the user name and the password you set when creating this account).<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On the <strong>Remote Desktop<\/strong> page, double-click the <strong>SessionDesktop<\/strong> icon, when prompted for credentials, type the same password again, select the <strong>Remember me<\/strong> checkbox, and click <strong>OK<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"391\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture201.png\" alt=\"\" class=\"wp-image-2853\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture201.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture201-300x188.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture201-80x50.png 80w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In the <strong>Stay signed in to all your apps<\/strong> window, clear the checkbox <strong>Allow my organization to manage my device<\/strong> checkbox and select <strong>No, sign in to this app only<\/strong>.<\/li><li>Verify that <strong>aduser7<\/strong> successfully signed in via Remote Desktop to a host.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"431\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture202.png\" alt=\"\" class=\"wp-image-2854\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture202.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture202-300x207.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Within the Remote Desktop session to one of the hosts as <strong>aduser7<\/strong>, right-click <strong>Start<\/strong>, in the right-click menu, select <strong>Shut down or sign out<\/strong> and, in the cascading menu, click <strong>Sign out<\/strong>.<\/li><\/ul>\n\n\n\n<p><strong>Note<\/strong>: Now let&#8217;s switch the personal desktop assignment from the direct mode to automatic.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\" start=\"2\"><li>Switch to your lab computer, to the web browser displaying the Azure portal, on the <strong>exceed140-23-hp2 -DAG | Assignments<\/strong> blade, in the informational bar directly above the list of assignments, click the <strong>Assign VM<\/strong> link. This will redirect you to the <strong>exceed140-23-hp2 &nbsp;| Session hosts<\/strong> blade.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"410\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture203.png\" alt=\"\" class=\"wp-image-2855\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture203.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture203-300x197.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>On the <strong>exceed140-23-hp2 &nbsp;| Session hosts<\/strong> blade, verify that one of the hosts has <strong>aduser7<\/strong> listed in the <strong>Assigned User<\/strong> column.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"305\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture204.png\" alt=\"\" class=\"wp-image-2856\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture204.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture204-300x147.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: This is expected since the host pool is configured for automatic assignment.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>On your lab computer, in the web browser window displaying the Azure portal, open the <strong>PowerShell<\/strong> shell session within the <strong>Cloud Shell<\/strong> pane.<\/li><li>From the PowerShell session in the Cloud Shell pane, run the following to switch to the direct assignment mode:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Update-AzWvdHostPool -ResourceGroupName 'exceed140-23-RG' -Name 'exceed140-23-hp2 ' -PersonalDesktopAssignmentType Direct<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"104\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture205.png\" alt=\"\" class=\"wp-image-2857\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture205.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture205-300x50.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>On your lab computer, in the web browser window displaying the Azure portal, navigate to the <strong>exceed140-23-hp2 <\/strong>&nbsp;host pool blade, review the <strong>Essentials<\/strong> section and verify that the <strong>Host pool type<\/strong> is set to <strong>Personal<\/strong> with the <strong>Assignment type<\/strong> set to <strong>Direct<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"239\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture206.png\" alt=\"\" class=\"wp-image-2858\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture206.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture206-300x115.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>Switch back to the Remote Desktop session to <strong>exceed-cl-vm11<\/strong>, in the <strong>Remote Desktop<\/strong> window, click the ellipsis icon in the upper right corner, in the dropdown menu, click <strong>Unsubscribe<\/strong>, and, when prompted for confirmation, click <strong>Continue<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"353\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture207.png\" alt=\"\" class=\"wp-image-2859\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture207.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture207-300x170.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Within the Remote Desktop session to <strong>exceed-cl-vm11<\/strong>, in the <strong>Remote Desktop<\/strong> window, on the <strong>Let&#8217;s get started<\/strong> page, click <strong>Subscribe<\/strong>.<\/li><li>When prompted to sign in, on the <strong>Pick an account<\/strong> pane, click <strong>Use another account<\/strong>, and, when prompted, sign in by using the user principal name of the <strong>aduser8<\/strong> user account with the password you set when creating this account.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"391\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture208.png\" alt=\"\" class=\"wp-image-2860\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture208.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture208-300x188.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture208-80x50.png 80w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>In the <strong>Stay signed in to all your apps<\/strong> window, clear the checkbox <strong>Allow my organization to manage my device<\/strong> checkbox and select <strong>No, sign in to this app only<\/strong>.<\/li><li>On the <strong>Remote Desktop<\/strong> page, double-click the <strong>SessionDesktop<\/strong> icon, verify that you receive an error message stating <strong>We couldn&#8217;t connect because there are currently no available resources. Try again later or contact tech support for help if this keeps happening<\/strong>, and click <strong>OK<\/strong>.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"353\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture209.png\" alt=\"\" class=\"wp-image-2861\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture209.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture209-300x170.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: This is expected since the host pool is configured for direct assignment and <strong>aduser8<\/strong> has not been assigned a host.<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Switch to your lab computer, to the web browser displaying the Azure portal and, on the <strong>exceed140-23-hp2 &nbsp;| Session hosts<\/strong> blade, select the <strong>(Assign)<\/strong> link in the <strong>Assigned User<\/strong> column next to one of the two remaining unassigned hosts.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"303\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture210.png\" alt=\"\" class=\"wp-image-2862\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture210.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture210-300x146.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>On the <strong>Assign a user<\/strong>, select <strong>aduser8<\/strong>, click <strong>Select<\/strong> and, when prompted for confirmation, click <strong>OK<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"826\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture211.png\" alt=\"\" class=\"wp-image-2863\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture211.png 565w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture211-205x300.png 205w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"88\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture212.png\" alt=\"\" class=\"wp-image-2864\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture212.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture212-300x42.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"305\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture213.png\" alt=\"\" class=\"wp-image-2865\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture213.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture213-300x147.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>Switch back to the Remote Desktop session to <strong>exceed-cl-vm11<\/strong>, in the <strong>Remote Desktop<\/strong> window, double-click the <strong>SessionDesktop<\/strong> icon, when prompted for the password, type the password you set when creating this user account, click <strong>OK<\/strong>, and verify that you can successfully sign in to the assigned host.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"397\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture214.png\" alt=\"\" class=\"wp-image-2866\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture214.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture214-300x191.png 300w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture214-80x50.png 80w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"433\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture215.png\" alt=\"\" class=\"wp-image-2867\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture215.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture215-300x208.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Lab 2: Stop and deallocate Azure VMs provisioned in the lab<\/strong><\/p>\n\n\n\n<p>The main tasks for this Lab are as follows:<\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Stop and deallocate Azure VMs provisioned in the lab<\/li><\/ul>\n\n\n\n<p><strong>Note<\/strong>: In this Lab, you will deallocate the Azure VMs provisioned in this lab to minimize the corresponding compute charges<\/p>\n\n\n\n<p><strong>Task 1: Deallocate Azure VMs provisioned in the lab<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\" type=\"1\"><li>Switch to the lab computer and, in the web browser window displaying the Azure portal, open the <strong>PowerShell<\/strong> shell session within the <strong>Cloud Shell<\/strong> pane.<\/li><li>From the PowerShell session in the Cloud Shell pane, run the following to list all Azure VMs created in this lab:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-AzVM -ResourceGroup 'exceed140-23-RG'<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"165\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture216.png\" alt=\"\" class=\"wp-image-2868\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture216.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture216-300x79.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>From the PowerShell session in the Cloud Shell pane, run the following to stop and deallocate all Azure VMs you created in this lab:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-AzVM -ResourceGroup 'exceed140-23-RG' | Stop-AzVM -NoWait -Force<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"187\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture217.png\" alt=\"\" class=\"wp-image-2869\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture217.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture217-300x90.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p><strong>Note<\/strong>: The command executes asynchronously (as determined by the -NoWait parameter), so while you will be able to run another PowerShell command immediately afterwards within the same PowerShell session, it will take a few minutes before the Azure VMs are actually stopped and deallocated.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"283\" src=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture218.png\" alt=\"\" class=\"wp-image-2870\" srcset=\"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture218.png 624w, https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/Picture218-300x136.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p>Congratulations, you are now able to automate deployment of Azure Virtual Desktop host pools and hosts by using Azure Resource Manager templates.<\/p>\n\n\n\n<p><mark class=\"kt-highlight\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-virtue-primary-color\">Reminder: Don&#8217;t forget to delete or shutdown all unused Azure resources after your labs for cost saving<\/mark><\/mark><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You need to automate deployment of Azure Virtual Desktop host pools and hosts by using Azure Resource Manager templates. Objectives After completing this lab, you will be able to: Deploy Azure Virtual Desktop host pools and hosts by using Azure &hellip; <a href=\"https:\/\/exceedthecloud.com\/?p=2825\">Continued<\/a><\/p>\n","protected":false},"author":1,"featured_media":2873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"kt_blocks_editor_width":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[102,98,4,19],"tags":[28,99,35,31],"class_list":["post-2825","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure-virtual-desktop","category-powershell","category-practical-labs-series","category-virtual-machines","tag-azure-network","tag-powershell","tag-virtual-machines","tag-virtual-network"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/exceedthecloud.com\/wp-content\/uploads\/2022\/03\/istockphoto-1081869356-612x612-1.jpg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/2825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2825"}],"version-history":[{"count":7,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/2825\/revisions"}],"predecessor-version":[{"id":2928,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/posts\/2825\/revisions\/2928"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=\/wp\/v2\/media\/2873"}],"wp:attachment":[{"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exceedthecloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}