alastairtree
alastairtree

Reputation: 4289

Where locally are the Azure CLI 2 authentications stored?

I am using the Azure CLI (2.0 python version) on Windows. When I login like this:

az login

It opens a browser window and logs in interactively, passing back tokens to the still running CLI process. According to the docs those temporary access tokens are stored locally somewhere, as they remain available for a while later, after the process has closed - where are the tokens stored?

Upvotes: 0

Views: 736

Answers (1)

Nancy Xiong
Nancy Xiong

Reputation: 28264

where are the tokens stored?

You can find the accessTokens.json file in the folder named .azure folder in the user profile.

enter image description here

Also, you can rename this file before you login it again to verify it.

Upvotes: 1

Related Questions