Skip to content
Docs Try Aspire

AzureKeyVaultResource.getSecret

Method
📦 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

Defined on

This method is defined on the following type: