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."