Table of Contents

Interface IAzureKeyVaultService

Namespace
FoundationaLLM.Common.Services
Assembly
FoundationaLLM.Common.dll

Provides access to and management of Azure Key Vault.

public interface IAzureKeyVaultService
Extension Methods

Properties

KeyVaultUri

Gets the URI of the Key Vault.

string KeyVaultUri { get; }

Property Value

string

Methods

CheckKeyVaultSecretsExistAsync(IEnumerable<string?>)

Returns a map of secret names and whether they exist in Key Vault.

Task<Dictionary<string, bool>> CheckKeyVaultSecretsExistAsync(IEnumerable<string?> secretNames)

Parameters

secretNames IEnumerable<string>

The list of secret names to check.

Returns

Task<Dictionary<string, bool>>

CheckSecretExistsAsync(string)

Returns whether a secret exists in Key Vault.

Task<bool> CheckSecretExistsAsync(string secretName)

Parameters

secretName string

The secret name to check.

Returns

Task<bool>

GetSecretValue(string)

Gets the value of a secret from Key Vault.

string? GetSecretValue(string secretName)

Parameters

secretName string

The name of the secret whose value you wish to retrieve.

Returns

string

GetSecretValueAsync(string)

Gets the value of a secret from Key Vault.

Task<string?> GetSecretValueAsync(string secretName)

Parameters

secretName string

The name of the secret whose value you wish to retrieve.

Returns

Task<string>

RemoveSecretAsync(string)

Removes the specified secret from the Key Vault.

Task RemoveSecretAsync(string secretName)

Parameters

secretName string

The name of the secret to be removed.

Returns

Task

SetSecretValueAsync(string, string)

Sets the value of a secret in Key Vault.

Task SetSecretValueAsync(string secretName, string secretValue)

Parameters

secretName string

The name of the secret whose value you wish to set.

secretValue string

The secret value.

Returns

Task