var options = new DefaultAzureCredentialOptions();
options.VisualStudioTenantId = "<tenantGuid>";
SecretClient client = new(new Uri($"<url>"), new DefaultAzureCredential()); KeyVaultSecret secret = client.GetSecretAsync("<key>").GetAwaiter().GetResult();
return secret.Value;
var options = new DefaultAzureCredentialOptions();
options.VisualStudioTenantId = "<tenantGuid>";
SecretClient client = new(new Uri($"<url>"), new DefaultAzureCredential()); KeyVaultSecret secret = client.GetSecretAsync("<key>").GetAwaiter().GetResult();
return secret.Value;