Skip to content
Docs Try Aspire

addSecret

Function
📦 Aspire.Hosting.Azure.KeyVault v13.2.0-preview.1.26159.1
interface AzureKeyVaultResource {
// ... omitted for brevity
addSecret(
name: string,
parameterResource: ParameterResource): AzureKeyVaultSecretResource;
}

Signature

method addSecret builder
Adds a secret to the Azure Key Vault from a parameter resource
addSecret(
name: string,
parameterResource: ParameterResource): AzureKeyVaultSecretResource
name string
parameterResource ParameterResource
AzureKeyVaultSecretResource

Applies to

This function is an extension method on the following types: