Obtain the Azure Maps Account Values
This section describes where to find, in the Azure portal (https://portal.azure.com), the values that you enter in the Azure Maps Account page. Collect the values for the Authentication mode that you want to use before you configure the page.
Shared Key values
In Shared Key mode, Live Platform authenticates with a subscription key of the Azure Maps account. Both values are shown in the same Azure portal page.
|
Value |
Where to find it |
|---|---|
|
Client ID |
Open the Azure Maps account, and then select Settings > Authentication. Copy the Client ID value. This is the ID of the Azure Maps account, not of an App Registration. |
|
Primary Key |
In the same Authentication page, under Shared Key Authentication, copy the Primary Key. Shared key authentication must be enabled for the Azure Maps account. |
The Primary Key does not expire. If you regenerate the key in the Azure portal, enter the new key in the Azure Maps Account page and click Apply Changes; otherwise address lookups fail.
SAS Token values
In SAS Token mode, Live Platform signs in with an App Registration, calls Azure Resource Manager to request a short-lived SAS token for the Azure Maps account, and uses the token for address lookups. The token is issued on behalf of a user-assigned managed identity. You therefore need to configure values in the following locations: the App Registration, the Azure Maps account, and the managed identity.
|
Value |
Where to find it |
|---|---|
|
App Registration (Microsoft Entra ID > App registrations) |
|
|
Tenant ID |
Open the App Registration, and in the Overview page, copy the Directory (tenant) ID. It is also shown in Microsoft Entra ID > Overview > Tenant ID. The App Registration must be in the same tenant as the Azure Maps account. |
|
Client ID |
In the Overview page of the App Registration, copy the Application (client) ID. |
|
Client Secret |
In the App Registration, select Certificates & secrets > Client secrets > New client secret, enter a description and expiry period, and then click Add. Copy the Value column (not the Secret ID) immediately; the Azure portal displays it only once. |
|
Azure Maps account (Azure Maps Accounts > your account > Overview) |
|
|
Subscription ID |
In the Overview page of the Azure Maps account, copy the Subscription ID (a GUID; not the subscription name). |
|
Resource Group Name |
In the same Overview page, copy the Resource group name. |
|
Maps Account Name |
The name of the Azure Maps account is shown at the top of the Overview page and in the Azure Maps Accounts list. |
|
User-assigned managed identity (Managed Identities) |
|
|
User-Assigned Identity Principal ID |
Open Managed Identities, select the user-assigned identity, and in the Overview page, copy the Object (principal) ID. Do not use the Client ID of the identity. |
In addition, make sure that the following access is configured on the Azure Maps account (Access control (IAM) > Add role assignment):
| ■ | The App Registration has a role that allows it to generate SAS tokens for the account, for example, Contributor. |
| ■ | The user-assigned managed identity has the Azure Maps Data Reader role. |
| ● | The client secret expires at the end of the period that you selected. Create a new secret before it expires, enter it in the Azure Maps Account page, and click Apply Changes. |
| ● | If Verify fails, check the following: a permission error usually means that a role assignment above is missing; a "not found" error usually means that the Subscription ID, Resource Group Name or Maps Account Name is wrong. |
See also Configure Shared Key Authentication and Configure SAS Token Authentication.