Community Q&A
AZ-104 — frequently asked questions
Community-vetted answers to 90 common questions about this exam, each traced back to a specific practice question.
Questions from real practice questions
Each Q&A comes from a specific question — follow the link for the full analysisOrganizing Azure Storage Content with Hierarchical Namespaces
Why is cont2 not included in the answer?
Cont2 is listed under 'Planned Changes,' meaning it does not exist in the current environment. Exam answers rely on existing resources unless stated otherwise.
Can file shares organize content?
Yes, Azure Files shares (like share1 and share2) support a directory structure similar to traditional file systems, allowing for organized content.
Which Azure Resources Can You Associate a Public IP Address To?
Why can't IP1 be associated with VPN1?
A VPN gateway's public IP is assigned when the gateway is created and cannot be changed later, so an existing VPN gateway cannot accept a new standalone public IP.
Why is VM1 not correct if a VM can have a public IP?
Azure associates public IP addresses with the VM's network interface (NIC1), not with the virtual machine resource itself, so you must attach IP1 to NIC1.
How Do You Keep VM1-to-Storage1 Traffic Off the Internet?
Why isn't restricting public network access in Firewalls and virtual networks enough?
That setting only filters which VNets and IP addresses may reach the storage account's public endpoint. Allowed traffic still leaves the VNet for the public endpoint, so it can traverse the internet.
Does a SAS token keep VM1-to-storage1 traffic off the internet?
No. A shared access signature is a time-limited authorization credential; it grants access but does not change the network path, so packets still use the storage account's public endpoint.
What exactly does a private endpoint create for storage1?
It assigns a private IP from your VNet to the storage service, and name resolution returns that private IP so VM1 talks to storage1 entirely over the virtual network and Microsoft backbone.
How to Route VM1-to-Storage1 Traffic Across the Microsoft Backbone?
Why is a network security group (NSG) not enough to route VM1-to-storage1 traffic over the Microsoft backbone?
An NSG only allows or denies traffic; it does not alter the path. A private endpoint is needed to give storage1 a private IP in the VNet and keep traffic on the Microsoft backbone.
Can Azure Virtual WAN force storage1 traffic from VM1 over the Microsoft backbone?
No. Virtual WAN is for hub-and-spoke network transit and branch connectivity, not for privately accessing a PaaS storage account. A private endpoint is the correct service.
How to Bulk Import Entra Users into Dynamic Groups by Department?
Why are dynamic user groups better than assigned groups for department-based membership?
Dynamic groups automatically add or remove members based on attributes like department, eliminating manual updates and minimizing administrative effort.
Can an XML file be used for Microsoft Entra bulk user import?
No, Microsoft Entra bulk import only supports CSV files. XML is not a supported format for creating multiple users.
How Do You Rotate Azure Storage Account Access Keys Automatically?
Why can't a Recovery Services vault rotate storage1's access keys?
A Recovery Services vault stores backup items and recovery points for VMs, files and workloads. It has no key-management API, so it cannot regenerate storage account access keys on a schedule.
Does lifecycle management ever change storage account access keys?
No. Lifecycle management policies only transition or delete blobs in the account based on age or last-access time; the account's key1 and key2 values are untouched.
How to Limit Entra Guest Invitations to fabrikam.com?
Why is Cross-tenant access settings wrong for limiting guest invitations?
Tenant restrictions and Microsoft cloud settings in Cross-tenant access control resource access or B2B with other Microsoft clouds, not the domains that can receive guest invitations.
What exactly does Collaboration restrictions do?
It lets you allow or deny B2B invitations by domain; selecting 'Allow invitations only to the specified domains' and adding fabrikam.com enforces the requirement.
Which roles grant blob access and support RBAC conditions?
Why can't Owner or Storage Account Contributor support a conditioned assignment?
Conditions can only be added to role assignments containing blob, queue or table data actions. Owner and Storage Account Contributor are management-plane roles without blob data actions, so no condition can be attached.
Why is Storage Account Backup Contributor not a valid choice here?
It only covers Azure Backup backup/restore and read operations on the storage account, not general container and blob access, and it does not support RBAC conditions.
How Do You Warn Users When a SAS Exceeds Seven Days?
Why does an alert rule not deliver the SAS expiry warning?
Alert rules act on metrics, activity logs or log queries and notify action groups asynchronously; they cannot display an interactive warning to the person generating the SAS, which the SAS expiry policy does.
What is the difference between Enabled and Required in the SAS expiration policy?
Enabled warns the user but still allows the longer SAS to be created; Required blocks creation of any SAS whose expiry exceeds the configured interval.
Does Storage Account Key Operator Service Role Allow Listing and Regenerating Keys?
Does the Storage Account Key Operator Service Role let User1 read blob or file data?
No. It only grants listkeys and regeneratekey on the storage account; reading blob or file data requires a data-plane role such as Storage Blob Data Reader.
Would Storage Account Contributor also work, and why is it a poorer fit?
It can manage the account, but it is far broader than required; the key operator role follows least privilege for listing and regenerating keys only.
Which Azure Storage Account Can Be Converted to ZRS?
Why can't the RA-GRS account (storage2) be converted to ZRS?
Geo-redundant replication is not a supported source for a ZRS conversion; the account must first be changed to LRS, so storage2 does not qualify directly in this question.
Does a premium Azure Storage account support ZRS?
Premium block blob and premium file share accounts do support ZRS, but a premium page-blob account does not — check the account type shown in the table before assuming a premium account qualifies.
Reader and Data Access Role for Storage Key Regeneration?
Why can't Reader and Data Access regenerate storage account keys?
It grants read access and lists keys but lacks Microsoft.Storage/storageAccounts/regeneratekey/action, so key rotation is not permitted.
Which role should I assign to list and regenerate storage account keys?
Assign the Storage Account Key Operator Service Role, which includes both listkeys and regeneratekey actions.
Which ADatum Virtual Machines Can Azure Disk Encryption Encrypt?
Why can't VM4 and VM5 be encrypted with Azure Disk Encryption?
Their disk and VM configurations are listed among the scenarios ADE does not support, such as unsupported disk types or Write Accelerator-enabled sizes, so ADE cannot be enabled on them.
Does Azure Disk Encryption support Basic tier virtual machines?
No. Microsoft's ADE documentation lists Basic-tier VMs and VMs created with the classic deployment method as unsupported scenarios, one of the rules that narrows this case study to VM2 and VM3.
Which VMs Can Be Backed Up to Recovery Services Vault1?
Why can't VM2 and VMB be backed up to Vault1?
Because a Recovery Services vault can protect only VMs in its own Azure region; VM2 and VMB are in a different region than Vault1.
Does the resource group of VM1 affect whether Vault1 can back it up?
No. Azure Backup region affinity depends on the VM's location, not its resource group, so being in a different resource group does not block protection.
How to Ensure NGINX Is Available on VMSS VMs from an ARM Template?
Why is Publish-AzVMDscConfiguration wrong for installing NGINX here?
It only uploads a DSC configuration to Azure Storage and does not apply it to the VMSS instances. You need an extension that actually executes configuration on each VM.
Can the Desired State Configuration extension also install NGINX on VMSS?
Yes, the DSC extension is a valid alternative, but the question only offers the publish cmdlet, not the extension itself. The Custom Script Extension remains the best listed answer.
Which Azure Services Automatically Scale a Container?
Why is Azure Container Instances not recommended for automatic container scaling?
ACI runs containers quickly but has no native autoscaling; scaling requires external orchestration or scripts, so it is not a valid recommendation here.
Does Azure App Service support autoscaling when it hosts a container?
Yes. App Service autoscale rules apply to App Service plans, including plans hosting containerized web apps, making it a valid answer alongside Container Apps.
Does Assigning AcrPull to ACR-Tasks-Network Meet the Goal?
Why doesn't assigning AcrPull to ACR-Tasks-Network meet the goal?
ACR-Tasks-Network is not the identity deploying the container instance; AcrPull must be granted to the principal that actually pulls image1 from Registry1.
Which identity needs AcrPull to deploy a container instance from Registry1?
The identity used by the container instance or deployment process, such as its managed identity or service principal, must have AcrPull on Registry1.
Does a Dedicated Data Endpoint Fix ACI Deployment from Registry1?
Why doesn't the dedicated data endpoint fix the ACI image1 deployment error?
It only changes the registry's data-plane endpoint for restricted or private network scenarios. It supplies no credentials, so Azure Container Instances still fails to authenticate and pull image1 from Registry1.
How do you let an Azure Container Instance pull image1 from Registry1?
Enable the Registry1 admin user and pass the username/password to the container instance, or assign a service principal or managed identity the AcrPull role so ACI can authenticate.
Does Moving VM1 to Another Subscription Move It to a New Host?
Why doesn't moving VM1 to another subscription change its host?
A subscription move only changes the resource's management boundary and ARM template scope; the VM keeps running on its current Azure host, so it does not trigger a redeployment.
What is the correct way to move VM1 to a different host?
Use the Redeploy option in the VM's Help section (or az vm redeploy), which stops, moves, and restarts the VM on a new Azure node.
How Do You Resize VM1 When the Target Azure VM Size Is Unavailable?
Why must VM1 be deallocated before resizing to an unavailable size?
The current host cluster may not stock that SKU; deallocation releases VM1's hardware so Azure can place it on a cluster that offers the size.
Does converting AVSet1 into a managed availability set fix the missing VM size?
No. Availability set configuration affects resiliency and management, not the host cluster's SKU inventory, so it cannot make the intended size appear.
Does Enabling ACR Admin User Meet Container Instance Deployment Goal?
Why is enabling the ACR admin user enough to fix the container instance error?
The Azure portal automatically uses the registry's admin credentials to pull the image when you select an Azure Container Registry image for a container instance.
Does enabling admin user work for CLI-based ACI deployments too?
No, CLI deployments require explicit --registry-username and --registry-password; enabling the admin user alone does not pass credentials.
Configuring Network Access for Azure Storage Accounts
Why can't I use a Private Endpoint for my home office?
Private Endpoints require the client to be connected to a Virtual Network. Your home office typically lacks a direct VNet connection, making IP-based firewall rules via Public Network Access the simpler solution.
Does IAM control network access?
No. IAM (Access Control) manages permissions for who can perform actions on the data. Network settings control which devices/IPs can establish a connection to the storage account.
Azure Route Table Next Hop Types
Why can't I use Virtual network gateway for a custom IP?
Virtual network gateway is for S2S/VNet peering gateways. It doesn't accept arbitrary IP next hops for general route table entries.
What is a Network Virtual Appliance (NVA)?
An NVA is a third-party device like a firewall or load balancer deployed in Azure, which requires a Virtual appliance next hop type.
Azure Route Table Association Scope
Why can't I attach a route table to a NIC?
Route tables define how traffic leaves a subnet. Since a NIC belongs to a specific subnet, it inherits the routes defined at the subnet level automatically.
Is this different from NSG associations?
Yes. NSGs can be applied to both subnets and individual NICs to filter traffic, whereas route tables are exclusively subnet-level objects for directing traffic paths.
Maximum VMs in Azure Subnet /25
Why is the answer 123 and not 128?
Azure reserves the first 4 IPs and the last IP (gateway) in every subnet, leaving 123 usable IPs out of 128 total.
How many bits are for hosts in a /25 subnet?
A /25 subnet uses 7 bits for hosts (32-25), resulting in 2^7 = 128 total addresses.
How to Associate Each VM with Its Department in RG1
Why can't I create a resource group per department to associate the VMs?
The scenario states all VMs are already in RG1; creating new resource groups would require moving them, which goes beyond the requested logical association and changes the existing structure.
Why are Azure management groups incorrect for department association?
Management groups govern subscriptions hierarchically (policies, RBAC, compliance). This environment has one subscription and asks only about organizing resources inside RG1, so they don't apply.
Does a New MFA Provider Change the Usage Model?
Why can't I switch an existing MFA provider from Per Authentication to Per Enabled User?
Microsoft documents that the usage model is locked at creation and cannot be changed afterward, so a restored or reconfigured provider keeps its original Per Authentication setting.
Can I still create a new Azure MFA provider in 2024?
No. Creation of new MFA providers stopped on September 1, 2018; MFA is now delivered through Microsoft Entra ID P1/P2 or Microsoft 365 licenses.
Force Immediate Azure AD Connect Sync of New User
Why doesn't Start-ADSyncSyncCycle -PolicyType Initial sync a new user immediately?
Initial triggers a full sync cycle — Full Import, Full Sync, and Export on all connectors — which is far slower than the targeted Delta cycle needed for one urgent change.
Which cmdlet replicates one new on-premises user to Azure AD right away?
Run Start-ADSyncSyncCycle -PolicyType Delta from an elevated PowerShell prompt on the DirSync1 Azure AD Connect server to push only the latest directory changes.
Azure File Sync Endpoint Availability Within 24 Hours
Why isn't File1 available on Endpoint2 and 3 immediately?
File1 was added to the Cloud endpoint. The on-premises agents rely on a detection job to find new cloud content, which runs periodically (every 24 hours), not instantly.
How does Azure File Sync detect on-premises changes?
It uses the Windows USN Journaling feature on the server to monitor file system changes and trigger an immediate sync session with the Azure file share.
Configure Azure Storage Object Replication Prerequisites
Can I use BlobStorage account type for object replication?
No, legacy BlobStorage accounts do not support object replication. You must use General Purpose V2 (StorageV2) or Premium Block Blob accounts.
What is the difference between BlobStorage and BlockBlobStorage?
BlobStorage is a legacy optimized type that does not support replication. BlockBlobStorage is a premium tier that does support object replication and versioning.
First Step to Resize an Azure VM to an Unavailable Size
Why can't I resize Azure VM1 while it is still running?
A running VM is pinned to the hardware cluster it lives on, and the size list only shows sizes that cluster supports. Deallocating the VM releases the slot and reveals more sizes.
Do I need to shut down all VMs in AVSet1 to resize VM1?
Not as the first step. Deallocate VM1, resize it, then start it; only if the new size is unsupported on the set's cluster would the whole availability set need to move.
Which VNets Can Host Azure Firewall AF1 in RG1
Why can't AF1 be deployed to VNET4 if it is also in West US?
Because VNET4 lives in a different resource group. The Azure Firewall FAQ requires the firewall, its VNet, and its public IP to be in the same resource group, and AF1 must be in RG1.
Does moving AF1's VNet to another resource group break the firewall?
Yes. Azure Firewall must stay in the same resource group as its VNet, so separating them can cause the deployment to fail or behave unexpectedly.
Which Azure Storage Redundancy for Geo-Clustered Sites
Why isn't plain geo-redundant storage (GRS) enough for these requirements?
GRS does replicate across geographic locations, but the secondary is inaccessible to users unless Microsoft performs a failover, so it fails the requirement to read from the secondary.
Isn't option B mislabeled as "read-only geo-redundant storage"?
The official product name is read-access geo-redundant storage (RA-GRS). Despite the wording quibble, B is the only option that delivers read access to the secondary region.
Can Resource Group Blade Show Jon Ross's ARM Template?
How do I actually open the ARM template from the Resource Group blade?
In the resource group, open Deployments, select Jon Ross's deployment, then choose Export template or View template to see the original JSON.
Why do some learners answer No to this Resource Group question?
They focus only on the Overview resource list and miss that the Deployments section lives inside the same blade, giving access to the stored template.
Resizing a VM in an Availability Set After Allocation Failure
Why can't I resize just one VM in an availability set after an allocation failure?
All availability set members must sit on compatible cluster hardware. When that cluster has no capacity for the target size, Azure can only reallocate the whole set, which requires deallocating every VM in it.
Does resizing an availability set VM always require stopping all the other VMs?
No. A resize within the same VM size family usually succeeds while the other VMs keep running. Only an allocation failure pointing to a hardware or capacity change forces you to stop the entire set.
Attach a Data Disk to Another VM with Minimum Downtime
Does the source VM need to be stopped before detaching a data disk?
No. Azure supports hot-detaching a data disk from a running VM as long as no application is actively writing to it, so stopping the VM is unnecessary.
Can a data disk detached from one running VM be attached to another VM?
Yes. Once detached, the disk can be attached to another VM, which should be running to accept the attachment.
platformUpdateDomainCount Value in Availability Set ARM Template
Why can't platformUpdateDomainCount be set to 30 or 40?
Azure limits an availability set to a maximum of 20 update domains (and 3 fault domains), so values above 20 fail ARM template validation and the deployment is rejected.
How do update domains keep VMs accessible during maintenance?
Update domains are logical batches rebooted one at a time during planned maintenance, so with 20 domains only a fifth of the VMs are affected at any moment and the rest stay online.
Does Network Contributor Enable Traffic Analytics for Admin1?
Why is Network Contributor enough to enable Traffic Analytics?
Microsoft lists Owner, Contributor, Reader, and Network Contributor as the accepted subscription-scope roles for enabling Traffic Analytics, so Network Contributor satisfies the check.
Does Network Contributor cover the Log Analytics workspace prerequisite?
No — workspace access is configured separately, but it does not affect the role requirement for the account enabling Traffic Analytics.
Reviewing an ARM Template from the Virtual Machine Blade
Why doesn't Export template on the VM blade show Jon's original ARM template?
It generates a brand-new snapshot of the VM's current state rather than retrieving the submitted deployment artifact, so any later changes and the second storage account are excluded.
Where can I find the actual template Jon Ross used for the deployment?
Open the resource group containing the resources, select Deployments in the left menu, choose the deployment by timestamp, then open Template, Parameters, and Outputs.
Maximizing Availability Set Fault Domains in ARM Templates
Why is Max Value correct when fault domains are capped at 2 or 3 per region?
The maximum varies by region, so the template must express the intent of using the largest supported value. A hardcoded 3 could be invalid in regions limited to 2.
How many fault domains can an availability set actually have in Azure?
Standard availability sets support up to 3 fault domains in most regions (2 in some), while extended availability sets support up to 20. Update domains max out at 20.
Which PowerShell Cmdlet Uploads a Generalized VHD Image to Azure?
Why is Add-AzImage wrong when the question says "upload the image"?
Add-AzImage does not exist in the Az PowerShell module. Image resources are created with New-AzImage after the VHD is already in blob storage.
What is the Add-AzVhd command syntax for uploading a generalized VHD?
Add-AzVhd -ResourceGroupName $rg -Destination <blob-storage-URI> -LocalFilePath <path-to-local-vhd>, which uploads the VHD to Azure storage.
Allow Gateway Transit on VirtualNetworkB for Point-to-Site Access
Why is enabling Allow gateway transit on VirtualNetworkB wrong for a P2S client?
Gateway transit is offered only by the VNet that hosts the gateway (VirtualNetworkA). VirtualNetworkB has no gateway to offer, so it must instead select 'Use remote gateway' to reach networks through VirtualNetworkA's gateway.
If on-premises users can already reach VirtualNetworkB, what is actually blocking the Windows 10 workstation?
The peering gateway settings are already working. The P2S VPN client package must be downloaded and reinstalled after the peering change so the client receives the updated route configuration.
Providing Remote Worker Access to Azure VMs on VNet1
Can remote workers reach Azure VMs without a Point-to-Site VPN at all?
Alternatives such as Azure Bastard (Bastion) or RDP over a public IP exist, but among the listed VPN options only P2S targets individual client devices, making it the intended AZ-104 answer.
Session Persistence for Always On AG Listener on Azure ILB
Why is Session persistence set to Client IP wrong for an AG listener?
Only one replica owns the AG listener at a time. Client IP affinity would pin a client to a backend that has lost ownership after failover, so its connections fail until affinity expires or the probe drops the node.
What are the correct Azure ILB settings for a SQL Always On listener?
Create a TCP 1433 load-balancing rule with Floating IP (direct server return) Enabled, Session persistence None, and a health probe against the availability group listener resource.
Floating IP on Azure ILB for SQL Always On Listener
Why does a SQL Server Always On listener on Azure require Floating IP (direct server return)?
Only the replica that owns the listener IP should receive the client's connection. Direct server return delivers packets to that VM without rewriting the destination address, so the reply is sourced from the listener IP.
Is enabling Floating IP alone enough to configure an Azure ILB listener for an availability group?
For this exam question, yes, it is the setting that meets the stated goal. In a full deployment you also need an internal load balancer, a backend pool containing the SQL VMs, and a TCP health probe on the replicas.