You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the KeyVaultClient like this in my Startup.cs:
public class Startup : IWebJobsStartup
{
public void Configure(IWebJobsBuilder builder)
{
var tempProvider = builder.Services.BuildServiceProvider();
var config = tempProvider.GetRequiredService<IConfiguration>();
builder.AddAzureKeyVault(config["KeyVaultUrl"],
"...",
"...");
}
I would expect that the keyVaultClient instance already uses the KeyVaultUrl as the base URL.
However, this is not the case right now and we need to pass it in: keyVaultClient.GetSecretAsync(Environment.GetEnvironmentVariable("KeyVaultUrl") ,"CognitiveServicesEndpoint"))
Thanks.
The text was updated successfully, but these errors were encountered:
When using the KeyVaultClient like this in my Startup.cs:
and then like this in my function:
I would expect that the
keyVaultClient
instance already uses theKeyVaultUrl
as the base URL.However, this is not the case right now and we need to pass it in:
keyVaultClient.GetSecretAsync(Environment.GetEnvironmentVariable("KeyVaultUrl") ,"CognitiveServicesEndpoint"))
Thanks.
The text was updated successfully, but these errors were encountered: