Skip to content
DocsTry Aspire
DocsTry

getSecret

Method
📦 Aspire.Hosting.Azure.KeyVault v13.4.0
interface AzureKeyVaultResource {
// ... omitted for brevity
getSecret(secretName: string): IAzureKeyVaultSecretReference;
}

Signature

methodgetSecret
Gets a secret reference for the specified secret name from the Azure Key Vault resource.
getSecret(secretName: string): IAzureKeyVaultSecretReference
secretNamestring
IAzureKeyVaultSecretReference

Applies to

This method applies to the following types: