Hello H Pan,
Greetings! Welcome to Microsoft Q&A Platform.
The InvalidAuthenticationTokenTenant error typically occurs when the access token is issued by a tenant that doesn’t match the one associated with your Azure subscription and it must match one of the tenants associated with this subscription.
To resolve this issue, you can try the following steps:
- Make sure that the tenant ID and subscription ID are correct in your profile showing on top right corner of Azure Portal Page - which should show the associated tenant details.
- Check if the Azure CLI is logged in with the correct account. You can use the following command to check:
az account show
- If the account is not correct, you can use the following command to log in:
az login
- If you are using a service principal for authentication, make sure that the service principal has the correct permissions to access the subscription and the tenant.
This will set the authority to 'https://login.microsoftonline.com/'.
- The other reason could be as mentioned in the error "if the subscription is transferred to another tenant there is no impact to the services, but information about new tenant could take time to propagate (up to an hour). If you just transferred your subscription and see this error message, please try back later". In case if you have transferred the subscription to different tenant then please wait for some hours and retry the operation again.
Hope this answer helps! Please let us know if you have any further queries. I’m happy to assist you further.
Please "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.