Start/Stop azure vm Logic app (tasks/preiew) not working

Robert Vandeloo 5 Reputation points
2024-01-10T21:09:58.2233333+00:00

Hi There,
I'm having an issue with the auto/start or stop tasks when trying to use preview. I'm using the credentials i use with my azure account which should have access to start and stop the vm.

But I'm getting the following error.. There is no transfer no changes to the account.. I've never used the auto start and stop.. but trying to save some money..
Anyone fix this.. or have this issue. I have no idea why its such a simple thing i just want to start and stop my vm to save some $$$..
The vm starts and stops normally if i use the start and stop buttons.. etc.. it's just when i try and use this in tasks under the vm.. i've tried various things.. but haven't been able to get it to work..

  "error": {
    "code": "InvalidAuthenticationTokenTenant",
    "message": "The access token is from the wrong issuer 'https://sts.windows.net/xxxxx-xxxxxxxxx-xxxxxxx-yyyyyyyyy/'. It must match the tenant 'https://sts.windows.net/yyyyyyy-yyyyyyy-yyyyyyyy-xxxxxxxxx/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/yyyyyyy-yyyyyyy-yyyyyyyy-xxxxxxxxx' 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 Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,365 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Deepanshu katara 13,840 Reputation points MVP
    2024-01-11T05:31:02.3833333+00:00

    Hi , As per the error message, it appears to be a tenant Id mismatch issue. Go to your Automation Task and under Authenticate, check which account is used as connection Make sure to use the account which you used to login to the Azure portal. That can fix the issue. Image for ref User's image

    Please accept answer if it has helped , Thanks

    0 comments No comments

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.