az login PersistenceDecryptionError
az feedbackauto-generates most of the information requested below, as of CLI version 2.0.62
Related command az login
Describe the bug az login returns the following error after browser login:
Decryption failed: [WinError 0] None. App developer may consider this guidance: https://github.com/AzureAD/microsoft-authentication-extensions-for-python/wiki/PersistenceDecryptionError
Deleting the .azure folder and retrying will work after several attempts, but any subsequent command involving Azure CLI will result in the same PersistenceDecryptionError, taking me back to square one.
To Reproduce Run 'az login'
Expected behavior az login should work everytime
Environment summary Installed through azure-cli-2.39.0.msi azure-cli 2.39.0 core 2.39.0 telemetry 1.0.6 * OS: Windows 10 Version 1909 (OS Build 18363.2274) Shell Type: Bash on Windows, also tried cmd.exe with same result
Additional context
@jiasli for awareness
@emiledufour,
Looks like I was not able to repro from my end.
Environment
- azure-cli 2.39.0
- core 2.39.0
- OS: Windows 11
- Windows Terminal: Powershell
After running the command
az login
It appears I was successfully logged in without issue after the browser opened:

Duplicate of https://github.com/Azure/azure-cli/issues/20278