Is the API URL is Azure Management API or EA Reporting API?
EA API as the URL starts with https://consumption.azure.com. Azure Management API as the URL starts https://management.azure.com.
Where is the API Key obtained from?
Azure AD . EA Portal.
Unfortunately, EA API doesn't work with tokens issued by AAD. Use the token generated from EA Portal needs to be used with EA Reporting API.
That's the right API Key, proceed with error code checking!.
Where is the API Key obtained from?
Azure AD. EA Portal.
EA Portal API Keys cannot be used with Azure Management API. Please use token issued from the Azure AD to make the call..
Does the service principal / user principal has access to scope?
Yes. No.
Verify the error code and proceed.
Assign permission to the user principal or service principal and then retry.