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.
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:
131.107.1.0/24).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.
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.)
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.
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 |
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.
About the book · Free AZ-104 glossary · All AZ-104 study notes
Where LRS, ZRS, GRS, RA-GRS, GZRS and RA-GZRS keep your copies, what each survives, and which account types support them.
The three SAS types, what each can grant, how they're signed, and how to revoke one when a token leaks.
The order Azure applies subnet and NIC network security groups for inbound and outbound traffic, how priority works, and a worked example.
What a private endpoint puts in your subnet, how private DNS zones make names resolve to it, and when to choose it over a service endpoint.
Which App Service tiers allow manual scale-out, autoscale, slots and how many instances, and the difference between scaling up and scaling out.
Fault and update domains, zones, the SLA each gives, and what you can and can't change after a VM is created.
What delete and read-only locks block, how they inherit, and the surprising things a ReadOnly lock stops (like listing storage keys).