Forum Discussion
AnthonyTSANG
Dec 27, 2023Copper Contributor
Azure VM Automation Task failed with access token not matching the tenant
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 ...
Kidd_Ip
Jan 01, 2024MVP
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
- AnthonyTSANGJan 08, 2024Copper ContributorFound that if I follow the below video to use the VM Task (Preview) auto-generate the Logic App, the Authentication will be in trouble by default!
https://learn.microsoft.com/en-us/shows/it-ops-talk/auto-shutdown-and-auto-start-an-azure-vm
I follow the below steps can solve the problem.
https://learn.microsoft.com/en-us/answers/questions/405123/azure-logic-app-azure-vm-connector-invalidauthenti
To make it easier, the Marketplace also has "Start/Stop VMs during off-hours (V2)" can save some of my troubles. I follow the steps in this video.
https://www.youtube.com/watch?v=MjM0N6N12NA