## az_logout()


Log the Azure CLI out, by `az logout`.


Usage

``` python
az_logout(timeout=_TIMEOUT)
```


## Parameters


`timeout: float | None = _TIMEOUT`  
Seconds to wait for `az`; `None` waits as long as it takes.


## Raises


`AzCliNotLoggedInError`  
No account is logged in.

`AzCliNotFoundError`  
There is no `az` on PATH.

`AzCliTimeoutError`  
`az` did not finish within `timeout` seconds.

`AzCliError`  
Any other failure.


## Notes

Runs `az logout` (ported from `azr`'s `az_cli_*()` helpers), which removes the signed-in account and its tokens from the CLI's cache.


## Examples

``` python
from dazapiz import az_logout

az_logout()  # Logged out of the Azure CLI.
```
