Skip to content

Commit a8fa93d

Browse files
committed
New article: Privat Endpoint
1 parent 05d7357 commit a8fa93d

2 files changed

Lines changed: 116 additions & 0 deletions

File tree

107 KB
Loading
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
---
2+
title: Using private endpoints with Azure Maps
3+
description: Learn how to use private endpoints with Azure Maps.
4+
author: pbrasil
5+
ms.author: peterbr
6+
ms.date: 02/26/2026
7+
ms.topic: how-to
8+
ms.service: azure-maps
9+
ms.subservice: authentication
10+
---
11+
12+
# Using private endpoints with Azure Maps
13+
14+
Azure Maps supports [Azure Private Link](https://learn.microsoft.com/en-us/azure/private-link/private-link-overview), enabling secure access to Azure Maps services through a private endpoint in your virtual network. A private endpoint assigns a private IP address from your virtual network to the Azure Maps service, so traffic between your applications and Azure Maps stays on the Microsoft backbone network instead of the public internet. This provides improved security and network isolation. You can create a private endpoint when you create an Azure Maps account or add one to an existing account.
15+
16+
## Benefits of private endpoints for Azure Maps
17+
18+
Private endpoints provide the following benefits for Azure Maps accounts:
19+
20+
- **No Public Internet Exposure:** You can isolate your Azure Maps account from the public internet to reduce exposure to external threats. Only clients within your private network can access the account. This can be done by blocking external access through the _publicNetworkAccess_ feature.
21+
- **Secure VNet Communication:** Resources in your virtual network (such as VMs and containers) communicate with Azure Maps **using private IP addresses**. Traffic stays within the VNet, **simplifying network security** and avoiding public networks, which helps meet internal security and compliance requirements.
22+
23+
> [!NOTE]
24+
> All Azure Maps REST APIs (including Render, Search, Routing, and Weather) are fully supported with Private Link, with no loss of functionality. Using Azure Maps with Private Link works the same as public access, with added security.
25+
26+
## Prerequisites
27+
28+
If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn) before you begin.
29+
30+
- An [Azure Maps account](quick-demo-map-app.md#create-an-azure-maps-account). Use a Maps account and a virtual network in the **same Azure region** for optimal performance.
31+
- **A Virtual Network and Subnet** in your Azure subscription for the private endpoint. The subnet should have available IP addresses. You need Contributor roles on both the Azure Maps account (Azure Maps Contributor) and the virtual network (Network Contributor) to create a Private Endpoint that is automatically approved. A manually approved Private Endpoint can be created with just Network Contributor role.
32+
- Optionally, decide whether to let Azure automatically manage DNS for the private endpoint (using Azure Private DNS) or if you'll manage DNS on your own. Using Azure's built-in Private DNS zone is easier in most cases.
33+
34+
## Configure a private endpoint for Azure Maps
35+
36+
To enable private connectivity for an Azure Maps account, create a private endpoint and configure DNS to route traffic through your virtual network.
37+
38+
### 1. Create the private endpoint (Portal or CLI)
39+
40+
In the Azure portal, go to **Create a resource** and search for _Private Endpoint_. You can also create a private endpoint from the **Networking** section of your Azure Maps resource. Select **Create** to open the wizard.
41+
42+
- **Basics:** Select the proper **Subscription** and **Resource Group** for the endpoint resource and choose a Name and Region (use the same region as your VNet).
43+
- **Resource:** For **Connection method**, choose _Connect to an Azure resource in my directory_. Then set:
44+
- **Resource type** = `Microsoft.Maps/accounts`. This tells Azure you want a private link to an Azure Maps account.
45+
- **Resource** = _Your Azure Maps account name_. Pick the specific Azure Maps account
46+
- **Target sub-resource** = `mapsAccount`. Azure Maps has a single private link subresource representing the account's data plane.
47+
- **Configuration:** Select the **Virtual Network** and **Subnet** where the private endpoint is placed. Ensure the subnet has space for one IP. Leave **Private DNS integration** enabled unless you plan to configure DNS manually. With DNS integration on, Azure creates a Private DNS zone for `privatelink.account.maps.azure.com` and add the necessary DNS record automatically.
48+
49+
Once creation is complete, go to your Azure Maps account in the portal and navigate to **Networking > Private endpoint connections**. You should see a new connection listed. If the private endpoint creator owns or has the proper permissions on the Azure Maps account, the connection is typically **auto-approved** (status shows **"Approved"**). If it shows **"Pending"**, manual approval may be required. After approval, the private link is established.
50+
51+
#### Example – Using Azure CLI
52+
53+
The following Azure CLI command creates a private endpoint for an Azure Maps account, equivalent to the portal steps above:
54+
55+
```azurecli
56+
az network private-endpoint create \
57+
--name <MyPrivateEndpointName> \
58+
--resource-group <MyResourceGroup> \
59+
--vnet-name <MyVNetName> \
60+
--subnet <MySubnetName> \
61+
--private-connection-resource-id "/subscriptions/<SubscriptionID>/resourceGroups/<MyResourceGroup>/providers/Microsoft.Maps/accounts/<MyMapsAccountName>" \
62+
--group-id mapsAccount \
63+
--connection-name <MyConnectionName>
64+
```
65+
66+
This command specifies the Maps account's resource ID and the `mapsAccount` subresource group, as well as the virtual network and subnet for the endpoint.
67+
68+
### 2. Configure DNS for the private endpoint
69+
70+
If you enabled **Private DNS integration** when creating the endpoint (the default), Azure has already created a Private DNS Zone for `privatelink.account.maps.azure.com` in your subscription and linked it to your VNET. In that zone, you should find a record that maps your Maps account's unique ID and region to the private IP address of the endpoint. For example, if your Maps account's Client ID is `abc123` and located in `East US`, the DNS record would look like:
71+
72+
- **Record name:** `abc123.eastus.account.maps.azure.com`
73+
- **Record value:** `10.x.y.z` - The private IP address assigned to the endpoint.
74+
75+
Clients inside the virtual network resolve the hostname to the private IP address, enabling private connectivity. Clients outside the virtual network resolve the same hostname to the Azure Maps public endpoint. This split‑horizon DNS approach lets you use a single endpoint URL both inside and outside the virtual network.
76+
77+
If you don't use automatic DNS integration, configure DNS manually so the Azure Maps account hostname
78+
(`<maps-account-client-id>.<location>.privatelink.account.maps.azure.com`) resolves to the private endpoint IP address in your network. For more information, see [Azure Private Endpoint DNS documentation](https://learn.microsoft.com/azure/private-link/private-endpoint-dns).
79+
80+
81+
### 3. Use the private endpoint in your applications
82+
83+
To use the private endpoint, configure your applications to call the **Azure Maps account-specific endpoint**. You can find this endpoint in the Azure Maps account **Overview** or **Authentication** pages, or in the private endpoint resource under **DNS configuration** (customer-visible FQDNs).
84+
85+
![Screenshot](/media/private-endpoint/dns-configuration.png)
86+
87+
The access pattern is:
88+
89+
`https://{maps-account-client-id}.{location}.privatelink.account.maps.azure.com`
90+
91+
> [!Important]
92+
> If your application continues to use the default Azure Maps endpoint (such as `atlas.microsoft.com`), requests won't be routed through the private endpoint. Azure Maps SDKs support overriding the default endpoint, so configure your SDK or connection code to use your Azure Maps account–specific hostname. When configured, requests from within your network are automatically routed through Private Link.
93+
94+
### 4. [Optional] Disable public network access
95+
96+
Even after creating a private endpoint, your Azure Maps account's public endpoints remain active by default. This allows existing applications outside the virtual network to continue working until you intentionally restrict them. If you require **exclusive private access**, disable public network access for the Maps account.
97+
98+
In the Azure portal, open your Maps account and go to **Networking**. Set **Public access** to **Disable** and save. Once completed, Azure Maps rejects **any** connection attempts over the public endpoint. This adds an extra layer of protection: even if someone has your Maps authentication key or SAS token, they can't use it from the internet once public access is off.
99+
100+
> You can also disable public access via ARM templates or the Azure CLI by setting the property `publicNetworkAccess` to `Disabled`.
101+
102+
After disabling **Public network access**, validate connectivity from each application. Public endpoints (for example, `atlas.microsoft.com`) are blocked by design, so update all application and SDK configurations to use the private DNS endpoint.
103+
104+
### Other considerations
105+
106+
- **DNS Resolution:** If you can't connect to Azure Maps through the private endpoint, verify your DNS configuration, as DNS issues are a common cause of connectivity problems.
107+
- **Multiple Networks:** You can create multiple private endpoints for a single Azure Maps account to connect from different virtual networks. Each private endpoint uses one IP address from the selected subnet.
108+
109+
Using Azure Private Link with Azure Maps keeps all application traffic on private networks. This improves security and supports enterprise network policies while maintaining full Azure Maps functionality. Azure Maps is accessed through private IP addresses and DNS, ensuring traffic remains within your controlled network boundary.
110+
111+
Ask Copilot
112+
113+
## Related content
114+
115+
- [Azure Private Endpoint private DNS zone values](azure/private-link/private-endpoint-dns)
116+
- [Azure Private Link availability](azure/private-link/availability)

0 commit comments

Comments
 (0)