Ensure Azure Cosmos DB disables public network access

Error: Azure Cosmos DB enables public network access

Bridgecrew Policy ID: BC_AZR_NETWORKING_28
Checkov Check ID: CKV_AZURE_101
Severity: LOW

Azure Cosmos DB enables public network access

Description

We recommend that you ensure your Azure Cosmos DB Disables Public Network Access.

Fix - Buildtime

Terraform

  • Resource: azurerm_cosmosdb_account
  • Argument: public_network_access_enabled
resource "azurerm_cosmosdb_account" "db" {
        ...
 +    public_network_access_enabled = false

}

Did this page help you?