Last post Jun 14, 2018 05:21 AM by Nan Yu
Jun 09, 2018 07:04 AM|balu.devara|LINK
I am try to get subscriptions using REST API but bellow error is happened while login
AADSTS65005: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client's application registration. Client app ID: 75e7be70-5364-43c8-b86e-900b4bd1a80f. Resource value from
request: https://management.core.windows.net/. Resource app ID: 797f4846-ba00-4fd7-ba43-dac1f8f63013. List of valid resources from app registration: 00000003-0000-0000-c000-000000000000, 00000002-0000-0000-c000-000000000000.
Jun 11, 2018 08:09 AM|Nan Yu|LINK
AADSTS65005: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client's application registration.
The error means you did not set permissions for the application to access the Windows Azure Service Management API in Azure AD or set permissions incorrectly. Please try to config it by :
Under API Access, click Required Permissions.
At the top of this pane, click Add, then click Select an API.
Click the API that matches the search and click Select at the bottom.
Jun 13, 2018 02:11 PM|balu.devara|LINK
I have added required permissions to my azure ad but this time i am facing different issue,please find bellow error response.
"message": "The client 'c6a4afe4-efe9-4fb9-b313-d62e9d9bcf0b' with object id 'c6a4afe4-efe9-4fb9-b313-d62e9d9bcf0b' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope '/subscriptions/f0de239c-2918-484c-be23-1d5fd1935521/resourceGroups/1103-MDM-DEV-03/providers/Microsoft.Compute'."
Jun 14, 2018 05:21 AM|Nan Yu|LINK
The error messages shows you are not authorized to perform action 'Microsoft.Compute/virtualMachines/read' over scope because you don't have the relevant permissions . Ho do you get the access token to using the API ?