Skip to content

Commit

Permalink
Update policy definitions and parameters; add ALZAlertSeverity and AL…
Browse files Browse the repository at this point in the history
…ZProcessingRuleNameSuffix and increment versions
  • Loading branch information
Brunoga-MS committed Dec 11, 2024
1 parent 1ec2f1f commit 0f8cff1
Show file tree
Hide file tree
Showing 17 changed files with 134 additions and 83 deletions.
12 changes: 12 additions & 0 deletions patterns/alz/alzArm.param.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@
"ALZFunctionTriggerUrl": {
"value": ""
},
"ALZProcessingRuleNameSuffix": {
"value": "-001"
},
"ALZAlertSeverity": {
"value": [
"Sev0",
"Sev1",
"Sev2",
"Sev3",
"Sev4"
]
},
"BYOActionGroup": {
"value": []
},
Expand Down
12 changes: 12 additions & 0 deletions patterns/alz/eslzArm.terraform-sync.param.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,18 @@
"ALZFunctionTriggerUrl": {
"value": ""
},
"ALZProcessingRuleNameSuffix": {
"value": "-001"
},
"ALZAlertSeverity": {
"value": [
"Sev0",
"Sev1",
"Sev2",
"Sev3",
"Sev4"
]
},
"BYOActionGroup": {
"value": []
},
Expand Down
2 changes: 1 addition & 1 deletion patterns/alz/policyDefinitions/policies-Automation.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,4 @@
}
}
}
}
}
28 changes: 14 additions & 14 deletions patterns/alz/policyDefinitions/policies-Compute.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion patterns/alz/policyDefinitions/policies-Hybrid.json
Original file line number Diff line number Diff line change
Expand Up @@ -2824,4 +2824,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion patterns/alz/policyDefinitions/policies-KeyManagement.json
Original file line number Diff line number Diff line change
Expand Up @@ -1816,4 +1816,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion patterns/alz/policyDefinitions/policies-Monitoring.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,4 +223,4 @@
}
}
}
}
}
44 changes: 22 additions & 22 deletions patterns/alz/policyDefinitions/policies-Network.json

Large diffs are not rendered by default.

