Hello Jan Vávra,
Thanks for posting your question in the Microsoft Q&A forum.
When you use az login
with WAM on Windows, the authentication tokens are stored securely by the operating system. az logout
doesn't completely remove these tokens from the system
To ensure complete logout and prevent unauthorized access, you can run the following command to clear the Azure CLI token cache
az account clear
If you prefer browser-based authentication, you can disable WAM
az config set core.enable_broker_on_windows=false
Configure your Azure AD to issue tokens with shorter lifetimes.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful