Step 3. Configure Private Endpoints
To configure DNS settings for the private endpoints created at step 2, do the following:
- In the Private access section of the Networking window of the Cosmos DB for PostgreSQL account for which you created the private endpoints, locate the private endpoint that you want to configure and click the link in the Private endpoint column.
- In the Private endpoint window, navigate to Settings > DNS Configuration and click Add configuration.
- In the Add DNS zone configuration window, do the following:
- From the Subscription drop-down list, select the subscription where the DNS zone created at step 2e resides.
- From the Private DNS zone drop-down list, select the pair of the privatelink.postgres.cosmos.azure.com name and the resource group in which the DNS zone was created. Leave the default settings for the other options in this window.
- Click Add.
- In the DNS configuration window, navigate to the newly created DNS configuration and click the in the Private DNS zone column.
- In the Private DNS zone window, navigate to DNS Management > Virtual network links and click Add.
- In the Add virtual network link window, add to the DNS zone links to VNets to which the worker instances are connected. To do that, perform the following steps for each VNet link:
- In the Link name field, specify a name for the link.
- From the Subscription drop-down list, select the subscription where the VNet resides.
- From the Virtual network drop-down list, select the name of the VNet.
- Click OK.
- In the Virtual network links window, make sure that you have added links to all the necessary VNets.