Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AzureKeyVaultResource.GetSecret

Method
📦 Aspire.Hosting.Azure.KeyVault v17.0.0
type AzureKeyVaultResource interface {
// ... omitted for brevity
GetSecret(secretName string) AzureKeyVaultSecretReference
}

Signature

methodGetSecret
Gets a secret reference for the specified secret name from the Azure Key Vault resource.
GetSecret(secretName string) AzureKeyVaultSecretReference
secretNamestringThe name of the secret.
AzureKeyVaultSecretReference

A reference to the secret.

Returns a handle; failures surface later via Err().

Defined on

This method is defined on the following type: