Azure Portal Cloud Shell (both Bash and PowerShell) fails to authenticate for my account in ms.portal.azure.com.
Local Azure CLI authentication (az login) works correctly on my machine, which indicates this is not a CLI or device issue.
This appears to be a Cloud Shell–specific authentication or authorization failure, potentially related to:
- Cloud Shell managed identity
- Cloud Shell storage account access
- Portal-mediated token acquisition
- Tenant-level Cloud Shell enablement
I can use az login on my computer terminal but on azure cloud shell it is saying:
You don't have access to this
Your sign-in was successful but does not meet the criteria to access this resource. For example, you might be signing in from a browser, app, location, or an authentication flow that is restricted by your admin.
Error Code: 53003
Request Id: PII
Correlation Id: f5914b56-cf29-4e63-8aea-55227a73cb03
Timestamp: 2026-03-04T21:20:41.917Z
App name: Microsoft Azure CLI
App id: PII
IP address: 20.42.18.188
Device identifier: PII
Device platform: Windows 10
Device state: Compliant