![Forrest logo](/images/logo.png)
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":
- Any access token or refresh token associated with your Azure Account is invalidated.
- The command clears the authentication context, removing any stored credentials.
- 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.