Skip to content

Commit

Permalink
put a dependency from policySetDefinition deployment to ensure assign…
Browse files Browse the repository at this point in the history
…ments do not fail
  • Loading branch information
Brunoga-MS committed Nov 27, 2024
1 parent 951bed7 commit 95a0384
Showing 1 changed file with 42 additions and 7 deletions.
49 changes: 42 additions & 7 deletions patterns/alz/alzArm.json
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBAConnectivityDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('connectivityManagementGroup'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand All @@ -1021,6 +1024,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBAIdentityDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('identityManagementGroup'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand All @@ -1047,8 +1053,9 @@
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('managementManagementGroup'))]",
"location": "[deployment().location]",
"dependsOn": [
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]"
],
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]",
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"properties": {
"mode": "Incremental",
"templateLink": {
Expand Down Expand Up @@ -1078,6 +1085,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBAServiceHealthDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('enterpriseScaleCompanyPrefix'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand All @@ -1102,6 +1112,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBANotificationAssetsDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('enterpriseScaleCompanyPrefix'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand All @@ -1128,8 +1141,9 @@
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('LandingZoneManagementGroup'))]",
"location": "[deployment().location]",
"dependsOn": [
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]"
],
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]",
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"properties": {
"mode": "Incremental",
"templateLink": {
Expand Down Expand Up @@ -1164,7 +1178,8 @@
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('platformManagementGroup'))]",
"location": "[deployment().location]",
"dependsOn": [
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]"
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]",
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"properties": {
"mode": "Incremental",
Expand Down Expand Up @@ -1198,6 +1213,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBAKeyManagementDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('LandingZoneManagementGroup'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand All @@ -1222,6 +1240,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBALoadBalancingDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('LandingZoneManagementGroup'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand All @@ -1246,6 +1267,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBANetworkChangesDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('LandingZoneManagementGroup'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand All @@ -1270,6 +1294,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBARecoveryServicesDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('LandingZoneManagementGroup'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand All @@ -1294,6 +1321,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBAStorageDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('LandingZoneManagementGroup'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand All @@ -1320,7 +1350,8 @@
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('LandingZoneManagementGroup'))]",
"location": "[deployment().location]",
"dependsOn": [
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]"
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]",
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"properties": {
"mode": "Incremental",
Expand Down Expand Up @@ -1356,7 +1387,8 @@
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('platformManagementGroup'))]",
"location": "[deployment().location]",
"dependsOn": [
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]"
"[variables('deploymentNames').AMBAUamiRoleAssignmentDeploymentName]",
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"properties": {
"mode": "Incremental",
Expand Down Expand Up @@ -1390,6 +1422,9 @@
"apiVersion": "2020-10-01",
"name": "[variables('deploymentNames').AMBAWebDeploymentName]",
"scope": "[concat('Microsoft.Management/managementGroups/', parameters('LandingZoneManagementGroup'))]",
"dependsOn": [
"[variables('deploymentNames').policySetDefinitionsDeploymentName]"
],
"location": "[deployment().location]",
"properties": {
"mode": "Incremental",
Expand Down

0 comments on commit 95a0384

Please sign in to comment.