How to handle the error "Could not grant admin consent. Your organization does not have a subscription (or service principal) for the following API(s): Dynamics ERP" in Azure Portal
If you are an RnD minded developer, any time in your life you must have faced this situation: You needed to perform some POCs on Azure App registrations in your trial Azure instance. You are using a trial Azure sign up instance, using your credit card. You needed to let your Azure App to grant access to Dynamics ERP. So you went to Azure App registrations --> API permissions and Grant admin consent for default directory: But uh-oh, snap!!! You got this error: Could not grant admin consent. Your organization does not have a subscription (or service principal) for the following API(s): Dynamics ERP . You googled and found out this happens, when you are not a 'Global administrator'. You checked from Azure Directory users' privileges. Yes, you're already a global admin. Then? What happened? What is causing this error? The following steps, could help you in resolving the same. Read along. Step 1: visit the following site to set up a Premium P2 trial https://learn.micr...