Skip to content
Docs Try Aspire

getSecret

Function
📦 Aspire.Hosting.Azure.KeyVault v13.2.0-preview.1.26159.1
interface AzureKeyVaultResource {
// ... omitted for brevity
getSecret(secretName: string): IAzureKeyVaultSecretReference;
}

Signature

method getSecret
Gets a secret reference from the Azure Key Vault
getSecret(secretName: string): IAzureKeyVaultSecretReference
secretName string
IAzureKeyVaultSecretReference

Applies to

This function is an extension method on the following types: