Forrest logo
back to the az tool

az-logout:tldr:e7bca

az-logout: Log out from the active account.
$ az logout
try on your machine

The command "az logout" is used in the Azure Command-Line Interface (CLI) to log out from the Azure Account. When executed, it removes the authentication context so that you are no longer logged in to Azure.

Here's what happens when you run "az logout":

  1. Any access token or refresh token associated with your Azure Account is invalidated.
  2. The command clears the authentication context, removing any stored credentials.
  3. You are no longer considered authenticated when interacting with Azure resources via the CLI.

Once logged out, you will need to log in again if you wish to execute any commands that require authentication.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the az tool