Load Testing for Azure Virtual Desktop (AVD) Using PowerShell

Azim 56 Reputation points
2024-12-20T07:58:35.2666667+00:00

Hi,

I've created a PowerShell script sourced from the web to perform load testing (also known as synthetic testing) by simulating multiple users accessing servers in Azure Virtual Desktop (AVD).

However, I've encountered a blocker while generating an access token from the Azure portal through the script. I've set up the app registration, assigned API permissions (Microsoft Graph - read.all for both Delegated and Application), and retrieved the secret value.

I'm receiving the following error:

The resource principal named https://rdweb.wvd.microsoft.com was not found in the tenant named ABC COMPANY. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.

Any guidance on resolving this issue would be appreciated!

Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,841 questions
Windows for business | Windows Server | User experience | PowerShell
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 16,720 Reputation points MVP Moderator
    2024-12-20T08:18:32.9866667+00:00

    Hello Azim , Welcome to MS Q&A

    The error message indicates that the resource principal https://rdweb.wvd.microsoft.com was not found in the tenant named ABC COMPANY. This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. It is also possible that the authentication request was sent to the wrong tenant.

    To resolve this issue, please ensure the following:

    1. The application https://rdweb.wvd.microsoft.com has been installed and consented to by an administrator in the tenant ABC COMPANY.
    2. The authentication request is being sent to the correct tenant.

    If you need further assistance, please provide more details about your Azure Virtual Desktop setup and the PowerShell script you are using.

    Kindly let us know with further question or details

    Thanks

    Deepanshu


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.