How to locate an Azure Maps subscription obtained in 2018-2019

Saumye Navarathna 20 Reputation points
2024-05-23T19:06:36.5066667+00:00

I am encountering a problem where my Azure Maps Control APIs are returning a 401 Unauthorized error, with the response as follows:

{
  "error": {
    "code": "InvalidKey",
    "message": "The provided key was incorrect or the account resource does not exist.",
    "target": "WWW-Authenticate",
    "details": []
  }
}

One of the APIs that I am trying to access is https://atlas.microsoft.com/map/tileset?api-version=2.1&language=en-US&tilesetId=microsoft.traffic.relative. These have been used inside the project for around five years. However, I am new to this project, and I don't know where the subscription was obtained. I have checked the Azure Portal, but I can't see any resources under Azure Maps or Azure Maps Resources.

Can anyone help me locate where the subscription was obtained in 2018? Unfortunately, there is no documentation, and no one who previously worked on this project is available.

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
633 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 16,066 Reputation points Microsoft Employee
    2024-05-24T00:23:00.1566667+00:00

    If off, is it only the one service where you are getting this error? Are other Azure Maps services working for you? If they others are working, double check that the subscription keys are the same (easy to clip off a character or two when copy/pasting).

    As you mentioned, looking in your Azure subscription to see if you can locate the Azure Maps resource. Since 2018/2019 there was a new pricing structure that went out called "Gen2". However, Gen1 pricing is not planned to be retired until 2026 as documented here: https://learn.microsoft.com/en-us/azure/azure-maps/how-to-manage-pricing-tier So that shouldn't be the issue. If you do find the subscription, you will want to go into the pricing tier and update it to use Gen2 before that retirement date.

    If you can't find the Azure Maps resource in your teams/companies Azure Subscription, its possible that someone within your team/company accidentally deleted the resource. In that case, simply create a new Azure Maps resource in your subscription, retrieve a new shared key or consider one of the increased security auth options. Here are some related docs:

    0 comments No comments