If you use Azure Virtual Desktop (AVD), you now you have to subscribe to a workspace with the AVD client to be able to access published remote applications and/or desktop.
Well, good news as you can now use Uniform Resource Identified (URI) schemes with the client to provide direct “links” to directly launch specified AVD resources without subscribing first to the workspace.
Before you start, you must use the AVD client version 1.2.4065 (published on March 7) or later
- x64 https://go.microsoft.com/fwlink/?linkid=2139369
- x86 https://go.microsoft.com/fwlink/?linkid=2139456
- ARM64 https://go.microsoft.com/fwlink/?linkid=2139370
Next you need to have the Azure PowerShell modules (https://www.powershellgallery.com/packages/Az/) installed to capture some required details.
You are now ready to capture the required details to connect to the workspace/applications
- Connect to Azure: Connect-AzAccount
- Optional, switch the context to use the subscription where you have AVD deployed: Set-AzContext -Subscription <subscription ID>
- Get the AVD workspace ID: (Get-AzWvdWorkspace -Name <name of the workspace> -ResourceGroupName <resource group name>).ObjectID
- Get the ID’s of the published applications: Get-AzWvdApplication -ApplicationGroupName <name of the application group> -ResourceGroupName <resource group name> | FT Name, FilePath, ObjectId
Now you need to create the link(s) (ms-avd URI) – note the double quote when used with command prompt and single quote when using PowerShell:
- Command prompt: “<install path of AVD client>\msrdcw.exe” “ms-avd:connect?workspaceId=<workspace ID from the above command>&resourceid=<resource ID from the above command>&username=<user UPN>&version=0”
- PowerShell: “<install path of AVD client>\msrdcw.exe” ‘ms-avd:connect?workspaceId=<workspace ID from the above command>&resourceid=<resource ID from the above command>&username=<user UPN>&version=0’
As shown below, I have launched the published Microsoft Edge while my AVD client has not subscribed to any workspace