April 2022

  • Connect to Key Vault from a Local Azure Function Instance

    I was having an issue debugging an Azure Function locally.  The start routine loaded the Key Vault secrets into config to be used later: var secretClient = new SecretClient(     new Uri($”https://{keyVault.KeyVaultName}.vault.azure.net/”),    new DefaultAzureCredential());configBuilder.AddAzureKeyVault(secretClient, new AzureKeyVaultConfigurationOptions(){         Manager = new APIKeyVaultSecretManager(keyVault.KeyVaultSecretNames),    ReloadInterval = TimeSpan.FromSeconds(keyVault.ReloadIntervalSeconds)} The problem was I have multiple tenants on…

    Know More