Share via

Automation Job Failing on "Unauthorized" error (InvalidAuthenticationTokenTenant)

Ron de Frates 40 Reputation points
2026-02-12T19:57:38.09+00:00

I recently changed the password for my Azure account. Soon after, I started getting the error below. I updated the connection and manually changed the subscription, but no luck.

{ "error": { "code": "InvalidAuthenticationTokenTenant", "message": "The access token is from the wrong issuer 'https://sts.windows.net/f8xxxxxxxxxxxx/'. It must match the tenant 'https://sts.windows.net/25xxxxxxxxxxxx/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/254xxxxxxxxxxxx' 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." } }

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.

{count} votes

Answer accepted by question author
  1. Siddhesh Desai 4,030 Reputation points Microsoft External Staff Moderator
    2026-02-12T21:07:52.6233333+00:00

    Hi @Ron de Frates

    Thank you for reaching out to Microsoft Q&A.

    As discussed on Teams, we have configured Managed Identity for your Logic App and assigned it Virtual Machine Contributor role on the VM or Subscription level which fixed the connection issue.

    If the resolution was helpful, kindly take a moment to click on 210246-screenshot-2021-12-10-121802.pngand click on Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Q&A Assist
    2026-02-12T19:57:47.36+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error message you're encountering, "InvalidAuthenticationTokenTenant," indicates that the access token being used is associated with a different Azure Active Directory (AAD) tenant than the one linked to your subscription. This often occurs after a password change or if there have been modifications to your account or tenant configuration.

    Here are some steps you can take to resolve this issue:

    1. Re-authenticate: Since you changed your password, ensure that all connections and tokens are updated. You may need to re-authenticate your Azure Logic Apps or any other services that rely on this token.
    2. Check Tenant Association: Verify that your subscription is still associated with the correct tenant. If your subscription was recently transferred to another tenant, it might take some time for the changes to propagate.
    3. Use the Correct Authority URL: Make sure you are using the authority URL specified in the error message (https://login.windows.net/2548c809-a5be-4fd8-ae10-88e8bd6f8ffa) to obtain a new token.
    4. Wait for Propagation: If you recently transferred your subscription, wait for up to an hour for the changes to take effect and then try again.

    If the issue persists after following these steps, you may need to contact your Azure administrator for further assistance.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.