franz-josef-kaiser / pazuretory

This scripts helps you purge all login credentials and related caches that get added and not properly managed by Microsoft Azure az CLI tool.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

💣 Pazuretory ☠️

Are you stuck with the Microsoft Azure CLI?

Have you ever lost precious hours of your life trying to figure out why?

Are you experiencing...

  • 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!

The name...

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"

Prerequisites

Only the Azure az CLI tool.

How does it work?

The following steps have been reliable so far.

  1. Performs log out of current az login via Azure CLI tool
  2. Purges cache using Azure CLI tool
  3. Removes JSON sls token cache from the Azure dir in current users home dir
  4. Removes JSON access token cache from the Azure dir in current users home dir
  5. Removes JSON profile cache from the Azure dir in current users home dir
  6. Performs log in using Azure CLI tool

Does not work? Contributing!

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.

About

This scripts helps you purge all login credentials and related caches that get added and not properly managed by Microsoft Azure az CLI tool.


Languages

Language:Shell 100.0%