Create an Azure Cosmos DB Account with a private endpoint

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Bicep Version

Deploy To Azure Deploy To Azure US Gov Visualize

This template will create a virtual network, a Cosmos account and a private endpoint exposing the Cosmos account to the virtual network.

Below are the parameters which can be user configured in the parameters file including:

  • Location: Select where the resource should be created (default is target resource group's location).
  • Virtual Network Name: Enter a name for the virtual network.
  • Account Name: Enter a name for the new Azure Cosmos DB account.
  • Public Network Access: Select whether public traffic is allowed to access the account (default is Enabled). When value is set to Disabled, public network traffic is blocked even before the private endpoint is created.
  • Private Endpoint Name: Enter a name for the private endpoint.

Tags : CosmosDB

Tags: Microsoft.Network/virtualNetworks, Microsoft.DocumentDB/databaseAccounts, Microsoft.Network/privateEndpoints