Logic app fails to connect to Azure VM citing expired token, but the connection in Config is shown as OK

Sergey Borovoy 541 Reputation points
2025-04-22T06:55:35.23+00:00

Hi, my Logic App that starts a VM each morning is now failing to do so. It starts but can't connect to the VM:

{ "error": { "code": "ExpiredAuthenticationToken", "message": "The access token expiry UTC time '4/19/2025 4:27:06 AM' is earlier than current UTC time '4/22/2025 3:00:01 AM'." } }

But when I go to the Logic App's configuration -> Authentication, it shows the "azurevm" connection as "Connected":
User's image

What should I do? Thanks!

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,470 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sai Prabhu Naveen Parimi 1,255 Reputation points Microsoft External Staff
    2025-04-22T08:05:01.3933333+00:00

    @Sergey Borovoy

    Thanks for reaching out.

    The error you're encountering — "ExpiredAuthenticationToken" — typically indicates that the access token used by the Logic App to connect to the VM has expired. While the connection shows as "Connected" in the portal, this status reflects the last successful authentication and does not necessarily indicate that the authentication token is still valid.

    To resolve this, you can refresh the token by re-authenticating the connection :

    • Go to the Logic App’s Connections.
    • Click on the azurevm connection.
    • Select Edit API Connection and sign in again.
    • Save the connection.

    This should update the token and allow the Logic App to run successfully.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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