A company is designing a network security solution for its virtual machines (VMs) deployed in an Azure virtual network subnet. The VMs must be allowed outbound access to Azure Storage accounts only within the East US region to download updates. Outbound access to the public internet and storage accounts in other regions must be blocked. The solution must minimize administrative effort.
Which configuration should you recommend for the Network Security Group (NSG) associated with the VM subnet?
- Create an outbound rule with a priority of 100 that allows traffic to the Storage.EastUS service tag, and a rule with a priority of 200 that denies traffic to the Storage service tag.Answer
- BCreate an outbound rule with a priority of 100 that allows traffic to the individual IP address ranges of the Azure Storage endpoints in the East US region, and a rule with a priority of 200 that denies traffic to the Storage service tag.
- CCreate a User Defined Route (UDR) with a prefix of 0.0.0.0/0 to route all traffic to a virtual appliance, while manually creating overlapping UDRs for each individual storage IP range in East US to bypass the appliance.
- DCreate an outbound rule with a priority of 100 that allows traffic to the Storage service tag, and configure an Application Security Group (ASG) containing the East US storage IP addresses to restrict access.
Answer
Configure an NSG outbound rule with a priority of 100 that allows traffic to the Storage.EastUS service tag, and another rule with a priority of 200 that denies traffic to the Storage service tag.
Using regional service tags such as Storage.EastUS in combination with the broader Storage service tag is the recommended approach to restrict outbound traffic to a specific Azure service region. Since rules are processed in priority order, allowing Storage.EastUS with a higher priority (100) and denying Storage with a lower priority (200) ensures only East US storage traffic is permitted. This design requires minimal administrative effort because Azure automatically updates the IP addresses associated with the service tags.
Step-by-Step Solution
Key Concept
Azure NSG Service Tags and Rule Priority