Interview Prep/Azure/Identity and Authorization Errors

After moving a subscription to another tenant, apps fail with token errors and all role assignments are gone.

AdvancedTroubleshootingIdentity and Authorization Errors
Answer

Likely causes → Tenant transfer deletes RBAC assignments, custom roles and managed identities' trust; Key Vaults keep the old tenant ID.

Diagnose → az role assignment list --all returns almost nothing; Key Vault properties.tenantId shows the old tenant.

Fix →

  1. Recreate role assignments from IaC or a pre-move export
  2. Disable and re-enable system-assigned identities; recreate user-assigned identities and reattach
  3. Update Key Vault tenant ID and access policies/roles
  4. Recreate AKS-related identity bindings (or the cluster)

Prevent → Export assignments before transfer (az role assignment list --all > backup.json) and follow Microsoft's transfer checklist.

Azure All Azure questions Roadmap: Azure core services

More on Identity and Authorization Errors