Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

GetSecret

Method
📦 Aspire.Hosting.Azure.KeyVault v17.0.0
func (AzureKeyVaultResource) 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().

Applies to

This method applies to the following types: