SC500-STFW-001SC-500Study guide skill: Configure Azure Storage firewall rulesReviewed

Contoso configured firewall rules on a storage account in the East US region so that only selected networks can connect. A VM in a virtual network subnet in the same region must read blobs in this account, but its requests are still denied after the VM's public IP address is added to an IP network rule. What should you do to allow access from this VM?

  1. A. Add the VM's private IP address 10.1.0.4 to an IP network ruleIncorrect
  2. B. Re-add the VM's public IP address to the IP network rule as a CIDR block with a /32 prefixIncorrect
  3. C. Enable the Microsoft.Storage service endpoint on the VM's subnet and add a virtual network rule that allows that subnetCorrect
  4. D. Add a trusted service exception that allows Azure services on the trusted services list to access this storage accountIncorrect
Show answer and explanation

Answer: C

Explanation

IP network rules have no effect on requests that originate from the same Azure region as the storage account. Same-region requests must be allowed with virtual network rules.[2] To allow traffic from a subnet, add a virtual network rule and also enable a service endpoint on that subnet. Microsoft.Storage provides connectivity to storage accounts in the same region as the virtual network.[1]

IP network rules are allowed only for public internet IP addresses, so RFC 1918 private ranges such as addresses that start with 10 can’t be added.[2] The /31 and /32 prefix sizes aren’t supported and must be configured as individual IP address rules, and changing the format doesn’t make IP network rules apply to same-region requests.[2] A trusted service exception is for Azure services that operate from a network you can’t include in virtual network or IP network rules. A VM in a subnet is allowed with a virtual network rule.[1]


Sources

  1. Firewall rules and network access control for Azure Blob, Data Lake, Queue, and Table StorageMicrosoft Learn · Location: Virtual network rules, Exceptions for trusted Azure services and network security · Checked
  2. Guidelines and limitations for the Azure Storage firewallMicrosoft Learn · Location: Restrictions for IP network rules · Checked