Skip to main content

afd_custom_domains

Creates, updates, deletes, gets or lists an afd_custom_domains resource.

Overview

Nameafd_custom_domains
TypeResource
Idazure.cdn.afd_custom_domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobjectThe JSON object that contains the properties of the domain to create.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, profileName, customDomainName, subscriptionIdGets an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
list_by_profileselectresourceGroupName, profileName, subscriptionIdLists existing AzureFrontDoor domains.
createinsertresourceGroupName, profileName, customDomainName, subscriptionIdCreates a new domain within the specified profile.
updateupdateresourceGroupName, profileName, customDomainName, subscriptionIdUpdates an existing domain within a profile.
deletedeleteresourceGroupName, profileName, customDomainName, subscriptionIdDeletes an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
refresh_validation_tokenexecresourceGroupName, profileName, customDomainName, subscriptionIdUpdates the domain validation token.

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
customDomainNamestringName of the domain under the profile which is unique globally.
profileNamestringName of the Azure Front Door Standard or Azure Front Door Premium profile which is unique within the resource group.
resourceGroupNamestringName of the Resource group within the Azure subscription.
subscriptionIdstringAzure Subscription ID.

SELECT examples

Gets an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.

SELECT
properties
FROM azure.cdn.afd_custom_domains
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND profileName = '{{ profileName }}' -- required
AND customDomainName = '{{ customDomainName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new domain within the specified profile.

INSERT INTO azure.cdn.afd_custom_domains (
data__properties,
resourceGroupName,
profileName,
customDomainName,
subscriptionId
)
SELECT
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ profileName }}',
'{{ customDomainName }}',
'{{ subscriptionId }}'
RETURNING
properties
;

UPDATE examples

Updates an existing domain within a profile.

UPDATE azure.cdn.afd_custom_domains
SET
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND profileName = '{{ profileName }}' --required
AND customDomainName = '{{ customDomainName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Deletes an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.

DELETE FROM azure.cdn.afd_custom_domains
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND profileName = '{{ profileName }}' --required
AND customDomainName = '{{ customDomainName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Updates the domain validation token.

EXEC azure.cdn.afd_custom_domains.refresh_validation_token 
@resourceGroupName='{{ resourceGroupName }}' --required,
@profileName='{{ profileName }}' --required,
@customDomainName='{{ customDomainName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
;