Skip to content
Docs Try Aspire
Docs Try

AzureKeyVaultResource.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

Defined on

This method is defined on the following type: