Courseiva
Implement Azure securitymediumMultiple ChoiceObjective-mapped

Restrict Azure Storage Access to a Specific Subnet Using Service Endpoint and Allow Azure Portal Management

You need to restrict access to an Azure Storage account so that only a specific subnet of a virtual network can access the data. Additionally, you need to allow management access from the Azure portal (e.g., to view containers). Which configuration should you apply?

Quick Answer

The correct configuration is to configure a service endpoint for Microsoft.Storage on the subnet, add a firewall rule to allow that subnet, and then enable 'Allow trusted Microsoft services'. This works because the service endpoint ensures traffic from the specific subnet to the storage account stays on the Azure backbone, while the firewall rule explicitly restricts data-plane access to only that subnet. Enabling 'Allow trusted Microsoft services' is the key to permitting Azure portal management—since the portal uses control-plane operations (like listing containers) that are performed by trusted Microsoft services, this setting bypasses the network restrictions for those actions. On the AZ-204 exam, this scenario tests your understanding of how to balance security with manageability; a common trap is forgetting that the portal itself is not a client in your subnet, so without the trusted services exception, you would lose the ability to browse storage from the portal. Remember the mnemonic: "SE-FW-TS" (Service Endpoint, Firewall rule, Trusted Services) to lock down data but keep control open.

⚠ Common exam trap

Many exam-takers confuse 'Allow trusted Microsoft services' with 'Allow all Azure services' or assume that IP-based rules for the Azure portal are static, when in fact the portal uses dynamic IP ranges that are not suitable for firewall rules.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Configure a service endpoint for Microsoft.Storage on the subnet and add a firewall rule to allow the subnet, then enable 'Allow trusted Microsoft services'.

Configuring a service endpoint for Microsoft.Storage on the subnet ensures traffic from that subnet to the storage account stays within the Azure backbone, and the firewall rule restricts access to that subnet. Enabling 'Allow trusted Microsoft services' permits Azure portal management operations (e.g., listing containers) because the portal is a trusted service that bypasses the network rules for control-plane actions.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Configure IP firewall rules to allow the subnet IP range and add the Azure portal's public IP addresses.

    Why it's wrong here

    This is possible but less secure and harder to maintain as portal IPs can change. Also, it does not use network security boundary of the virtual network.

  • Configure a service endpoint for Microsoft.Storage on the subnet and add a firewall rule to allow the subnet, then enable 'Allow trusted Microsoft services'.

    Why this is correct

    Service endpoint provides secure connectivity from the subnet. The trusted Microsoft services exception allows portal management while keeping the firewall restricted.

  • Configure a private endpoint for the storage account and disable public network access.

    Why it's wrong here

    Configuring a private endpoint and disabling public network access fails because the Azure portal requires public network access for management operations, such as viewing containers, even when authenticated via Microsoft Entra ID. Disabling public access would therefore block this functionality. While a private endpoint successfully restricts data plane access to a virtual network, fulfilling the subnet requirement, it is intended for scenarios where all access, including management, originates from within the VNet, ensuring complete isolation from the public internet.

  • Configure IP ACLs to allow the subnet and also allow all Azure services.

    Why it's wrong here

    Allowing all Azure services is overly permissive and does not leverage the virtual network boundary.

Visual reference

192.168.1.0 /24 256 addresses (254 usable) 192.168.1.0 /25 Subnet A 128 addr (126 usable) 192.168.1.128 /25 Subnet B 128 addr (126 usable) Borrowing 1 bit from host portion creates 2 subnets (/25)

About these practice questions

One of 881 original AZ-204 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on AZ-204

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You need to secure access to an Azure Storage account that hosts sensitive data. The requirement is to restrict access to only requests originating from a specific virtual network. Which feature should you configure?

easy
  • A.Customer-managed keys (CMK)
  • B.Azure AD authentication
  • C.Shared access signatures (SAS)
  • D.Storage firewall and virtual network rules

Why D: D is correct because Azure Storage firewall and virtual network rules allow you to restrict access to your storage account to only requests originating from a specific virtual network. This is achieved by configuring a service endpoint or a private endpoint for the storage account, which ensures that traffic from the designated VNet is permitted while all other public internet traffic is blocked. This directly meets the requirement of restricting access to a specific virtual network.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-204 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-204 exam.