Skip to content
Docs Try Aspire

withEnvironmentFromKeyVaultSecret

Function
📦 Aspire.Hosting.Azure.Search v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
withEnvironmentFromKeyVaultSecret(
name: string,
secretReference: IAzureKeyVaultSecretReference): IResourceWithEnvironment;
}

Signature

method withEnvironmentFromKeyVaultSecret builder
Sets an environment variable from an Azure Key Vault secret reference
withEnvironmentFromKeyVaultSecret(
name: string,
secretReference: IAzureKeyVaultSecretReference): IResourceWithEnvironment
name string
secretReference IAzureKeyVaultSecretReference
IResourceWithEnvironment

Applies to

This function is an extension method on the following types: