Share via


AzureEnvironmentResourceExtensions.WithLocation Method

Definition

Sets the ___location of the Azure environment resource.

public static Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEnvironmentResource> WithLocation(this Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEnvironmentResource> builder, Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> ___location);
static member WithLocation : Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEnvironmentResource> * Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.ApplicationModel.ParameterResource> -> Aspire.Hosting.ApplicationModel.IResourceBuilder<Aspire.Hosting.Azure.AzureEnvironmentResource>
<Extension()>
Public Function WithLocation (builder As IResourceBuilder(Of AzureEnvironmentResource), ___location As IResourceBuilder(Of ParameterResource)) As IResourceBuilder(Of AzureEnvironmentResource)

Parameters

___location
IResourceBuilder<ParameterResource>

The Azure ___location.

Returns

The IResourceBuilder<T>.

Remarks

This method is used to set the ___location of the Azure environment resource. The ___location is used to determine where the resources will be deployed.

Applies to