Skip to main content

front_doors

Creates, updates, deletes, gets or lists a front_doors resource.

Overview

Namefront_doors
TypeResource
Idazure.front_door.front_doors

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
backendPoolsarrayBackend pools available to routing rules.
backendPoolsSettingsobjectSettings for all backendPools.
cnamestringThe host that each frontendEndpoint must CNAME to.
enabledStatestringOperational status of the Front Door load balancer. Permitted values are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
extendedPropertiesobjectKey-Value pair representing additional properties for frontdoor.
friendlyNamestringA friendly name for the frontDoor.
frontdoorIdstringThe Id of the frontdoor.
frontendEndpointsarrayFrontend endpoints available to routing rules.
healthProbeSettingsarrayHealth probe settings associated with this Front Door instance.
loadBalancingSettingsarrayLoad balancing settings associated with this Front Door instance.
locationstringResource location.
provisioningStatestringProvisioning state of the Front Door.
resourceStatestringResource status of the Front Door or Front Door SubResource. Known values are: "Creating", "Enabling", "Enabled", "Disabling", "Disabled", "Deleting", "Migrating", and "Migrated". (Creating, Enabling, Enabled, Disabling, Disabled, Deleting, Migrating, Migrated)
routingRulesarrayRouting rules associated with this Front Door.
rulesEnginesarrayRules Engine Configurations available to routing rules.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, front_door_name, subscription_idGets a Front Door with the specified Front Door name under the specified subscription and resource group.
list_by_resource_groupselectresource_group_name, subscription_idLists all of the Front Doors within a resource group under a subscription.
listselectsubscription_idLists all of the Front Doors within an Azure subscription.
create_or_updateinsertresource_group_name, front_door_name, subscription_idCreates a new Front Door with a Front Door name under the specified subscription and resource group.
create_or_updatereplaceresource_group_name, front_door_name, subscription_idCreates a new Front Door with a Front Door name under the specified subscription and resource group.
deletedeleteresource_group_name, front_door_name, subscription_idDeletes an existing Front Door with the specified parameters.
validate_custom_domainexecresource_group_name, front_door_name, subscription_id, hostNameValidates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
front_door_namestringName of the Front Door which is globally unique. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets a Front Door with the specified Front Door name under the specified subscription and resource group.

SELECT
id,
name,
backendPools,
backendPoolsSettings,
cname,
enabledState,
extendedProperties,
friendlyName,
frontdoorId,
frontendEndpoints,
healthProbeSettings,
loadBalancingSettings,
location,
provisioningState,
resourceState,
routingRules,
rulesEngines,
tags,
type
FROM azure.front_door.front_doors
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND front_door_name = '{{ front_door_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new Front Door with a Front Door name under the specified subscription and resource group.

INSERT INTO azure.front_door.front_doors (
location,
tags,
properties,
resource_group_name,
front_door_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ front_door_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
location,
properties,
tags,
type
;

REPLACE examples

Creates a new Front Door with a Front Door name under the specified subscription and resource group.

REPLACE azure.front_door.front_doors
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND front_door_name = '{{ front_door_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
location,
properties,
tags,
type;

DELETE examples

Deletes an existing Front Door with the specified parameters.

DELETE FROM azure.front_door.front_doors
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND front_door_name = '{{ front_door_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.

EXEC azure.front_door.front_doors.validate_custom_domain 
@resource_group_name='{{ resource_group_name }}' --required,
@front_door_name='{{ front_door_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"hostName": "{{ hostName }}"
}'
;