From e004eedb22186064393132a1a9d97d79ca2c7742 Mon Sep 17 00:00:00 2001 From: Guillaume Beaud <79973892+gbeaud@users.noreply.github.com> Date: Wed, 4 Dec 2024 21:30:39 +0100 Subject: [PATCH] feat: Updated to Bicep version 0.31.92 (#3871) ## Description Fixed failing pipeline by updating Bicep to version 0.31.92 and running Set-AVMModule ## Pipeline Reference | Pipeline | | -------- | |[![avm.res.cdn.profile](https://github.com/gbeaud/bicep-registry-modules/actions/workflows/avm.res.cdn.profile.yml/badge.svg)](https://github.com/gbeaud/bicep-registry-modules/actions/workflows/avm.res.cdn.profile.yml)| ## Type of Change - [ ] Update to CI Environment or utilities (Non-module affecting changes) - [ ] Azure Verified Module updates: - [x] Bugfix containing backwards-compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in `version.json`: - [ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description. - [ ] The bug was found by the module author, and no one has opened an issue to report it yet. - [ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in `version.json`. - [ ] Breaking changes and I have bumped the MAJOR version in `version.json`. - [ ] Update to documentation ## Checklist - [x] I'm sure there are no other open Pull Requests for the same update/change - [x] I have run `Set-AVMModule` locally to generate the supporting module files. - [x] My corresponding pipelines / checks run clean and green without any errors or warnings --- avm/res/cdn/profile/README.md | 4 +- avm/res/cdn/profile/afdEndpoint/main.json | 41 +++-- .../cdn/profile/afdEndpoint/route/main.json | 29 +++- avm/res/cdn/profile/customdomain/main.json | 14 +- avm/res/cdn/profile/endpoint/main.json | 26 +++- avm/res/cdn/profile/endpoint/origin/main.json | 14 +- avm/res/cdn/profile/main.bicep | 2 +- avm/res/cdn/profile/main.json | 146 ++++++++++++------ avm/res/cdn/profile/origingroup/main.json | 23 ++- .../cdn/profile/origingroup/origin/main.json | 14 +- avm/res/cdn/profile/ruleset/main.json | 23 ++- avm/res/cdn/profile/ruleset/rule/main.json | 14 +- avm/res/cdn/profile/secret/main.json | 4 +- .../cdn/profile/securityPolicies/main.json | 9 +- 14 files changed, 254 insertions(+), 109 deletions(-) diff --git a/avm/res/cdn/profile/README.md b/avm/res/cdn/profile/README.md index 1a43a43d99..9e7f9d86ce 100644 --- a/avm/res/cdn/profile/README.md +++ b/avm/res/cdn/profile/README.md @@ -2145,13 +2145,13 @@ Array of Security Policy objects (see https://learn.microsoft.com/en-us/azure/te | Parameter | Type | Description | | :-- | :-- | :-- | -| [`associations`](#parameter-securitypoliciesassociations) | array | Domain names and URL patterns to math with this association. | +| [`associations`](#parameter-securitypoliciesassociations) | array | Domain names and URL patterns to match with this association. | | [`name`](#parameter-securitypoliciesname) | string | Name of the security policy. | | [`wafPolicyResourceId`](#parameter-securitypolicieswafpolicyresourceid) | string | Resource ID of WAF policy. | ### Parameter: `securityPolicies.associations` -Domain names and URL patterns to math with this association. +Domain names and URL patterns to match with this association. - Required: Yes - Type: array diff --git a/avm/res/cdn/profile/afdEndpoint/main.json b/avm/res/cdn/profile/afdEndpoint/main.json index 866c19c60f..1c844d6dd9 100644 --- a/avm/res/cdn/profile/afdEndpoint/main.json +++ b/avm/res/cdn/profile/afdEndpoint/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "16899001110062450573" + "version": "0.31.92.45157", + "templateHash": "8817136365913068133" }, "name": "CDN Profiles AFD Endpoints", "description": "This module deploys a CDN Profile AFD Endpoint.", @@ -314,7 +314,10 @@ "properties": { "autoGeneratedDomainNameLabelScope": "[parameters('autoGeneratedDomainNameLabelScope')]", "enabledState": "[parameters('enabledState')]" - } + }, + "dependsOn": [ + "profile" + ] }, "afdEndpoint_routes": { "copy": { @@ -380,8 +383,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "15873678240851060540" + "version": "0.31.92.45157", + "templateHash": "17863230728556651506" }, "name": "CDN Profiles AFD Endpoint Route", "description": "This module deploys a CDN Profile AFD Endpoint route.", @@ -674,7 +677,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/afdEndpoints", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('afdEndpointName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('afdEndpointName'))]", + "dependsOn": [ + "profile" + ] }, "profile::customDomains": { "copy": { @@ -684,13 +690,19 @@ "existing": true, "type": "Microsoft.Cdn/profiles/customDomains", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), coalesce(parameters('customDomainNames'), createArray())[copyIndex()])]" + "name": "[format('{0}/{1}', parameters('profileName'), coalesce(parameters('customDomainNames'), createArray())[copyIndex()])]", + "dependsOn": [ + "profile" + ] }, "profile::originGroup": { "existing": true, "type": "Microsoft.Cdn/profiles/originGroups", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]", + "dependsOn": [ + "profile" + ] }, "profile::ruleSet": { "copy": { @@ -700,7 +712,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/ruleSets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSets')[copyIndex()].name)]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSets')[copyIndex()].name)]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -740,7 +755,10 @@ "originPath": "[parameters('originPath')]", "patternsToMatch": "[parameters('patternsToMatch')]", "supportedProtocols": "[parameters('supportedProtocols')]" - } + }, + "dependsOn": [ + "profile::afdEndpoint" + ] } }, "outputs": { @@ -769,7 +787,8 @@ } }, "dependsOn": [ - "afdEndpoint" + "afdEndpoint", + "profile" ] } }, diff --git a/avm/res/cdn/profile/afdEndpoint/route/main.json b/avm/res/cdn/profile/afdEndpoint/route/main.json index eae2b5bfce..55fba1aa52 100644 --- a/avm/res/cdn/profile/afdEndpoint/route/main.json +++ b/avm/res/cdn/profile/afdEndpoint/route/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "15873678240851060540" + "version": "0.31.92.45157", + "templateHash": "17863230728556651506" }, "name": "CDN Profiles AFD Endpoint Route", "description": "This module deploys a CDN Profile AFD Endpoint route.", @@ -299,7 +299,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/afdEndpoints", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('afdEndpointName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('afdEndpointName'))]", + "dependsOn": [ + "profile" + ] }, "profile::customDomains": { "copy": { @@ -309,13 +312,19 @@ "existing": true, "type": "Microsoft.Cdn/profiles/customDomains", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), coalesce(parameters('customDomainNames'), createArray())[copyIndex()])]" + "name": "[format('{0}/{1}', parameters('profileName'), coalesce(parameters('customDomainNames'), createArray())[copyIndex()])]", + "dependsOn": [ + "profile" + ] }, "profile::originGroup": { "existing": true, "type": "Microsoft.Cdn/profiles/originGroups", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]", + "dependsOn": [ + "profile" + ] }, "profile::ruleSet": { "copy": { @@ -325,7 +334,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/ruleSets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSets')[copyIndex()].name)]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSets')[copyIndex()].name)]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -365,7 +377,10 @@ "originPath": "[parameters('originPath')]", "patternsToMatch": "[parameters('patternsToMatch')]", "supportedProtocols": "[parameters('supportedProtocols')]" - } + }, + "dependsOn": [ + "profile::afdEndpoint" + ] } }, "outputs": { diff --git a/avm/res/cdn/profile/customdomain/main.json b/avm/res/cdn/profile/customdomain/main.json index b88c221734..0c19e530c4 100644 --- a/avm/res/cdn/profile/customdomain/main.json +++ b/avm/res/cdn/profile/customdomain/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "10387694873442665915" + "version": "0.31.92.45157", + "templateHash": "420872064438039619" }, "name": "CDN Profiles Custom Domains", "description": "This module deploys a CDN Profile Custom Domains.", @@ -160,7 +160,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/secrets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('secretName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('secretName'))]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -182,7 +185,10 @@ "minimumTlsVersion": "[parameters('minimumTlsVersion')]", "secret": "[if(not(empty(parameters('secretName'))), createObject('id', resourceId('Microsoft.Cdn/profiles/secrets', parameters('profileName'), parameters('secretName'))), null())]" } - } + }, + "dependsOn": [ + "profile" + ] } }, "outputs": { diff --git a/avm/res/cdn/profile/endpoint/main.json b/avm/res/cdn/profile/endpoint/main.json index ca9c1a9478..85519cfadc 100644 --- a/avm/res/cdn/profile/endpoint/main.json +++ b/avm/res/cdn/profile/endpoint/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "5709530270456479127" + "version": "0.31.92.45157", + "templateHash": "10963194836019535201" }, "name": "CDN Profiles Endpoints", "description": "This module deploys a CDN Profile Endpoint.", @@ -59,7 +59,10 @@ "name": "[format('{0}/{1}', parameters('profileName'), parameters('name'))]", "location": "[parameters('location')]", "properties": "[parameters('properties')]", - "tags": "[parameters('tags')]" + "tags": "[parameters('tags')]", + "dependsOn": [ + "profile" + ] }, "endpoint_origins": { "copy": { @@ -122,8 +125,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "12416203553821456162" + "version": "0.31.92.45157", + "templateHash": "11497360667926217808" }, "name": "CDN Profiles Endpoints Origins", "description": "This module deploys a CDN Profile Endpoint Origin.", @@ -230,13 +233,19 @@ "existing": true, "type": "Microsoft.Cdn/profiles/endpoints", "apiVersion": "2021-06-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('endpointName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('endpointName'))]", + "dependsOn": [ + "profile" + ] }, "origin": { "type": "Microsoft.Cdn/profiles/endpoints/origins", "apiVersion": "2021-06-01", "name": "[format('{0}/{1}/{2}', parameters('profileName'), parameters('endpointName'), parameters('name'))]", - "properties": "[union(createObject('hostName', parameters('hostName'), 'httpPort', parameters('httpPort'), 'enabled', parameters('enabled'), 'httpsPort', parameters('httpsPort')), if(or(greater(parameters('priority'), 0), greater(parameters('weight'), 0)), createObject('priority', parameters('priority'), 'weight', parameters('weight')), createObject()), if(and(not(empty(parameters('privateLinkAlias'))), not(empty(parameters('privateLinkLocation')))), createObject('privateLinkAlias', parameters('privateLinkAlias'), 'privateLinkLocation', parameters('privateLinkLocation')), createObject()), if(not(empty(parameters('privateLinkResourceId'))), createObject('privateLinkResourceId', parameters('privateLinkResourceId')), createObject()), if(not(empty(parameters('originHostHeader'))), createObject('originHostHeader', parameters('originHostHeader')), createObject()))]" + "properties": "[union(createObject('hostName', parameters('hostName'), 'httpPort', parameters('httpPort'), 'enabled', parameters('enabled'), 'httpsPort', parameters('httpsPort')), if(or(greater(parameters('priority'), 0), greater(parameters('weight'), 0)), createObject('priority', parameters('priority'), 'weight', parameters('weight')), createObject()), if(and(not(empty(parameters('privateLinkAlias'))), not(empty(parameters('privateLinkLocation')))), createObject('privateLinkAlias', parameters('privateLinkAlias'), 'privateLinkLocation', parameters('privateLinkLocation')), createObject()), if(not(empty(parameters('privateLinkResourceId'))), createObject('privateLinkResourceId', parameters('privateLinkResourceId')), createObject()), if(not(empty(parameters('originHostHeader'))), createObject('originHostHeader', parameters('originHostHeader')), createObject()))]", + "dependsOn": [ + "endpoint" + ] } }, "outputs": { @@ -272,7 +281,8 @@ } }, "dependsOn": [ - "endpoint" + "endpoint", + "profile" ] } }, diff --git a/avm/res/cdn/profile/endpoint/origin/main.json b/avm/res/cdn/profile/endpoint/origin/main.json index e71c4745c1..548ed9476d 100644 --- a/avm/res/cdn/profile/endpoint/origin/main.json +++ b/avm/res/cdn/profile/endpoint/origin/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "12416203553821456162" + "version": "0.31.92.45157", + "templateHash": "11497360667926217808" }, "name": "CDN Profiles Endpoints Origins", "description": "This module deploys a CDN Profile Endpoint Origin.", @@ -113,13 +113,19 @@ "existing": true, "type": "Microsoft.Cdn/profiles/endpoints", "apiVersion": "2021-06-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('endpointName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('endpointName'))]", + "dependsOn": [ + "profile" + ] }, "origin": { "type": "Microsoft.Cdn/profiles/endpoints/origins", "apiVersion": "2021-06-01", "name": "[format('{0}/{1}/{2}', parameters('profileName'), parameters('endpointName'), parameters('name'))]", - "properties": "[union(createObject('hostName', parameters('hostName'), 'httpPort', parameters('httpPort'), 'enabled', parameters('enabled'), 'httpsPort', parameters('httpsPort')), if(or(greater(parameters('priority'), 0), greater(parameters('weight'), 0)), createObject('priority', parameters('priority'), 'weight', parameters('weight')), createObject()), if(and(not(empty(parameters('privateLinkAlias'))), not(empty(parameters('privateLinkLocation')))), createObject('privateLinkAlias', parameters('privateLinkAlias'), 'privateLinkLocation', parameters('privateLinkLocation')), createObject()), if(not(empty(parameters('privateLinkResourceId'))), createObject('privateLinkResourceId', parameters('privateLinkResourceId')), createObject()), if(not(empty(parameters('originHostHeader'))), createObject('originHostHeader', parameters('originHostHeader')), createObject()))]" + "properties": "[union(createObject('hostName', parameters('hostName'), 'httpPort', parameters('httpPort'), 'enabled', parameters('enabled'), 'httpsPort', parameters('httpsPort')), if(or(greater(parameters('priority'), 0), greater(parameters('weight'), 0)), createObject('priority', parameters('priority'), 'weight', parameters('weight')), createObject()), if(and(not(empty(parameters('privateLinkAlias'))), not(empty(parameters('privateLinkLocation')))), createObject('privateLinkAlias', parameters('privateLinkAlias'), 'privateLinkLocation', parameters('privateLinkLocation')), createObject()), if(not(empty(parameters('privateLinkResourceId'))), createObject('privateLinkResourceId', parameters('privateLinkResourceId')), createObject()), if(not(empty(parameters('originHostHeader'))), createObject('originHostHeader', parameters('originHostHeader')), createObject()))]", + "dependsOn": [ + "endpoint" + ] } }, "outputs": { diff --git a/avm/res/cdn/profile/main.bicep b/avm/res/cdn/profile/main.bicep index ae15d9234b..211d1f4cee 100644 --- a/avm/res/cdn/profile/main.bicep +++ b/avm/res/cdn/profile/main.bicep @@ -341,7 +341,7 @@ type securityPolicyType = { @description('Required. Name of the security policy.') name: string - @description('Required. Domain names and URL patterns to math with this association.') + @description('Required. Domain names and URL patterns to match with this association.') associations: associationsType @description('Required. Resource ID of WAF policy.') diff --git a/avm/res/cdn/profile/main.json b/avm/res/cdn/profile/main.json index 1d5952c679..5608ce07b7 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.31.34.60546", - "templateHash": "10761375864597089825" + "version": "0.31.92.45157", + "templateHash": "14510673865187152138" }, "name": "CDN Profiles", "description": "This module deploys a CDN Profile.", @@ -50,7 +50,7 @@ "associations": { "$ref": "#/definitions/associationsType", "metadata": { - "description": "Required. Domain names and URL patterns to math with this association." + "description": "Required. Domain names and URL patterns to match with this association." } }, "wafPolicyResourceId": { @@ -1134,8 +1134,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "5709530270456479127" + "version": "0.31.92.45157", + "templateHash": "10963194836019535201" }, "name": "CDN Profiles Endpoints", "description": "This module deploys a CDN Profile Endpoint.", @@ -1188,7 +1188,10 @@ "name": "[format('{0}/{1}', parameters('profileName'), parameters('name'))]", "location": "[parameters('location')]", "properties": "[parameters('properties')]", - "tags": "[parameters('tags')]" + "tags": "[parameters('tags')]", + "dependsOn": [ + "profile" + ] }, "endpoint_origins": { "copy": { @@ -1251,8 +1254,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "12416203553821456162" + "version": "0.31.92.45157", + "templateHash": "11497360667926217808" }, "name": "CDN Profiles Endpoints Origins", "description": "This module deploys a CDN Profile Endpoint Origin.", @@ -1359,13 +1362,19 @@ "existing": true, "type": "Microsoft.Cdn/profiles/endpoints", "apiVersion": "2021-06-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('endpointName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('endpointName'))]", + "dependsOn": [ + "profile" + ] }, "origin": { "type": "Microsoft.Cdn/profiles/endpoints/origins", "apiVersion": "2021-06-01", "name": "[format('{0}/{1}/{2}', parameters('profileName'), parameters('endpointName'), parameters('name'))]", - "properties": "[union(createObject('hostName', parameters('hostName'), 'httpPort', parameters('httpPort'), 'enabled', parameters('enabled'), 'httpsPort', parameters('httpsPort')), if(or(greater(parameters('priority'), 0), greater(parameters('weight'), 0)), createObject('priority', parameters('priority'), 'weight', parameters('weight')), createObject()), if(and(not(empty(parameters('privateLinkAlias'))), not(empty(parameters('privateLinkLocation')))), createObject('privateLinkAlias', parameters('privateLinkAlias'), 'privateLinkLocation', parameters('privateLinkLocation')), createObject()), if(not(empty(parameters('privateLinkResourceId'))), createObject('privateLinkResourceId', parameters('privateLinkResourceId')), createObject()), if(not(empty(parameters('originHostHeader'))), createObject('originHostHeader', parameters('originHostHeader')), createObject()))]" + "properties": "[union(createObject('hostName', parameters('hostName'), 'httpPort', parameters('httpPort'), 'enabled', parameters('enabled'), 'httpsPort', parameters('httpsPort')), if(or(greater(parameters('priority'), 0), greater(parameters('weight'), 0)), createObject('priority', parameters('priority'), 'weight', parameters('weight')), createObject()), if(and(not(empty(parameters('privateLinkAlias'))), not(empty(parameters('privateLinkLocation')))), createObject('privateLinkAlias', parameters('privateLinkAlias'), 'privateLinkLocation', parameters('privateLinkLocation')), createObject()), if(not(empty(parameters('privateLinkResourceId'))), createObject('privateLinkResourceId', parameters('privateLinkResourceId')), createObject()), if(not(empty(parameters('originHostHeader'))), createObject('originHostHeader', parameters('originHostHeader')), createObject()))]", + "dependsOn": [ + "endpoint" + ] } }, "outputs": { @@ -1401,7 +1410,8 @@ } }, "dependsOn": [ - "endpoint" + "endpoint", + "profile" ] } }, @@ -1497,8 +1507,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "135211401759640973" + "version": "0.31.92.45157", + "templateHash": "4792421994565335139" }, "name": "CDN Profiles Secret", "description": "This module deploys a CDN Profile Secret.", @@ -1647,8 +1657,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "10387694873442665915" + "version": "0.31.92.45157", + "templateHash": "420872064438039619" }, "name": "CDN Profiles Custom Domains", "description": "This module deploys a CDN Profile Custom Domains.", @@ -1802,7 +1812,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/secrets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('secretName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('secretName'))]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -1824,7 +1837,10 @@ "minimumTlsVersion": "[parameters('minimumTlsVersion')]", "secret": "[if(not(empty(parameters('secretName'))), createObject('id', resourceId('Microsoft.Cdn/profiles/secrets', parameters('profileName'), parameters('secretName'))), null())]" } - } + }, + "dependsOn": [ + "profile" + ] } }, "outputs": { @@ -1900,8 +1916,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "15886213526918072525" + "version": "0.31.92.45157", + "templateHash": "13972056376134412662" }, "name": "CDN Profiles Origin Group", "description": "This module deploys a CDN Profile Origin Group.", @@ -2184,7 +2200,10 @@ "loadBalancingSettings": "[parameters('loadBalancingSettings')]", "sessionAffinityState": "[parameters('sessionAffinityState')]", "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": "[parameters('trafficRestorationTimeToHealedOrNewEndpointsInMinutes')]" - } + }, + "dependsOn": [ + "profile" + ] }, "originGroup_origins": { "copy": { @@ -2244,8 +2263,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "3615112055594041997" + "version": "0.31.92.45157", + "templateHash": "7808954044639543840" }, "name": "CDN Profiles Origin", "description": "This module deploys a CDN Profile Origin.", @@ -2424,7 +2443,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/originGroups", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -2446,7 +2468,10 @@ "priority": "[parameters('priority')]", "sharedPrivateLinkResource": "[parameters('sharedPrivateLinkResource')]", "weight": "[parameters('weight')]" - } + }, + "dependsOn": [ + "profile::originGroup" + ] } }, "outputs": { @@ -2546,8 +2571,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "4753233857701337613" + "version": "0.31.92.45157", + "templateHash": "6799234533111360012" }, "name": "CDN Profiles Rule Sets", "description": "This module deploys a CDN Profile rule set.", @@ -2660,7 +2685,10 @@ "ruleSet": { "type": "Microsoft.Cdn/profiles/ruleSets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('name'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('name'))]", + "dependsOn": [ + "profile" + ] }, "ruleSet_rules": { "copy": { @@ -2705,8 +2733,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "11756620080021514486" + "version": "0.31.92.45157", + "templateHash": "5961518761760139272" }, "name": "CDN Profiles Rules", "description": "This module deploys a CDN Profile rule.", @@ -2815,7 +2843,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/ruleSets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSetName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSetName'))]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -2832,7 +2863,10 @@ "actions": "[parameters('actions')]", "conditions": "[parameters('conditions')]", "matchProcessingBehavior": "[parameters('matchProcessingBehavior')]" - } + }, + "dependsOn": [ + "profile::ruleSet" + ] } }, "outputs": { @@ -2934,8 +2968,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "16899001110062450573" + "version": "0.31.92.45157", + "templateHash": "8817136365913068133" }, "name": "CDN Profiles AFD Endpoints", "description": "This module deploys a CDN Profile AFD Endpoint.", @@ -3243,7 +3277,10 @@ "properties": { "autoGeneratedDomainNameLabelScope": "[parameters('autoGeneratedDomainNameLabelScope')]", "enabledState": "[parameters('enabledState')]" - } + }, + "dependsOn": [ + "profile" + ] }, "afdEndpoint_routes": { "copy": { @@ -3309,8 +3346,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "15873678240851060540" + "version": "0.31.92.45157", + "templateHash": "17863230728556651506" }, "name": "CDN Profiles AFD Endpoint Route", "description": "This module deploys a CDN Profile AFD Endpoint route.", @@ -3603,7 +3640,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/afdEndpoints", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('afdEndpointName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('afdEndpointName'))]", + "dependsOn": [ + "profile" + ] }, "profile::customDomains": { "copy": { @@ -3613,13 +3653,19 @@ "existing": true, "type": "Microsoft.Cdn/profiles/customDomains", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), coalesce(parameters('customDomainNames'), createArray())[copyIndex()])]" + "name": "[format('{0}/{1}', parameters('profileName'), coalesce(parameters('customDomainNames'), createArray())[copyIndex()])]", + "dependsOn": [ + "profile" + ] }, "profile::originGroup": { "existing": true, "type": "Microsoft.Cdn/profiles/originGroups", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]", + "dependsOn": [ + "profile" + ] }, "profile::ruleSet": { "copy": { @@ -3629,7 +3675,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/ruleSets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSets')[copyIndex()].name)]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSets')[copyIndex()].name)]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -3669,7 +3718,10 @@ "originPath": "[parameters('originPath')]", "patternsToMatch": "[parameters('patternsToMatch')]", "supportedProtocols": "[parameters('supportedProtocols')]" - } + }, + "dependsOn": [ + "profile::afdEndpoint" + ] } }, "outputs": { @@ -3698,7 +3750,8 @@ } }, "dependsOn": [ - "afdEndpoint" + "afdEndpoint", + "profile" ] } }, @@ -3782,8 +3835,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "3914917842985483427" + "version": "0.31.92.45157", + "templateHash": "3967677433883074947" }, "name": "CDN Profiles Security Policy", "description": "This module deploys a CDN Profile Security Policy.", @@ -3873,7 +3926,10 @@ }, "associations": "[parameters('associations')]" } - } + }, + "dependsOn": [ + "profile" + ] } }, "outputs": { diff --git a/avm/res/cdn/profile/origingroup/main.json b/avm/res/cdn/profile/origingroup/main.json index 7dd74caff6..3f7c132aab 100644 --- a/avm/res/cdn/profile/origingroup/main.json +++ b/avm/res/cdn/profile/origingroup/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "15886213526918072525" + "version": "0.31.92.45157", + "templateHash": "13972056376134412662" }, "name": "CDN Profiles Origin Group", "description": "This module deploys a CDN Profile Origin Group.", @@ -289,7 +289,10 @@ "loadBalancingSettings": "[parameters('loadBalancingSettings')]", "sessionAffinityState": "[parameters('sessionAffinityState')]", "trafficRestorationTimeToHealedOrNewEndpointsInMinutes": "[parameters('trafficRestorationTimeToHealedOrNewEndpointsInMinutes')]" - } + }, + "dependsOn": [ + "profile" + ] }, "originGroup_origins": { "copy": { @@ -349,8 +352,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "3615112055594041997" + "version": "0.31.92.45157", + "templateHash": "7808954044639543840" }, "name": "CDN Profiles Origin", "description": "This module deploys a CDN Profile Origin.", @@ -529,7 +532,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/originGroups", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -551,7 +557,10 @@ "priority": "[parameters('priority')]", "sharedPrivateLinkResource": "[parameters('sharedPrivateLinkResource')]", "weight": "[parameters('weight')]" - } + }, + "dependsOn": [ + "profile::originGroup" + ] } }, "outputs": { diff --git a/avm/res/cdn/profile/origingroup/origin/main.json b/avm/res/cdn/profile/origingroup/origin/main.json index 6488e9907f..a9c0ca5727 100644 --- a/avm/res/cdn/profile/origingroup/origin/main.json +++ b/avm/res/cdn/profile/origingroup/origin/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "3615112055594041997" + "version": "0.31.92.45157", + "templateHash": "7808954044639543840" }, "name": "CDN Profiles Origin", "description": "This module deploys a CDN Profile Origin.", @@ -185,7 +185,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/originGroups", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('originGroupName'))]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -207,7 +210,10 @@ "priority": "[parameters('priority')]", "sharedPrivateLinkResource": "[parameters('sharedPrivateLinkResource')]", "weight": "[parameters('weight')]" - } + }, + "dependsOn": [ + "profile::originGroup" + ] } }, "outputs": { diff --git a/avm/res/cdn/profile/ruleset/main.json b/avm/res/cdn/profile/ruleset/main.json index cffc63c7ee..d0be70d635 100644 --- a/avm/res/cdn/profile/ruleset/main.json +++ b/avm/res/cdn/profile/ruleset/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "4753233857701337613" + "version": "0.31.92.45157", + "templateHash": "6799234533111360012" }, "name": "CDN Profiles Rule Sets", "description": "This module deploys a CDN Profile rule set.", @@ -119,7 +119,10 @@ "ruleSet": { "type": "Microsoft.Cdn/profiles/ruleSets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('name'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('name'))]", + "dependsOn": [ + "profile" + ] }, "ruleSet_rules": { "copy": { @@ -164,8 +167,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "11756620080021514486" + "version": "0.31.92.45157", + "templateHash": "5961518761760139272" }, "name": "CDN Profiles Rules", "description": "This module deploys a CDN Profile rule.", @@ -274,7 +277,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/ruleSets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSetName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSetName'))]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -291,7 +297,10 @@ "actions": "[parameters('actions')]", "conditions": "[parameters('conditions')]", "matchProcessingBehavior": "[parameters('matchProcessingBehavior')]" - } + }, + "dependsOn": [ + "profile::ruleSet" + ] } }, "outputs": { diff --git a/avm/res/cdn/profile/ruleset/rule/main.json b/avm/res/cdn/profile/ruleset/rule/main.json index 465bed9ee5..05647c5b20 100644 --- a/avm/res/cdn/profile/ruleset/rule/main.json +++ b/avm/res/cdn/profile/ruleset/rule/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "11756620080021514486" + "version": "0.31.92.45157", + "templateHash": "5961518761760139272" }, "name": "CDN Profiles Rules", "description": "This module deploys a CDN Profile rule.", @@ -115,7 +115,10 @@ "existing": true, "type": "Microsoft.Cdn/profiles/ruleSets", "apiVersion": "2023-05-01", - "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSetName'))]" + "name": "[format('{0}/{1}', parameters('profileName'), parameters('ruleSetName'))]", + "dependsOn": [ + "profile" + ] }, "profile": { "existing": true, @@ -132,7 +135,10 @@ "actions": "[parameters('actions')]", "conditions": "[parameters('conditions')]", "matchProcessingBehavior": "[parameters('matchProcessingBehavior')]" - } + }, + "dependsOn": [ + "profile::ruleSet" + ] } }, "outputs": { diff --git a/avm/res/cdn/profile/secret/main.json b/avm/res/cdn/profile/secret/main.json index 4c2f0abd3c..b9b4c526f1 100644 --- a/avm/res/cdn/profile/secret/main.json +++ b/avm/res/cdn/profile/secret/main.json @@ -4,8 +4,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "135211401759640973" + "version": "0.31.92.45157", + "templateHash": "4792421994565335139" }, "name": "CDN Profiles Secret", "description": "This module deploys a CDN Profile Secret.", diff --git a/avm/res/cdn/profile/securityPolicies/main.json b/avm/res/cdn/profile/securityPolicies/main.json index e94a644cf3..9b1f010d4c 100644 --- a/avm/res/cdn/profile/securityPolicies/main.json +++ b/avm/res/cdn/profile/securityPolicies/main.json @@ -5,8 +5,8 @@ "metadata": { "_generator": { "name": "bicep", - "version": "0.31.34.60546", - "templateHash": "3914917842985483427" + "version": "0.31.92.45157", + "templateHash": "3967677433883074947" }, "name": "CDN Profiles Security Policy", "description": "This module deploys a CDN Profile Security Policy.", @@ -96,7 +96,10 @@ }, "associations": "[parameters('associations')]" } - } + }, + "dependsOn": [ + "profile" + ] } }, "outputs": {