AzureProvisioningResourceExtensions.AddAzureInfrastructure Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.