


This.AccessToken = await (tokenRequestContext, CancellationToken.None) However, when the Build() method is called, the following exception is raised: : Process "D:\apps\VStudioNet2019\Common7\IDE\Extensions\rahssdlq.j5o\TokenService\" has failed with unexpected error: TS003: Error, TS004: Unable to get access token. Īzure_credential_default = new DefaultAzureCredential( default_azure_credential_options ) Ĭonfig_builder.AddAzureKeyVault( keyvault_uri, azure_credential_default ) Īs per the docs, I am signed-in to our Azure account via Visual Studio.Īlso, as per the docs, when this error occurs, I sign-out and sign-in again to our Azure account (again via Visual Studio).

Create credentials and add Azure KeyVault config keys / values. ĭefault_azure_credential_options.ExcludeVisualStudioCredential = false Try to use the Visual Studio credential. config_builder Ī default_azure_credential_options Ī azure_credential_default ĭefault_azure_credential_options = new DefaultAzureCredentialOptionsĮxcludeInteractiveBrowserCredential = true,ĮxcludeSharedTokenCacheCredential = true,ĮxcludeVisualStudioCodeCredential = true, The relevant code is shown below: using Azure.Identity Using the new Azure Identity client library. Trying to test LOCALLY while establishing a connection to our Azure Keyvault using Visual Studio. Environment: Microsoft Visual Studio Community 2019
