Authorization Issues with Azure Virtual Desktop RemoteApps API

DILIP KUMAR 20 Reputation points
2024-10-10T13:39:15.53+00:00

Hello,

I am currently trying to use the Azure Virtual Desktop RemoteApps API, specifically the endpoint to get a list of RemoteApps, as documented here: Get a list of RemoteApps.
https://learn.microsoft.com/en-us/rest/api/virtual-desktop/remote-app/get-list?view=rest-virtual-desktop-v1

When I attempt to make a request using the "Try it" feature on the documentation page, I receive a 401 Unauthorized error. This suggests that there may be an issue with the permissions or roles assigned to my Azure account.

Can someone please guide me on the specific permissions or roles I need to assign to access this endpoint successfully? I have checked the Azure Virtual Desktop built-in roles documentation, but I am still uncertain which permissions are specifically required for this API call.

Thank you for your assistance!

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
13,326 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,722 questions
0 comments No comments
{count} votes

Accepted answer
  1. Mounika Reddy Anumandla 3,300 Reputation points Microsoft External Staff
    2024-10-14T13:25:59.8166667+00:00

    Hi DILIP KUMAR,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    As a minimum, the Azure account you use must have the Desktop Virtualization Application Group Contributor built-in role-based access control (RBAC) roles on the resource group, or on the subscription to create the resources.
    https://learn.microsoft.com/en-us/azure/virtual-desktop/publish-applications-stream-remoteapp?tabs=portal#prerequisites

    And also, If the Bearer token is incorrect or malformed, the server will reject it, resulting in a 401 error. This can occur if there are issues during the token generation process or if the token is manually copied incorrectly.
    The Bearer token authorizes your request to access specific resources within Azure, such as retrieving RemoteApps. It must be included in every API call that requires authentication.

    If you have any further queries, do let us know.

    If the answer is helpful, please click "Accept Answer" and "Upvote it."

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.