Remediation
From Azure Portalβ
- Go to
Key Vaults. - Click the name of a Key Vault.
- Under
Settings, clickNetworking. - Under
Firewalls and virtual networks, next toAllow access from:, click the radio button next toDisable public access. - Click
Apply. - Repeat steps 1-5 for each Key Vault requiring remediation.
From Azure CLIβ
For each Key Vault requiring remediation, run the following command to disable public network access:
az keyvault update \
--resource-group {{resource-group-name}} \
--name {{key-vault-name}} \
--public-network-access Disabled
From PowerShellβ
For each Key Vault requiring remediation, run the following command to disable public network access:
Update-AzKeyVault `
-ResourceGroupName {{resource-group-name}} `
-VaultName {{key-vault-name}} `
-PublicNetworkAccess "Disabled"