FREE STUDY NOTES · AZ-104

Azure Storage firewall: IP rules, virtual network rules and trusted services

How the storage account firewall decides who gets in: IP rules, VNet rules with service endpoints, private endpoints and the trusted-services exception.

From Ultra Transcenders AZ-104 by Tony Rough

The storage firewall decides which networks can reach the account at all. It works alongside authentication rather than replacing it, since a request that passes the firewall still needs a valid key, SAS or role.

Turning the firewall on

Setting Public network access to “Enabled from selected virtual networks and IP addresses” (Selected networks) turns the firewall on. From then on only the listed VNet subnets and IP/CIDR ranges get in; everything else is blocked, including VMs on any subnet that isn’t listed. It is the least-effort way to admit a chosen set of VNets plus, for example, a home-office public IP address.

Two kinds of rule populate the allow list:

Exceptions and what the firewall doesn’t cover

Common trap: Assuming Azure Backup can always reach a firewall-restricted storage account - it works only when “Allow trusted Microsoft services to access this storage account” is ticked; when that box is unchecked, backup never works.

Common trap: Enabling “Allow trusted Microsoft services to access this storage account” so that a VM can attach its disks - disk traffic isn’t subject to the storage firewall in the first place, so the exception is unnecessary and only widens access.

Private endpoints versus firewall rules

A private endpoint (Private Link) gives the account a private IP address inside a VNet. It needs VNet and DNS configuration and doesn’t admit a home-office public IP, so when the requirement is simply “these VNets plus this public address”, firewall rules are less effort.

Firewall rules restrict only the account’s public endpoint; they don’t affect traffic that reaches the account through a private endpoint. (See Figure 5.2.)

Requests from an on-premises public range and from a listed subnet with a Microsoft.Storage service endpoint pass the firewall, and Azure Backup passes only with the trusted-services exception ticked. An unlisted subnet is blocked. VM disk traffic and traffic through a private endpoint aren't subject to the firewall.
Figure 5.2: What the storage firewall lets through

Reading the configuration in a template

In an ARM template, networkAcls.defaultAction: "Allow" with no ipRules or virtualNetworkRules means the account is reachable from all networks and from any location (not just the account’s own region). supportsHttpsTrafficOnly: true only forces HTTPS; it doesn’t restrict which networks can connect.

Settings that are not network controls

These are frequently offered as ways to restrict network access, but none of them does:

Setting What it actually controls
Routing preference The path traffic takes (Microsoft network or internet routing)
Access control (IAM) RBAC permissions
Load balancing Traffic distribution, not storage access
Azure Firewall rules Traffic through the Azure Firewall, not the storage account’s own firewall

Get the whole book

This note is one section of Ultra Transcenders AZ-104: Microsoft Azure Administrator, an independent study guide that explains every topic the exam covers by technology, with comparison tables, diagrams and the common traps, plus a glossary linked to Microsoft Learn.

Amazon.co.ukKindlePaperback
Amazon.comKindlePaperback

Opens Amazon in a new tab.

About the book · Free AZ-104 glossary · All AZ-104 study notes

More AZ-104 study notes