# az logout
> Log out from an Azure subscription.
> Part of `azure-cli` (also known as `az`).
> More information: <https://learn.microsoft.com/cli/azure/reference-index#az_logout>.
- Log out from the active account:
`az logout`
- Log out a specific username:
`az logout --username {{alias@somedomain.com}}`