MP.AZR.1011 Ensure Cosmos DB public network access is disabled
This check enforces a strict private-only baseline for Cosmos DB: any enabled public network access, including selected-network access, fails. Well-Architected guidance permits restricting public access when private-only access doesn't fit the workload, so confirm that this baseline is appropriate before remediation. This is a local custom check, not an automated APRL-mapped check or a universal Well-Architected Framework requirement; apply it according to your organization's baseline and workload requirements.
Remediation action:
- In the Azure portal, navigate to the Cosmos DB account.
- Select Networking in the left menu.
- Under Public network access, select Disabled.
- Add a private endpoint under Private endpoint connections and link it to the appropriate virtual network and subnet.
- Click Save and verify that applications can still connect via the private endpoint.
Using Azure CLI:
az cosmosdb update --name <account> --resource-group <rg> --public-network-access DISABLED
Related links
%TestResult%