Share via


LocationPropertyResolver.GetDefaultLocation Method

Definition

Overloads

GetDefaultLocation(ProvisioningBuildOptions, ProvisionableConstruct)

Gets the default location for a construct.

GetDefaultLocation(ProvisioningContext, ProvisioningConstruct)

Gets the default location for a construct.

GetDefaultLocation(ProvisioningBuildOptions, ProvisionableConstruct)

Source:
LocationPropertyResolver.cs

Gets the default location for a construct.

protected virtual Azure.Provisioning.BicepValue<Azure.Core.AzureLocation> GetDefaultLocation (Azure.Provisioning.ProvisioningBuildOptions options, Azure.Provisioning.Primitives.ProvisionableConstruct construct);
abstract member GetDefaultLocation : Azure.Provisioning.ProvisioningBuildOptions * Azure.Provisioning.Primitives.ProvisionableConstruct -> Azure.Provisioning.BicepValue<Azure.Core.AzureLocation>
override this.GetDefaultLocation : Azure.Provisioning.ProvisioningBuildOptions * Azure.Provisioning.Primitives.ProvisionableConstruct -> Azure.Provisioning.BicepValue<Azure.Core.AzureLocation>
Protected Overridable Function GetDefaultLocation (options As ProvisioningBuildOptions, construct As ProvisionableConstruct) As BicepValue(Of AzureLocation)

Parameters

options
ProvisioningBuildOptions

The build options for this resource.

construct
ProvisionableConstruct

The construct with an unset Location property.

Returns

A unique dynamic name suffix for the resource.

Remarks

This defaults to `resourceGroup().location` for most resources and `deployment().location` for resource groups. This can be overridden to provide a different default location.

Applies to

GetDefaultLocation(ProvisioningContext, ProvisioningConstruct)

Source:
LocationPropertyResolver.cs

Gets the default location for a construct.

protected virtual Azure.Provisioning.BicepValue<Azure.Core.AzureLocation> GetDefaultLocation (Azure.Provisioning.ProvisioningContext context, Azure.Provisioning.Primitives.ProvisioningConstruct construct);
abstract member GetDefaultLocation : Azure.Provisioning.ProvisioningContext * Azure.Provisioning.Primitives.ProvisioningConstruct -> Azure.Provisioning.BicepValue<Azure.Core.AzureLocation>
override this.GetDefaultLocation : Azure.Provisioning.ProvisioningContext * Azure.Provisioning.Primitives.ProvisioningConstruct -> Azure.Provisioning.BicepValue<Azure.Core.AzureLocation>
Protected Overridable Function GetDefaultLocation (context As ProvisioningContext, construct As ProvisioningConstruct) As BicepValue(Of AzureLocation)

Parameters

context
ProvisioningContext

The provisioning context for this construct.

construct
ProvisioningConstruct

The construct with an unset Location property.

Returns

A unique dynamic name suffix for the resource.

Remarks

This defaults to `resourceGroup().location` for most resources and `deployment().location` for resource groups. This can be overridden to provide a different default location.

Applies to