Interview Prep/Azure/Network Connectivity Errors

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.

Azure All Azure questions Roadmap: Azure core services

More on Network Connectivity Errors