azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az login PersistenceDecryptionError

Open emiledufour opened this issue 3 years ago • 2 comments

az feedback auto-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

emiledufour avatar Aug 10 '22 14:08 emiledufour

@jiasli for awareness

yonzhan avatar Aug 10 '22 14:08 yonzhan

@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: image

ram-xv avatar Aug 11 '22 23:08 ram-xv

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

jiasli avatar Aug 23 '22 15:08 jiasli