Skip to main content

Dealing with Keyvault errors due to an expired refresh token

1 min read

I haven't been able to find a truly simple guide to fixing this issue so I'm posting my own:

  1. Ensure you have the Azure Command Line installed
  2. Login using the account you're trying to use to access KeyVault (verify this in Visual Studio under Tools...Options..Azure Service Authentication - ensure the cloud account is the one you need)
    az login
  3. After successfully logging in reboot the machine.

Your KeyVault issue should be fixed at this point.