azure-quickstart-templates icon indicating copy to clipboard operation
azure-quickstart-templates copied to clipboard

Origin group override rule references resource incorrectly

Open jhoops88 opened this issue 3 years ago • 1 comments

Issue Details

When creating a origin group override action in the rules engine for a CDN endpoint, the resulting rule's origin group field is blank.

Below is the erroneous action from our CDN Profile's endpoint's delivery policy's rules: (the rest of the resource has been removed for brevity) "actions": [ { "name": "OriginGroupOverride", "parameters": { "originGroup": { "id": "[resourceId('Microsoft.Cdn/profiles/endpoints/origingroups', parameters('profiles_CDN_name'), concat(parameters('profiles_CDN_name'), 'Endpoint2'), concat(parameters('profiles_CDN_name'), parameters('storageAccounts_cdnstorage2_origingroup_name')))]" }, "@odata.type": "#Microsoft.Azure.Cdn.Models.DeliveryRuleOriginGroupOverrideActionParameters" } } ]

This is run using a deployment script and runs successfully with no errors, but when we check the rule in the rules engine the origin group is blank:

image

If we alter the name within the resourceId of the action's origin group parameters, then we get a resource not found error, so the above ARM is identifying the resource but it doesn't appear to be able to reference it.

jhoops88 avatar Jul 09 '21 14:07 jhoops88

the bug:

the resource id for the origin group is case sensitive and must have the segments in the resource id all lower case for "resourcegroup" and "origingroup"

boylec avatar Jun 07 '22 21:06 boylec