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

SOLVED: Exchange Online Management PowerShell Connect-ExchangeOnline bug "A window handle must be configured. See https://aka.ms/msal-net-wam#parent-window-handles"

System error 86 has occurred. The specified network password is not correct.

The security identifier of the "NT SERVICE\WdiServiceHost" account is "S-1-5-80-3139157870-2983391045-3678747466-658725712-1809340420"