tenant and tenant group when connecting to management REST API

Mark Middlemist 161 Reputation points

Hi All

We're in the process of moving from classic WVD to the new Azure Virtual Desktop.

One part of the process that is critical to us is the ability to automate the addition/removal of user mappings to application groups. In the classic system this is a mess of powershell etc, which we're looking forward to removing.

Looking at the management api I'm assuming it's the "Assign Application Role" endpoint ( https://learn.microsoft.com/en-us/rest/api/virtual-desktop/app-group/assign-application-role ) that we need to be using, except that I'm not sure what values we should be using for tenantGroupName and tenantName in the AVD setup?

Any help would be very much appreciated

Thanks in advance


Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,178 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 15,442 Reputation points Microsoft Employee

    Hi @Mark Middlemist

    Issue summary:
    You are migrating from classic WVD to AVD and looking for the best way to achieve it. You are also looking for information on the management API.

    Recommendation :
    The API referenced in your post is the legacy API for WVD classic. It can’t be used for the current ARM-based version of AVD.

    The App Group related API is documented here: https://learn.microsoft.com/en-us/rest/api/desktopvirtualization/application-groups

    We also offer PowerShell modules to automate the migration from classic to the current model: https://learn.microsoft.com/en-us/azure/virtual-desktop/automatic-migration

    Hope that helps.

    0 comments No comments

  2. Mark Middlemist 161 Reputation points

    Many thanks for the response, and that makes sense

    Just looking through the API reference I can't spot where we can grant users access to the application groups. If you can point me to that bit then that should get us where we need to be

    We are specifically avoiding use of powershell for this automation as it causes several issues in our existing system and are looking to remove all use of it in the new version

    Thanks again


    0 comments No comments