diff --git a/avm/res/cdn/profile/README.md b/avm/res/cdn/profile/README.md index 826e2450fe..e201ef9e08 100644 --- a/avm/res/cdn/profile/README.md +++ b/avm/res/cdn/profile/README.md @@ -84,8 +84,7 @@ module profile 'br/public:avm/res/cdn/profile:' = { } ] location: 'global' - originResponseTimeoutSeconds: 60 - origionGroups: [ + originGroups: [ { loadBalancingSettings: { additionalLatencyInMilliseconds: 50 @@ -101,6 +100,7 @@ module profile 'br/public:avm/res/cdn/profile:' = { ] } ] + originResponseTimeoutSeconds: 60 ruleSets: [ { name: 'deptestcdnpafdruleset' @@ -179,10 +179,7 @@ module profile 'br/public:avm/res/cdn/profile:' = { "location": { "value": "global" }, - "originResponseTimeoutSeconds": { - "value": 60 - }, - "origionGroups": { + "originGroups": { "value": [ { "loadBalancingSettings": { @@ -200,6 +197,9 @@ module profile 'br/public:avm/res/cdn/profile:' = { } ] }, + "originResponseTimeoutSeconds": { + "value": 60 + }, "ruleSets": { "value": [ { @@ -580,7 +580,7 @@ module profile 'br/public:avm/res/cdn/profile:' = { | Parameter | Type | Description | | :-- | :-- | :-- | -| [`origionGroups`](#parameter-origiongroups) | array | Array of origin group objects. Required if the afdEndpoints is specified. | +| [`originGroups`](#parameter-origingroups) | array | Array of origin group objects. Required if the afdEndpoints is specified. | **Optional parameters** @@ -631,7 +631,7 @@ The pricing tier (defines a CDN provider, feature list and rate) of the CDN prof ] ``` -### Parameter: `origionGroups` +### Parameter: `originGroups` Array of origin group objects. Required if the afdEndpoints is specified. diff --git a/avm/res/cdn/profile/main.bicep b/avm/res/cdn/profile/main.bicep index 27d05ae8c1..90ae0b7a5c 100644 --- a/avm/res/cdn/profile/main.bicep +++ b/avm/res/cdn/profile/main.bicep @@ -42,7 +42,7 @@ param secrets array = [] param customDomains array = [] @description('Conditional. Array of origin group objects. Required if the afdEndpoints is specified.') -param origionGroups array = [] +param originGroups array = [] @description('Optional. Array of rule set objects.') param ruleSets array = [] @@ -202,8 +202,8 @@ module profile_customDomains 'customdomain/main.bicep' = [ ] module profile_originGroups 'origingroup/main.bicep' = [ - for (origingroup, index) in origionGroups: { - name: '${uniqueString(deployment().name)}-Profile-OrigionGroup-${index}' + for (origingroup, index) in originGroups: { + name: '${uniqueString(deployment().name)}-Profile-OriginGroup-${index}' params: { name: origingroup.name profileName: profile.name diff --git a/avm/res/cdn/profile/main.json b/avm/res/cdn/profile/main.json index c0f0f30a68..5577657e81 100644 --- a/avm/res/cdn/profile/main.json +++ b/avm/res/cdn/profile/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "9474385640753599051" + "version": "0.26.170.59819", + "templateHash": "2222991004022934698" }, "name": "CDN Profiles", "description": "This module deploys a CDN Profile.", @@ -175,7 +175,7 @@ "description": "Optional. Array of custom domain objects." } }, - "origionGroups": { + "originGroups": { "type": "array", "defaultValue": [], "metadata": { @@ -337,8 +337,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "5516612458443504281" + "version": "0.26.170.59819", + "templateHash": "2906172435071993445" }, "name": "CDN Profiles Endpoints", "description": "This module deploys a CDN Profile Endpoint.", @@ -457,8 +457,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "11112660703037023992" + "version": "0.26.170.59819", + "templateHash": "3665403791951260301" }, "name": "CDN Profiles Endpoints Origins", "description": "This module deploys a CDN Profile Endpoint Origin.", @@ -703,8 +703,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "7298174434641608123" + "version": "0.26.170.59819", + "templateHash": "364931243138434002" }, "name": "CDN Profiles Secret", "description": "This module deploys a CDN Profile Secret.", @@ -852,8 +852,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "15657388199001378642" + "version": "0.26.170.59819", + "templateHash": "15721665305636481516" }, "name": "CDN Profiles Custom Domains", "description": "This module deploys a CDN Profile Custom Domains.", @@ -979,11 +979,11 @@ "profile_originGroups": { "copy": { "name": "profile_originGroups", - "count": "[length(parameters('origionGroups'))]" + "count": "[length(parameters('originGroups'))]" }, "type": "Microsoft.Resources/deployments", "apiVersion": "2022-09-01", - "name": "[format('{0}-Profile-OrigionGroup-{1}', uniqueString(deployment().name), copyIndex())]", + "name": "[format('{0}-Profile-OriginGroup-{1}', uniqueString(deployment().name), copyIndex())]", "properties": { "expressionEvaluationOptions": { "scope": "inner" @@ -991,25 +991,25 @@ "mode": "Incremental", "parameters": { "name": { - "value": "[parameters('origionGroups')[copyIndex()].name]" + "value": "[parameters('originGroups')[copyIndex()].name]" }, "profileName": { "value": "[parameters('name')]" }, "loadBalancingSettings": { - "value": "[parameters('origionGroups')[copyIndex()].loadBalancingSettings]" + "value": "[parameters('originGroups')[copyIndex()].loadBalancingSettings]" }, "healthProbeSettings": { - "value": "[tryGet(parameters('origionGroups')[copyIndex()], 'healthProbeSettings')]" + "value": "[tryGet(parameters('originGroups')[copyIndex()], 'healthProbeSettings')]" }, "sessionAffinityState": { - "value": "[tryGet(parameters('origionGroups')[copyIndex()], 'sessionAffinityState')]" + "value": "[tryGet(parameters('originGroups')[copyIndex()], 'sessionAffinityState')]" }, "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": { - "value": "[tryGet(parameters('origionGroups')[copyIndex()], 'trafficRestorationTimeToHealedOrNewEndpointsInMinutes')]" + "value": "[tryGet(parameters('originGroups')[copyIndex()], 'trafficRestorationTimeToHealedOrNewEndpointsInMinutes')]" }, "origins": { - "value": "[parameters('origionGroups')[copyIndex()].origins]" + "value": "[parameters('originGroups')[copyIndex()].origins]" } }, "template": { @@ -1019,8 +1019,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "8706007645911322422" + "version": "0.26.170.59819", + "templateHash": "12438540618132459307" }, "name": "CDN Profiles Origin Group", "description": "This module deploys a CDN Profile Origin Group.", @@ -1156,8 +1156,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "16657064743499074369" + "version": "0.26.170.59819", + "templateHash": "8566106020570825253" }, "name": "CDN Profiles Origin", "description": "This module deploys a CDN Profile Origin.", @@ -1382,8 +1382,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "1809010747275335698" + "version": "0.26.170.59819", + "templateHash": "5891069247146856543" }, "name": "CDN Profiles Rule Sets", "description": "This module deploys a CDN Profile rule set.", @@ -1468,8 +1468,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "8195283154733773558" + "version": "0.26.170.59819", + "templateHash": "4690708071413750601" }, "name": "CDN Profiles Rules", "description": "This module deploys a CDN Profile rule.", @@ -1656,8 +1656,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "8869132357079269087" + "version": "0.26.170.59819", + "templateHash": "3255198433705940781" }, "name": "CDN Profiles AFD Endpoints", "description": "This module deploys a CDN Profile AFD Endpoint.", @@ -1807,8 +1807,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.26.54.24096", - "templateHash": "8525791914559803218" + "version": "0.26.170.59819", + "templateHash": "12469321322924109409" }, "name": "CDN Profiles AFD Endpoint Route", "description": "This module deploys a CDN Profile AFD Endpoint route.", diff --git a/avm/res/cdn/profile/tests/e2e/afd/main.test.bicep b/avm/res/cdn/profile/tests/e2e/afd/main.test.bicep index b559a41236..66f834fa19 100644 --- a/avm/res/cdn/profile/tests/e2e/afd/main.test.bicep +++ b/avm/res/cdn/profile/tests/e2e/afd/main.test.bicep @@ -52,7 +52,7 @@ module testDeployment '../../../main.bicep' = [ certificateType: 'ManagedCertificate' } ] - origionGroups: [ + originGroups: [ { name: 'dep-${namePrefix}-test-${serviceShort}-origin-group' loadBalancingSettings: { diff --git a/avm/res/cdn/profile/version.json b/avm/res/cdn/profile/version.json index 83083db694..9481fea58e 100644 --- a/avm/res/cdn/profile/version.json +++ b/avm/res/cdn/profile/version.json @@ -1,7 +1,7 @@ { "$schema": "https://aka.ms/bicep-registry-module-version-file-schema#", - "version": "0.1", + "version": "0.2", "pathFilters": [ "./main.json" ] -} \ No newline at end of file +}