How do I specify properties for a Azure Key Vault Secret from a Function App?

I’m trying to create an Azure Function that creates a secret in a Key Vault with an expiration time of 30 minutes from now. Just creating a secret with no properties works without any issues: using Azure.Identity; using Azure.Security.KeyVault; using Azure.Security.KeyVault.Secrets; namespace Company.Function { public static class Save { [FunctionName("save")] public static async Task<IActionResult> Run(… Read More How do I specify properties for a Azure Key Vault Secret from a Function App?

Azure KeyVault is giving a null reference exception when running GetSecret()

When I try to get the API secret from Azure KeyVault, I am receiving a null reference error. I have the Key set up in the KeyVault, but secret is coming back as null. public static string GetKeyInformation(API_KEY) { if (string.IsNullOrEmpty(API_KEY)) { var keyVaultUrl = "https://socialflutter.vault.azure.net/&quot;; var credential = new DefaultAzureCredential(); var client = new… Read More Azure KeyVault is giving a null reference exception when running GetSecret()

Store secrets from appsettings.json file in .Net Console Application on Azure Key Vault

I have a .Net Core console application which retrieves raw data, then applies a Kusto query and finally uploads them on azure. I have the client secrets stored in the appsettings.json file. However, this is not a good practice since they should never be stored there. I would like to know how can I store… Read More Store secrets from appsettings.json file in .Net Console Application on Azure Key Vault