Udostępnij za pośrednictwem


AzureProvisioningResourceExtensions.AddAzureInfrastructure Method

Definition

Adds an Azure provisioning resource to the application model.

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

Parameters

builder
IDistributedApplicationBuilder

The distributed application builder.

name
String

The name of the resource being added.

configureInfrastructure
Action<AzureResourceInfrastructure>

A callback used to configure the infrastructure resource.

Returns

Applies to