I am trying to call Azure Maps with OAuth access tokens but it is throwing me 403 Forbidden with the message "Permission, capacity, or authentication issues.". I have followed procedure mentioned here: https://docs.microsoft.com/en-us/azure/azure-maps/azure-maps-authentication
- Created App Registration in AD, generated secret
- Added API permission to Azure Maps
- In Azure Maps > IAM > added the application as Map Data Reader
- Got the Access token from https://login.microsoftonline.com//oauth2/token with resource=https://atlas.microsoft.com/
- Calling https://atlas.microsoft.com/route/directions/json?api-version=1.0&query=52.50931,13.42936:52.50274,13.43872 with x-ms-client-id and Authorization=Bearer
Same procedure works correctly for my personal free subscription but not in my company's subscription. Don't know how to debug.