Skip to main content

profiles

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

Overview

Nameprofiles
TypeResource
Idazure.cdn.profiles

Fields

The following fields are returned by SELECT queries:

OK. The request has succeeded.

NameDatatypeDescription
identityobjectManaged service identity (system assigned and/or user assigned identities).
kindstringKind of the profile. Used by portal to differentiate traditional CDN profile and new AFD profile.
locationstringResource location.
propertiesobjectThe JSON object that contains the properties required to create a profile.
skuobjectThe pricing tier (defines Azure Front Door Standard or Premium or a CDN provider, feature list and rate) of the profile.
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, profileName, subscriptionIdGets an Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified profile name under the specified subscription and resource group.
list_by_resource_groupselectresourceGroupName, subscriptionIdLists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within a resource group.
listselectsubscriptionIdLists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an Azure subscription.
createinsertresourceGroupName, profileName, subscriptionId, data__skuCreates a new Azure Front Door Standard or Azure Front Door Premium or CDN profile with a profile name under the specified subscription and resource group.
updateupdateresourceGroupName, profileName, subscriptionIdUpdates an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified profile name under the specified subscription and resource group.
deletedeleteresourceGroupName, profileName, subscriptionIdDeletes an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified parameters. Deleting a profile will result in the deletion of all of the sub-resources including endpoints, origins and custom domains.
can_migrateexecresourceGroupName, subscriptionId, classicResourceReferenceChecks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile.
migrateexecresourceGroupName, subscriptionId, classicResourceReference, sku, profileNameMigrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. The change need to be committed after this.
migration_commitexecresourceGroupName, profileName, subscriptionIdCommit the migrated Azure Frontdoor(Standard/Premium) profile.
generate_sso_uriexecresourceGroupName, profileName, subscriptionIdGenerates a dynamic SSO URI used to sign in to the CDN supplemental portal. Supplemental portal is used to configure advanced feature capabilities that are not yet available in the Azure portal, such as core reports in a standard profile; rules engine, advanced HTTP reports, and real-time stats and alerts in a premium profile. The SSO URI changes approximately every 10 minutes.

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
profileNamestringName of the CDN profile which is unique within the resource group.
resourceGroupNamestringName of the Resource group within the Azure subscription.
subscriptionIdstringAzure Subscription ID.

SELECT examples

Gets an Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified profile name under the specified subscription and resource group.

SELECT
identity,
kind,
location,
properties,
sku,
tags
FROM azure.cdn.profiles
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND profileName = '{{ profileName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates a new Azure Front Door Standard or Azure Front Door Premium or CDN profile with a profile name under the specified subscription and resource group.

INSERT INTO azure.cdn.profiles (
data__location,
data__tags,
data__sku,
data__identity,
data__properties,
resourceGroupName,
profileName,
subscriptionId
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ sku }}' /* required */,
'{{ identity }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ profileName }}',
'{{ subscriptionId }}'
RETURNING
identity,
kind,
location,
properties,
sku,
tags
;

UPDATE examples

Updates an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified profile name under the specified subscription and resource group.

UPDATE azure.cdn.profiles
SET
data__tags = '{{ tags }}',
data__identity = '{{ identity }}',
data__properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}' --required
AND profileName = '{{ profileName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
identity,
kind,
location,
properties,
sku,
tags;

DELETE examples

Deletes an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified parameters. Deleting a profile will result in the deletion of all of the sub-resources including endpoints, origins and custom domains.

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

Lifecycle Methods

Checks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile.

EXEC azure.cdn.profiles.can_migrate 
@resourceGroupName='{{ resourceGroupName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"classicResourceReference": "{{ classicResourceReference }}"
}'
;