Skip to main content

afd_origin_groups

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

Overview

Nameafd_origin_groups
TypeResource
Idazure.cdn.afd_origin_groups

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.
authenticationobjectAuthentication settings for origin in origin group.
deploymentStatusstringKnown values are: "NotStarted", "InProgress", "Succeeded", and "Failed". (NotStarted, InProgress, Succeeded, Failed)
healthProbeSettingsobjectHealth probe settings to the origin that is used to determine the health of the origin.
loadBalancingSettingsobjectLoad balancing settings for a backend pool.
profileNamestringThe name of the profile which holds the origin group.
provisioningStatestringProvisioning status. Known values are: "Succeeded", "Failed", "Updating", "Deleting", and "Creating". (Succeeded, Failed, Updating, Deleting, Creating)
sessionAffinityStatestringWhether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
trafficRestorationTimeToHealedOrNewEndpointsInMinutesintegerTime in minutes to shift the traffic to the endpoint gradually when an unhealthy endpoint comes healthy or a new endpoint is added. Default is 10 mins. This property is currently not supported.
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, origin_group_name, subscription_idGets an existing origin group within a profile.
list_by_profileselectresource_group_name, profile_name, subscription_idLists all of the existing origin groups within a profile.
createinsertresource_group_name, profile_name, origin_group_name, subscription_idCreates a new origin group within the specified profile.
updateupdateresource_group_name, profile_name, origin_group_name, subscription_idUpdates an existing origin group within a profile.
deletedeleteresource_group_name, profile_name, origin_group_name, subscription_idDeletes an existing origin group within a profile.
list_resource_usageexecresource_group_name, profile_name, origin_group_name, subscription_idChecks the quota and actual usage of endpoints under the given Azure Front Door profile.

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
origin_group_namestringName of the origin group which is unique within the endpoint. Required.
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 existing origin group within a profile.

SELECT
id,
name,
authentication,
deploymentStatus,
healthProbeSettings,
loadBalancingSettings,
profileName,
provisioningState,
sessionAffinityState,
systemData,
trafficRestorationTimeToHealedOrNewEndpointsInMinutes,
type
FROM azure.cdn.afd_origin_groups
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND profile_name = '{{ profile_name }}' -- required
AND origin_group_name = '{{ origin_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a new origin group within the specified profile.

INSERT INTO azure.cdn.afd_origin_groups (
properties,
resource_group_name,
profile_name,
origin_group_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ profile_name }}',
'{{ origin_group_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

UPDATE examples

Updates an existing origin group within a profile.

UPDATE azure.cdn.afd_origin_groups
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND origin_group_name = '{{ origin_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Deletes an existing origin group within a profile.

DELETE FROM azure.cdn.afd_origin_groups
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND origin_group_name = '{{ origin_group_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Checks the quota and actual usage of endpoints under the given Azure Front Door profile.

EXEC azure.cdn.afd_origin_groups.list_resource_usage 
@resource_group_name='{{ resource_group_name }}' --required,
@profile_name='{{ profile_name }}' --required,
@origin_group_name='{{ origin_group_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;