I am going use key vault for Azure Function App.
I am using .NET SDK.
- Azure.Security.KeyVault.Secrets
- Azure.Identity
Example:
string keyVaultUrl = configuration["KeyVaultSettings:Url"];
TokenCredential credential = new DefaultAzureCredential();
#if DEBUG
credential = new ClientSecretCredential(configuration["AZURE_TENANT_ID"],
configuration["AZURE_CLIENT_ID"],
configuration["AZURE_CLIENT_SECRET"]);
#endif
var secretClient = new SecretClient(new Uri(keyVaultUrl), credential);
To debug locally I need
tenant_id, client_id, and client_secret.
How Can i get this?