Storage account calls from a VM fail with `AuthorizationFailure: This request is not authorized to perform this operation.`
IntermediateTroubleshootingNetwork Connectivity Errors
Answer
Likely causes → Storage firewall: default action Deny, VM's subnet not allowed (no service endpoint or PE), or public access disabled and client not using the private endpoint.
Diagnose → az storage account show -n stshop --query networkRuleSet; check DNS resolution of stshop.blob.core.windows.net from the VM.
Fix → Add a VNet rule (with Microsoft.Storage service endpoint on the subnet) or use Private Endpoint and fix DNS.
Prevent → Distinguish network errors (AuthorizationFailure) from RBAC errors (AuthorizationPermissionMismatch) in runbooks.
More on Network Connectivity Errors
A VM with a public IP times out on SSH (`ssh: connect to host 20.x.x.x port 22: Connection timed out`).Beginner`nslookup kv-shop.vault.azure.net` from inside the VNet returns a public IP even though a Private Endpoint exists.IntermediateKey Vault returns `Client address is not authorized and caller is not a trusted service.` (ForbiddenByFirewall).BeginnerApplication Gateway returns `502 Bad Gateway` and backend health shows Unhealthy.IntermediateApp Gateway v2 deployment fails or goes unhealthy after a UDR `0.0.0.0/0 → firewall` was added to its subnet.AdvancedTwo VNets peered but VMs can't communicate; peering state shows `Initiated`.Intermediate