Skip to main content

afd_custom_domains

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

Overview

Nameafd_custom_domains
TypeResource
Idazure.cdn.afd_custom_domains

Fields

NameDatatypeDescription
azure_dns_zonetextfield from the properties object
customDomainNametextfield from the properties object
deployment_statustextfield from the properties object
domain_validation_statetextfield from the properties object
extended_propertiestextfield from the properties object
host_nametextfield from the properties object
pre_validated_custom_domain_resource_idtextfield from the properties object
profileNametextfield from the properties object
profile_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
tls_settingstextfield from the properties object
validation_propertiestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcustomDomainName, profileName, resourceGroupName, subscriptionIdGets an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
list_by_profileSELECTprofileName, resourceGroupName, subscriptionIdLists existing AzureFrontDoor domains.
createINSERTcustomDomainName, profileName, resourceGroupName, subscriptionIdCreates a new domain within the specified profile.
deleteDELETEcustomDomainName, profileName, resourceGroupName, subscriptionIdDeletes an existing AzureFrontDoor domain with the specified domain name under the specified subscription, resource group and profile.
updateUPDATEcustomDomainName, profileName, resourceGroupName, subscriptionIdUpdates an existing domain within a profile.
refresh_validation_tokenEXECcustomDomainName, profileName, resourceGroupName, subscriptionIdUpdates the domain validation token.

SELECT examples

Lists existing AzureFrontDoor domains.

SELECT
azure_dns_zone,
customDomainName,
deployment_status,
domain_validation_state,
extended_properties,
host_name,
pre_validated_custom_domain_resource_id,
profileName,
profile_name,
provisioning_state,
resourceGroupName,
subscriptionId,
tls_settings,
validation_properties
FROM azure.cdn.vw_afd_custom_domains
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new afd_custom_domains resource.

/*+ create */
INSERT INTO azure.cdn.afd_custom_domains (
customDomainName,
profileName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ customDomainName }}',
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a afd_custom_domains resource.

/*+ update */
UPDATE azure.cdn.afd_custom_domains
SET
properties = '{{ properties }}'
WHERE
customDomainName = '{{ customDomainName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified afd_custom_domains resource.

/*+ delete */
DELETE FROM azure.cdn.afd_custom_domains
WHERE customDomainName = '{{ customDomainName }}'
AND profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';