21 changes: 16 additions & 5 deletions patterns/alz/policyDefinitions/policies-NotificationAssets.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -324,4 +324,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion patterns/alz/policyDefinitions/policies-ServiceHealth.json
Original file line number Diff line number Diff line change
Expand Up @@ -695,4 +695,4 @@
}
}
}
}
}
2 changes: 1 addition & 1 deletion patterns/alz/policyDefinitions/policies-Storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -447,4 +447,4 @@
}
}
}
}
}
8 changes: 4 additions & 4 deletions patterns/alz/policyDefinitions/policies-Web.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion patterns/alz/policyDefinitions/policySets.json
Original file line number Diff line number Diff line change
Expand Up @@ -6359,4 +6359,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"displayName": "Deploy Azure Monitor Baseline Alerts - Notification Assets",
"description": "This initiative deploys Notification Assets for Azure Monitor Baseline Alerts. This includes the setup of an Alert Processing Rule and an Action Group to manage notifications and actions, along with a Notification Suppression Rule to manage alert notifications, as well as a Notification Suppression Rule to control alert notifications.",
"metadata": {
"version": "1.3.1",
"version": "1.4.1",
"category": "Monitoring",
"source": "https://github.com/Azure/azure-monitor-baseline-alerts/",
"alzCloudEnvironments": [
Expand Down Expand Up @@ -126,6 +126,14 @@
},
"defaultValue": ""
},
"ALZProcessingRuleNameSuffix": {
"type": "String",
"metadata": {
"displayName": "Alert Processing Rule Name Suffix",
"description": "Name of the Alert Processing Rule and actionGroup suffix"
},
"defaultValue": "-001"
},
"ALZAlertSeverity": {
"type": "Array",
"metadata": {
Expand Down Expand Up @@ -195,6 +203,9 @@
"ALZFunctionTriggerUrl": {
"value": "[[parameters('ALZFunctionTriggerUrl')]"
},
"ALZProcessingRuleNameSuffix": {
"value": "[[parameters('ALZProcessingRuleNameSuffix')]"
},
"ALZAlertSeverity": {
"value": "[[parameters('ALZAlertSeverity')]"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@
"_deployed_by_amba": true
}
},
"ALZProcessingRuleNameSuffix": {
"type": "String",
"metadata": {
"displayName": "Alert Processing Rule Name Suffix",
"description": "Name of the Alert Processing Rule and actionGroup suffix"
},
"defaultValue": "-001"
},
"ALZMonitorResourceGroupLocation": {
"type": "String",
"metadata": {
Expand Down Expand Up @@ -115,21 +107,13 @@
},
"defaultValue": ""
},
"BYOActionGroup": {
"type": "array",
"metadata": {
"displayName": "Customer defined Action Group Resource IDs",
"description": "The Resource IDs of existing Action Groups currently deployed in the environment."
},
"defaultValue": []
},
"BYOAlertProcessingRule": {
"ALZProcessingRuleNameSuffix": {
"type": "String",
"metadata": {
"displayName": "Customer defined Alert Processing Rule Resource ID",
"description": "The Resource ID of an existing Alert Processing Rule already deployed by the customer in his environment"
"displayName": "Alert Processing Rule Name Suffix",
"description": "Name of the Alert Processing Rule and actionGroup suffix"
},
"defaultValue": ""
"defaultValue": "-001"
},
"ALZAlertSeverity": {
"type": "Array",
Expand All @@ -145,6 +129,22 @@
"Sev4"
]
},
"BYOActionGroup": {
"type": "array",
"metadata": {
"displayName": "Customer defined Action Group Resource IDs",
"description": "The Resource IDs of existing Action Groups currently deployed in the environment."
},
"defaultValue": []
},
"BYOAlertProcessingRule": {
"type": "String",
"metadata": {
"displayName": "Customer defined Alert Processing Rule Resource ID",
"description": "The Resource ID of an existing Alert Processing Rule already deployed by the customer in his environment"
},
"defaultValue": ""
},
"MonitorDisableTagName": {
"type": "String",
"metadata": {
Expand Down Expand Up @@ -200,8 +200,6 @@
"field": "Microsoft.AlertsManagement/actionRules/description",
"equals": "[[concat('apr-AMBA-', subscription().displayName, parameters('ALZProcessingRuleNameSuffix'))]"
}


]
},
"deployment": {
Expand Down Expand Up @@ -248,6 +246,9 @@
"ALZFunctionTriggerUrl": {
"type": "String"
},
"ALZAlertProcessingRuleNameSuffix": {
"type": "string"
},
"ALZAlertSeverity": {
"type": "Array"
},
Expand Down Expand Up @@ -385,6 +386,9 @@
"ALZFunctionTriggerUrl": {
"type": "string"
},
"ALZAlertProcessingRuleNameSuffix": {
"type": "string"
},
"ALZAlertSeverity": {
"type": "Array"
},
Expand Down Expand Up @@ -441,10 +445,6 @@
"values": "[[parameters('ALZAlertSeverity')]"
}
],




"enabled": true,
"actions": [
{
Expand All @@ -463,7 +463,6 @@
"ALZProcessingRuleNameSuffix": {
"value": "[[parameters('ALZProcessingRuleNameSuffix')]"
},

"ALZMonitorActionGroupEmail": {
"value": "[[parameters('ALZMonitorActionGroupEmail')]"
},
Expand All @@ -488,6 +487,9 @@
"ALZFunctionTriggerUrl": {
"value": "[[parameters('ALZFunctionTriggerUrl')]"
},
"ALZAlertProcessingRuleNameSuffix":{
"value": "[[parameters('ALZProcessingRuleNameSuffix')]"
},
"ALZAlertSeverity": {
"value": "[[parameters('ALZAlertSeverity')]"
},
Expand Down Expand Up @@ -539,7 +541,10 @@
"ALZFunctionTriggerUrl": {
"value": "[[parameters('ALZFunctionTriggerUrl')]"
},
"ALZAlertSeverity": {
"ALZAlertProcessingRuleNameSuffix":{
"value": "[[parameters('ALZProcessingRuleNameSuffix')]"
},
"ALZAlertSeverity": {
"value": "[[parameters('ALZAlertSeverity')]"
},
"BYOActionGroup": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
{
"type": "Microsoft.AlertsManagement/actionRules",
"apiVersion": "2021-08-08",
"name": "[[concat('apr-AMBA-',subscription().displayName, '-002')]",
"name": "[[concat('apr-AMBA-',subscription().displayName, '-S001')]",
"location": "Global",
"dependsOn": [],
"tags": {
Expand Down

0 comments on commit 0f8cff1

Please sign in to comment.