Ensure Cosmos DB accounts have restricted access

Error: Cosmos DB accounts do not have restricted access

Bridgecrew Policy ID: BC_AZR_NETWORKING_26
Checkov Check ID: CKV_AZURE_99
Severity: LOW

Cosmos DB accounts do not have restricted access

Description

TBA

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?