tenant and tenant group when connecting to management REST API

Mark Middlemist 166 Reputation points
2022-02-15T16:11:49.287+00:00

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

Mark

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

2 answers

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 19,782 Reputation points Microsoft Employee
    2022-02-17T01:20:13.483+00:00

    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 166 Reputation points
    2022-02-17T15:44:10.523+00:00

    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

    Mark

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.