Hello @Don Langham
You're correct that the Azure portal doesn't provide a direct option to change the host pool for an existing application group1. However, I believe you can achieve this using the Azure PowerShell.
Let me give you step-by-step details with the AzWvd
cmdlets. Here's how you should be able to change the application group's host pool using Azure PowerShell:
Step 1: Install and Import the Az.DesktopVirtualization Module
Make sure you have the Az.DesktopVirtualization
module installed. If not, you can install it using the following command:
powershellCopy
Install-Module -Name Az.DesktopVirtualization -AllowClobber -Force
Import the module:
powershellCopy
Import-Module Az.DesktopVirtualization
Step 2: Connect to Your Azure Account
powershellCopy
Connect-AzAccount
Step 3: Get the Existing Application Group
Retrieve the details of your existing application group.
powershellCopy
$resourceGroupName = "your-resource-group-name"
$applicationGroupName = "your-application-group-name"
$appGroup = Get-AzWvdApplicationGroup -ResourceGroupName $resourceGroupName -Name $applicationGroupName
Step 4: Unregister the Application Group from the Current Host Pool
First, remove the existing association.
powershellCopy
$hostPoolName = "current-hostpool-name"
Unregister-AzWvdApplicationGroup -ResourceGroupName $resourceGroupName -HostPoolName $hostPoolName -Name $applicationGroupName
Step 5: Register the Application Group to the New Host Pool
Now, register the application group to the new host pool.
powershellCopy
$newHostPoolName = "new-hostpool-name"
Register-AzWvdApplicationGroup -ResourceGroupName $resourceGroupName -HostPoolName $newHostPoolName -Name $applicationGroupName
Step 6: Verify the Update
Check that the application group is now associated with the new host pool.
powershellCopy
Get-AzWvdApplicationGroup -ResourceGroupName $resourceGroupName -Name $applicationGroupName
These commands should help you reassign your application group to a different host pool using the latest Azure PowerShell cmdlets.
Reference: https://learn.microsoft.com/en-us/powershell/module/az.desktopvirtualization/get-azwvdapplication?view=azps-12.3.0
If it doesn't resolve your issue, please tag me in your comments and I will be happy to help you further.
If this answer resolves your query, please click "Accept as answer" as a token of appreciation**