Dec 27 2023 01:20 AM
I have just 1 single login and subscription in my Azure account. I try to create an Automation Task to auto-start my VM daily via Azure Portal. Then I got a "failed" result on its run with the below error message.
"error": {
"code": "InvalidAuthenticationTokenTenant",
"message": "The access token is from the wrong issuer 'https://sts.windows.net/f8cdef31-a31e-4b4a-93e4-5f571e91255a/'. It must match the tenant 'https://sts.windows.net/0fb36e4a-946c-49c3-b50e-99a0b5d1ecc7/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/0fb36e4a-946c-49c3-b50e-99a0b5d1ecc7' to get the token. Note, 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."
}
I have no idea why the access token will come from a wrong issuer by default! The the authority (URL) the error message mentioned cannot be accessed! How to make a match for the access token and the tenant!
Dec 31 2023 08:41 PM
Please make sure:
Tenant ID or subscription ID is correct in the configuration file
Make sure Azure CLI is logged in with the correct account
Jan 08 2024 12:13 AM