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.
locationstringResource location.
propertiesobjectProperties of the Front Door Load Balancer
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, frontDoorNameGets a Front Door with the specified Front Door name under the specified subscription and resource group.
list_by_resource_groupselectsubscriptionId, resourceGroupNameLists all of the Front Doors within a resource group under a subscription.
listselectsubscriptionIdLists all of the Front Doors within an Azure subscription.
create_or_updateinsertsubscriptionId, resourceGroupName, frontDoorNameCreates a new Front Door with a Front Door name under the specified subscription and resource group.
deletedeletesubscriptionId, resourceGroupName, frontDoorNameDeletes an existing Front Door with the specified parameters.
validate_custom_domainexecsubscriptionId, resourceGroupName, frontDoorName, 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
frontDoorNamestringName of the Front Door which is globally unique.
resourceGroupNamestringName of the Resource group within the Azure subscription.
subscriptionIdstringThe subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

SELECT examples

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

SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.front_door.front_doors
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND frontDoorName = '{{ frontDoorName }}' -- 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 (
data__properties,
data__location,
data__tags,
subscriptionId,
resourceGroupName,
frontDoorName
)
SELECT
'{{ properties }}',
'{{ location }}',
'{{ tags }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ frontDoorName }}'
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 subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND frontDoorName = '{{ frontDoorName }}' --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 
@subscriptionId='{{ subscriptionId }}' --required,
@resourceGroupName='{{ resourceGroupName }}' --required,
@frontDoorName='{{ frontDoorName }}' --required
@@json=
'{
"hostName": "{{ hostName }}"
}'
;