MP.AZR.1004 Ensure all Key vaults have public network access disabled
This check enforces a strict private-only baseline for Key Vaults: 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 Key Vault.
- Select Networking in the left menu.
- Under Firewalls and virtual networks, set Allow access from to Disabled (no access), or use Private endpoint only.
- Add a private endpoint under Private endpoint connections and link it to the appropriate virtual network and subnet.
- Click Save and validate that applications can still retrieve secrets via the private endpoint.
Using Azure CLI:
az keyvault update --name <vault> --resource-group <rg> --public-network-access Disabled
Related links
%TestResult%