AzureEnvironmentResourceExtensions.WithLocation 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.
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
- builder
- IResourceBuilder<AzureEnvironmentResource>
The IResourceBuilder<T>.
- ___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.