LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

az-logout

Remove Azure CLI authentication credentials

TLDR

Logout current user
$ az logout
copy
Logout specific user
$ az logout --username [user@example.com]
copy

SYNOPSIS

az logout [options]

DESCRIPTION

az logout logs out to remove access to Azure subscriptions. It clears access tokens and refresh tokens for the account from the local credential cache.The command is useful when switching between accounts or securing a shared system.

PARAMETERS

--username user

Account user to log out. If missing, log out the current active account.

WORKFLOW

$ # Logout current account
az logout

# Login with different account
az login
copy

INSTALL

sudo dnf install azure-cli
copy
sudo pacman -S azure-cli
copy
sudo zypper install azure-cli
copy
brew install azure-cli
copy
nix profile install nixpkgs#azure-cli
copy

CAVEATS

Does not revoke tokens on Azure side, only removes local cache. Service principal credentials in environment variables are not affected. Managed identity authentication persists.

HISTORY

az logout has been available since Azure CLI 2.0 in 2017 as the companion to az login for credential management.

SEE ALSO

az-login(1), az-account(1), az(1)

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid