Azure Windows 10 VM not Starting with AutoStart

agftrading 1 Reputation point
2022-09-01T15:13:15.053+00:00

Hi,

I have an Azure Windows 10 VM (Standard D2as v4 (2 vcpus, 8 GiB memory)). I have tried using the automated tasks section to start this VM up and shut it down automatically. However, the auto start task repeatedly fails. I do not understand why. Here is the error that I have found:

Unauthorized!

{
"error": {
"code": "InvalidAuthenticationTokenTenant",
"message": "The access token is from the wrong issuer 'https://sts.windows.net/xxxxxxxxxxxxxxxxxxxxx/'. It must match the tenant 'https://sts.windows.net/xxxxxxxxxxxxxxxxxxxxxxx/' associated with this subscription. Please use the authority (URL) 'https://login.windows.net/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' 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 do not understand what is going on at all am afraid. If someone could please explain and help resolve!

Thanks!

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,618 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,130 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,113 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. deherman-MSFT 33,456 Reputation points Microsoft Employee
    2022-09-02T14:22:09.93+00:00

    @agftrading
    I see you are facing an authentication error when trying to use Azure Automation to Stop/Start your VM.

    Please double-check the required permissions which are outlined here. If permissions are correct and you are still facing issues please let me know and we can work with your further to troubleshoot the issue.

    -------------------------------

    Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.