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.