When using the Azure Az PowerShell cmdlets you receive the error "Disable-AzContextAutosave : Key not valid for use in specified state."

When using the Azure Az PowerShell cmdlets you receive the error "Disable-AzContextAutosave : Key not valid for use in specified state."

This can be caused by a problem with the file 

%LOCALAPPDATA%\.IdentityService\msal.cache

Renaming the file msal.cache to msal.cache.old seems to resolve this issue.

Comments

Popular posts from this blog

Windows Server 2016, 2019, 2022, Windows 10 and Windows 11: Date and time "Some settings are managed by your organization".

TFTPD32 or TFTPD64 reports Bind error 10013 An attempt was made to access a socket in a way forbidden by its access permissions.

Windows Server 2019 desktop icons such as My Computer, Windows cannot access the specified device, path, or file.