An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
Hi Grant Gussie,
Thanks for sharing your issue, this is a common situation when using a trial subscription.
To use Azure Maps with a trial Azure subscription and get your authentication key, you need to first set up an Azure Maps resource. The subscription alone is not enough; the Maps account must exist.
Start by signing in to the Azure portal. Go to “Create a resource”, search for “Azure Maps”, and create a new account (for example, using Gen2 and a suitable pricing tier). This step is required even if you are using a free or trial subscription.
Once the account is created, go to “All resources” in the portal and open your Azure Maps account.
Inside the resource, navigate to “Authentication” under the Settings section. Here you will find the Primary Key and Secondary Key. Copy the Primary Key, as this will act as your subscription key for calling Azure Maps APIs.
You can then use this key in your application. For example, in REST API calls, you pass it as the subscription-key parameter. Similarly, SDKs in JavaScript or .NET use this key through AzureKeyCredential.
If you are unable to see the Authentication section or keys, first confirm that the Azure Maps resource was created successfully. If it is missing or not working properly, it may help to recreate the Maps account.
For production scenarios, Microsoft Entra ID authentication is recommended, but for testing or migrating from Bing Maps, using the shared subscription key is the quickest approach.
If everything looks correct, try a simple test call with your key and endpoint to confirm basic connectivity.
I Hope this helps. Do let me know if you have any further queries.
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thankyou!