You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/how-to-configure-private-endpoints.md
+27-3Lines changed: 27 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,7 @@ Use the following steps to create a Private Link for an existing Azure Cosmos ac
48
48
| Resource |Select your Azure Cosmos account |
49
49
|Target sub-resource |Select the Cosmos DB API type you want to map. This defaults to only one choice for the SQL, MongoDB and Cassandra APIs. For the Gremlin and Table APIs, you can also choose *Sql* as these APIs are interoperable with the SQL API. |
50
50
|||
51
+
51
52
1. Select **Next: Configuration**.
52
53
1. In **Create a private endpoint (Preview) - Configuration**, enter or select this information:
53
54
@@ -57,15 +58,27 @@ Use the following steps to create a Private Link for an existing Azure Cosmos ac
57
58
| Virtual network| Select your virtual network. |
58
59
| Subnet | Select your subnet. |
59
60
|**Private DNS Integration**||
60
-
|Integrate with private DNS zone |Select **Yes**. |
61
-
|Private DNS Zone |Select *privatelink.documents.azure.com*|
61
+
|Integrate with private DNS zone |Select **Yes**. <br><br/> To connect privately with your private endpoint, you need a DNS record. It’s recommended that you integrate your private endpoint with a private DNS zone. You can also utilize your own DNS servers or create DNS records using the host files on your virtual machines. |
62
+
|Private DNS Zone |Select *privatelink.documents.azure.com*<br><br/> The Private DNS zone is determined automatically and can’t be changed currently by using the Azure portal.|
62
63
|||
63
64
64
65
1. Select **Review + create**. You're taken to the **Review + create** page where Azure validates your configuration.
65
66
1. When you see the **Validation passed** message, select **Create**.
66
67
67
68
When you have approved Private Links for an Azure Cosmos account, in the Azure portal the **All networks** option in the **Firewall and virtual networks** pane is greyed out.
68
69
70
+
The following table shows mapping between different Azure Cosmos account API types, supported sub resources and the corresponding private zone names. The Gremlin and Table API accounts are accessible through SQL API as well so there are 2 entries for these APIs:
71
+
72
+
|Azure Cosmos account API type |Supported sub-resources(or groupIds) |Private zone name |
After the private endpoint is provisioned, you can query the IP addresses. To view the IP addresses from Azure portal. Select **All resources**, search for the private endpoint you created earlier in this case it's "dbPrivateEndpoint3" and select the Overview tab to see the DNS settings and IP addresses:
@@ -299,7 +312,7 @@ Adding or removing regions to an Azure Cosmos account requires you to add or rem
299
312
300
313
For example, if you deploy an Azure Cosmos account in 3 regions: "West US", "Central US", and "West Europe". When you create a private endpoint for your account, 4 private IPs are reserved in the subnet. One for each region, which counts to a total of 3, and one for the global/region-agnostic endpoint.
301
314
302
-
Later if you add a new region, for example "East US" to the Azure Cosmos account. By default, the new region is not accessible from the existing private endpoint. The Azure Cosmos account administrator should refresh the private endpoint connection before accessing it form the new region.
315
+
Later if you add a new region, for example "East US" to the Azure Cosmos account. By default, the new region is not accessible from the existing private endpoint. The Azure Cosmos account administrator should refresh the private endpoint connection before accessing it form the new region.
303
316
304
317
When you run the ` Get-AzPrivateEndpoint -Name <your private endpoint name> -ResourceGroupName <your resource group name>` command, the output of the command contains the `ActionRequired` parameter, which is set to "Recreate". This value indicates that the private endpoint should be refreshed. Next the Azure Cosmos account administrator runs the `Set-AzPrivateEndpoint` command to trigger the private endpoint refresh.
305
318
@@ -313,6 +326,8 @@ A new private IP is automatically reserved in the subnet under this private endp
313
326
314
327
You can use the same steps when you remove a region. The private IP of the removed region is automatically reclaimed, and the `ActionRequired` flag becomes `None`. If you don’t have any private DNZ zone integration, you must configure your private DNS to remove the DNS record for the removed region.
315
328
329
+
DNS records in the private DNS zone are not removed automatically when a private endpoint is deleted or a region from the Azure Cosmos account is removed. You must manually remove the DNS records.
330
+
316
331
## Current limitations
317
332
318
333
The following limitations apply when using the Private Link with an Azure Cosmos account:
@@ -333,6 +348,15 @@ The following limitations apply when using the Private Link with an Azure Cosmos
333
348
334
349
* A network administrator should be granted at least the "*/PrivateEndpointConnectionsApproval" permission at the Azure Cosmos account scope by an administrator to create automatically-approved private endpoints.
335
350
351
+
### Private DNS zone integration limitations
352
+
353
+
DNS records in the private DNS zone are not removed automatically when a private endpoint is deleted or a region from the Azure Cosmos account is removed. You must manually remove the DNS records before:
354
+
355
+
* Adding a new private endpoint linked to this private DNS zone.
356
+
* Adding a new region to any database account that has private endpoints linked to this private DNS zone.
357
+
358
+
Without the above two steps, unexpected data plane issues such as data outage to the regions added after private endpoint removal may happen.
359
+
336
360
## Next steps
337
361
338
362
To learn more about the other Azure Cosmos DB security features, see the following article:
0 commit comments