Freigeben über


AzureKeyVaultResourceExtensions.AddAzureKeyVault Method

Definition

Overloads

AddAzureKeyVault(IDistributedApplicationBuilder, String)

Adds an Azure Key Vault resource to the application model.

AddAzureKeyVault(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureKeyVaultResource>,ResourceModuleConstruct,KeyVault>)

Adds an Azure Key Vault resource to the application model.

AddAzureKeyVault(IDistributedApplicationBuilder, String)

Source:
AzureKeyVaultResourceExtensions.cs
Source:
AzureKeyVaultResourceExtensions.cs

Adds an Azure Key Vault resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureKeyVaultResource> AddAzureKeyVault (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name);
static member AddAzureKeyVault : Aspire.Hosting.IDistributedApplicationBuilder * string -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureKeyVaultResource>
<Extension()>
Public Function AddAzureKeyVault (builder As IDistributedApplicationBuilder, name As String) As IResourceBuilder(Of AzureKeyVaultResource)

Parameters

name
String

The name of the resource. This name will be used as the connection string name when referenced in a dependency.

Returns

A reference to the IResourceBuilder<T>.

Applies to

AddAzureKeyVault(IDistributedApplicationBuilder, String, Action<IResourceBuilder<AzureKeyVaultResource>,ResourceModuleConstruct,KeyVault>)

Source:
AzureKeyVaultResourceExtensions.cs

Adds an Azure Key Vault resource to the application model.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureKeyVaultResource> AddAzureKeyVault (this Aspire.Hosting.IDistributedApplicationBuilder builder, string name, Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureKeyVaultResource>,Aspire.Hosting.ResourceModuleConstruct,Azure.Provisioning.KeyVaults.KeyVault>? configureResource);
static member AddAzureKeyVault : Aspire.Hosting.IDistributedApplicationBuilder * string * Action<Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureKeyVaultResource>, Aspire.Hosting.ResourceModuleConstruct, Azure.Provisioning.KeyVaults.KeyVault> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureKeyVaultResource>
<Extension()>
Public Function AddAzureKeyVault (builder As IDistributedApplicationBuilder, name As String, configureResource As Action(Of IResourceBuilder(Of AzureKeyVaultResource), ResourceModuleConstruct, KeyVault)) As IResourceBuilder(Of AzureKeyVaultResource)

Parameters

name
String

The name of the resource. This name will be used as the connection string name when referenced in a dependency.

configureResource
Action<IResourceBuilder<AzureKeyVaultResource>,ResourceModuleConstruct,Azure.Provisioning.KeyVaults.KeyVault>

Callback to configure the underlying Azure.Provisioning.KeyVaults.KeyVault resource.

Returns

A reference to the IResourceBuilder<T>.

Applies to