InvalidAuthenticationTokenTenant: The token is from the wrong tenant
The access token was issued by a different Microsoft Entra tenant from the one Azure expects. The code doesn't show whether the identity has permission once you use the correct tenant.
What to check
- Compare the expected tenant in the error with the tenant associated with the target subscription and your active session.
- Sign in to the correct tenant with an identity that has access there, then get a fresh token and verify the subscription context.