Microsoft Azure Administrator (AZ-104) · Section 2 · 18% of the exam
Configure Azure Storage firewalls and virtual networks
One of the objectives of the Microsoft Azure Administrator (AZ-104) exam, in the section “Implement and manage storage”. Here is what it covers, the points to remember and a question to try.
What it covers
Every request to a storage account passes two gates: the network path (firewall, virtual network rules, private endpoints) and authorization (Microsoft Entra ID, access keys or a shared access signature). This lesson covers how to restrict the network, how to rotate and retire access keys, and how to hand out limited, revocable access with SAS tokens and stored access policies.
Points to remember
- The network gate (firewall, VNet rules, private endpoint) and the authorization gate (Entra ID, key, SAS) are independent; a request needs both.
- Default action Deny is required for firewall rules to take effect; virtual network rules need the Microsoft.Storage service endpoint on the subnet.
- Storage allows up to 400 IP rules and 400 virtual network rules; IP rules cannot use private ranges and do not match same-region Azure traffic.
- Two 512-bit access keys give full account access; rotate with key2 first, and use Key Vault or disable shared key access altogether.
- Regenerating a key invalidates account and service SAS signed with it, but not user delegation SAS.
Try a question
After you set allowSharedKeyAccess to false on a storage account, which request still succeeds?
- AA blob download that uses a user delegation SAS
- BA blob download that uses a service SAS
- CA blob download that uses an account SAS
- DA blob upload with the key1 connection string
Show the answer
A. Disabling shared key access forces Entra ID authorization. User delegation SAS tokens remain valid because they are derived from Entra credentials, but anything signed with the account key fails.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Secure access to storage: firewalls, keys and SAS teaches this objective (about 45 minutes), and 22 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Create and use shared access signature (SAS) tokens
- Configure stored access policies
- Manage access keys
- Configure identity-based access for Azure Files
- Create and configure storage accounts
- Configure Azure Storage redundancy
- Configure object replication
- Configure storage account encryption
- Manage data by using Azure Storage Explorer and AzCopy
- Create and configure a file share in Azure Storage
- Create and configure a container in Blob Storage
- Configure storage tiers