Skip to content
Docs Try Aspire
Docs Try

getSecret

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

Signature

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

Applies to

This method applies to the following types: