Hello All,

I am trying to access Azure KeyVault from a console app. The console app is running from a machine that is not on Azure AD.


Exception received as below:
—————————————-
DefaultAzureCredential failed to retrieve a token from the included credentials. – EnvironmentCredential authentication unavailable.
Environment variables are not fully configured.
– ManagedIdentityCredential authentication failed: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0. – SharedTokenCacheCredential authentication unavailable.
No accounts were found in the cache.
—————————————
Has anyone faced similar issue? How to overcome this and access KeyVault from machine out side Azure AD?
no comments yet
Be the first to share what you think!
C# devs
null reference exceptions

source