Reputation: 4041
I am trying to create a asp.net core based solution using the Azure Resource Manager API libraries to manage resources on a single subscription.
When I try to authenticate using an subscription co-administrator account I receive permissions errors. Below is the steps I have tried.
Created a project based on following examples: https://github.com/pratapbhaskar/azure-resource-manager-active-directory https://learn.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-api-authentication
In management portal:
Tried logging in to application using subscription co-admin account and received the following error:
AADSTS65005: The client application has requested access to resource 'https://management.core.windows.net/'. This request has failed because the client has not specified this resource in its requiredResourceAccess list.
Attempted fix:
Tried logging in to application using subscription co-admin account and received the following error:
AADSTS90093: This application requires application permissions to another application. Consent for application permissions can only be performed by an administrator. Sign out and sign in as an administrator or contact one of your organization's administrators.
Upvotes: 0
Views: 3294
Reputation: 14649
Based on the error message, the app you have config which require the admin to give the consent and the login-in account is not the Global admin in its tenant.
Please ensure that the app doesn't grant the other's application which need the admin to give the consent.
I download the code sample and config the app with the figure below, and I am able to login the app successfully:
Upvotes: 1