Description
NOTE: This recommendation assumes that the Public network access
parameter is set to Enabled from selected virtual networks and IP addresses
. Please ensure the prerequisite recommendation has been implemented before proceeding:
- Ensure Default Network Access Rule for Storage Accounts is Set to Deny
Some Azure services that interact with storage accounts operate from networks that can't be granted access through network rules. To help this type of service work as intended, allow the set of trusted Azure services to bypass the network rules. These services will then use strong authentication to access the storage account. If the Allow Azure services on the trusted services list to access this storage account
exception is enabled, the following services are granted access to the storage account: Azure Backup, Azure Data Box, Azure DevTest Labs, Azure Event Grid, Azure Event Hubs, Azure File Sync, Azure HDInsight, Azure Import/Export, Azure Monitor, Azure Networking Services, and Azure Site Recovery (when registered in the subscription).
Rationaleβ
Turning on firewall rules for storage account will block access to incoming requests for data, including from other Azure services. We can re-enable this functionality by enabling Trusted Azure Services
through networking exceptions.
Impactβ
This creates authentication credentials for services that need access to storage resources so that services will no longer need to communicate via network request. There may be a temporary loss of communication as you set each Storage Account. It is recommended to not do this on mission-critical resources during business hours.
Auditβ
From Azure Portalβ
- Go to
Storage Accounts
. - For each storage account, under Security + networking, click
Networking
. - Click on the
Firewalls and virtual networks
heading. - Under
Exceptions
, ensure thatAllow Azure services on the trusted services list to access this storage account
is checked.
From Azure CLIβ
Ensure bypass
contains AzureServices
:
az storage account list --query '[*].networkRuleSet'
From PowerShellβ
Connect-AzAccount Set-AzContext -Subscription <subscription ID> Get-AzStorageAccountNetworkRuleset -ResourceGroupName <resource group> -Name <storage account name> |Select-Object Bypass
If the response from the above command is None
, the storage account configuration is out of compliance with this check. If the response is AzureServices
, the storage account configuration is in compliance with this check.
From Azure Policyβ
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the associated Policy definition in Azure.
- Policy ID: c9d007d0-c057-4772-b18c-01e546713bcd - Name:
Storage accounts should allow access from trusted Microsoft services
Default Valueβ
By default, Storage Accounts will accept connections from clients on any network.