Monday, August 24, 2020

Get Token request returned http error: 400 and server response when connecting to Azure

I'm having trouble accessing logs (or anything else) via az-cli.

i'm getting the below error:

 Get Token request returned http error: 400 and server response: {"error":"invalid_grant","error_description":"AADSTS50173: The provided grant has expired due to it being revoked}.

Root cause:

If you did not connect to your azure account for long time, you may get this error. or if you stopped and started azure VM, you may get into this issue.

Solution:

You need to login to Azure account using CLI.

1. az account clear
2. try az login using your latest password, the one you can login azure portal.



1 comment:

  1. DevOps technology is designed with combining Development, Best Software Training Institute for DevOps
    Online Training, Provides DevOps Online Training Course, Classes by Real-Time Experts- Provides DevOps
    Online Training Course, Classes by Real-Time Experts- Naresh IT-Best online training Institute in Hyderabad.

    devops Online Training

    ReplyDelete