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:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
extendedPropertiesobjectKey-Value pair representing additional properties for profiles.
frontDoorIdstringThe Id of the frontdoor.
identityobjectThe managed service identities assigned to this resource.
kindstringKind of the profile. Used by portal to differentiate traditional CDN profile and new AFD profile.
locationstringThe geo-location where the resource lives. Required.
logScrubbingobjectDefines rules that scrub sensitive fields in the Azure Front Door profile logs.
originResponseTimeoutSecondsintegerSend and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.
provisioningStatestringProvisioning status of the profile. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". (Succeeded, Failed, Updating, Deleting, Creating)
resourceStatestringResource status of the profile. Known values are: "Creating", "Active", "Deleting", "Disabled", "Migrating", "Migrated", "PendingMigrationCommit", "CommittingMigration", and "AbortingMigration". (Creating, Active, Deleting, Disabled, Migrating, Migrated, PendingMigrationCommit, CommittingMigration, AbortingMigration)
skuobjectThe pricing tier (defines Azure Front Door Standard or Premium or a CDN provider, feature list and rate) of the profile. Required.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, profile_name, subscription_idGets 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_groupselectresource_group_name, subscription_idLists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within a resource group.
listselectsubscription_idLists all of the Azure Front Door Standard, Azure Front Door Premium, and CDN profiles within an Azure subscription.
createinsertresource_group_name, profile_name, subscription_id, location, 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.
updateupdateresource_group_name, profile_name, subscription_idUpdates 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.
deletedeleteresource_group_name, profile_name, subscription_idDeletes 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.
list_supported_optimization_typesexecresource_group_name, profile_name, subscription_idGets the supported optimization types for the current profile. A user can create an endpoint with an optimization type from the listed values.
list_resource_usageexecresource_group_name, profile_name, subscription_idChecks the quota and actual usage of endpoints under the given Azure Front Door Standard or Azure Front Door Premium or CDN profile.
migration_commitexecresource_group_name, profile_name, subscription_idCommit the migrated Azure Frontdoor(Standard/Premium) profile.
generate_sso_uriexecresource_group_name, profile_name, subscription_idGenerates 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.
cdn_can_migrate_to_afdexecresource_group_name, profile_name, subscription_idChecks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile.
cdn_migrate_to_afdexecresource_group_name, profile_name, subscription_id, skuMigrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. This step prepares the profile for migration and will be followed by Commit to finalize the migration.
migration_abortexecresource_group_name, profile_name, subscription_idAbort the migration to Azure Frontdoor Premium/Standard.
can_migrateexecresource_group_name, subscription_id, classicResourceReferenceChecks if CDN profile can be migrated to Azure Frontdoor(Standard/Premium) profile.
migrateexecresource_group_name, subscription_id, sku, classicResourceReference, profileNameMigrate the CDN profile to Azure Frontdoor(Standard/Premium) profile. The change need to be committed after this.

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
profile_namestringName of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

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
id,
name,
extendedProperties,
frontDoorId,
identity,
kind,
location,
logScrubbing,
originResponseTimeoutSeconds,
provisioningState,
resourceState,
sku,
systemData,
tags,
type
FROM azure.cdn.profiles
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND profile_name = '{{ profile_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- 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 (
tags,
location,
properties,
sku,
identity,
resource_group_name,
profile_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ sku }}' /* required */,
'{{ identity }}',
'{{ resource_group_name }}',
'{{ profile_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type
;

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
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
kind,
location,
properties,
sku,
systemData,
tags,
type;

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 resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Gets the supported optimization types for the current profile. A user can create an endpoint with an optimization type from the listed values.

EXEC azure.cdn.profiles.list_supported_optimization_types 
@resource_group_name='{{ resource_group_name }}' --required,
@profile_name='{{ profile_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;