Interview Prep/Azure/Identity and Authorization Errors

`RequestDisallowedByPolicy: Resource 'stshopdev' was disallowed by policy. Reasons: 'Storage accounts should disable public network access'.`

BeginnerTroubleshootingIdentity and Authorization Errors
Answer

Likely causes → A deny policy is assigned at a scope above; the request doesn't meet it.

Diagnose →

az policy assignment show --name <assignmentName> --scope <scope>
az policy definition show -n <definitionName> --query policyRule

Fix →

  1. Change the deployment to comply (--public-network-access Disabled plus Private Endpoint)
  2. If justified, request an expiring exemption from the policy owners

Prevent → Run policy-aware checks in CI (PSRule for Azure, or a what-if against a test subscription with the same policies).

Azure All Azure questions Roadmap: Azure core services

More on Identity and Authorization Errors