Are you stuck with the Microsoft Azure CLI?
Have you ever lost precious hours of your life trying to figure out why?
- Trouble logging in?
- Trouble logging out?
- Your
az login
commands end up with errors referring to other accounts? - You're questioning your chosen profession?
- nom nom nom
…then this script is for you!
noun
(Azure + Purgatory) a place or state of suffering inhabited by the souls of developers who are expiating their sins before going to the cloud.
"all her caches were purged and she would not need to go to Pazuretory"
Only the Azure az CLI tool.
The following steps have been reliable so far.
- Performs log out of current az login via Azure CLI tool
- Purges cache using Azure CLI tool
- Removes JSON sls token cache from the Azure dir in current users home dir
- Removes JSON access token cache from the Azure dir in current users home dir
- Removes JSON profile cache from the Azure dir in current users home dir
- Performs log in using Azure CLI tool
Found another thing that can be burned to the ground and rebuild? File a pull request! Or open at least a ticket. We are dealing with a proprietary, scripted toolset, remote controlling a proprietary UI with vendors workflows, where we have zero saying. With every piece of code like this, we are aiming at a moving target. This means: Every input helps us all.