Other Articles

Storage Account – Enforce Network Access Rule

This check ensures that the default network access rule for Azure Storage Accounts is set to Deny. Restricting network access prevents unauthorized public access and ensures storage accounts are only accessible from approved networks.

Check Details

  • Resource: Storage Account
  • Check: Enforce Network Access Rule
  • Risk: If the default network access rule is set to Allow, the storage account may be accessible from any public network, increasing the risk of unauthorized access and data exposure.

Remediation via Azure Portal

  1. Log in to the Azure Portal. Azure Portal Home
  2. Navigate to Storage Accounts and select the target storage account. Azure Storage Accounts list
  3. From the left menu, go to Networking under Security + networking. Storage account encryption menu
  4. Under Public network access,Select Enable, then set Public network access scope to Enable from selected networks only. Default network access rule set to Deny
  5. Click Save to apply the changes.

Remediation via Azure CLI

  1. Open Azure Cloud Shell. Azure Cloud Shell
  2. Run the following command to deny public network access:
    az storage account update \
     --name <storage-account-name> \
     --resource-group <resource-group-name> \
     --default-action Deny
    

This command ensures that the storage account denies access from all networks by default unless explicitly allowed through firewall rules or private endpoints.