Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithKeyVault

Method
📦 Aspire.Hosting.Foundry v17.0.0-preview.1.26565.2
func (AzureCognitiveServicesProjectResource) WithKeyVault(keyVault AzureKeyVaultResource) AzureCognitiveServicesProjectResource

Signature

methodWithKeyVaultbuilder
Adds a Key Vault connection to the Microsoft Foundry project.
WithKeyVault(keyVault AzureKeyVaultResource) AzureCognitiveServicesProjectResource
keyVaultAzureKeyVaultResourceThe Key Vault resource to associate with the project.
AzureCognitiveServicesProjectResource

The resource builder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: