Skip to content

Commit

Permalink
ASR policy update
Browse files Browse the repository at this point in the history
  • Loading branch information
roarrioj committed Sep 13, 2024
1 parent e3a4197 commit a78db5e
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
3 changes: 3 additions & 0 deletions patterns/alz/alzArm.param.json
Original file line number Diff line number Diff line change
Expand Up @@ -2195,6 +2195,9 @@
"value": {
"RVBackupHealthMonitorPolicyEffect": {
"value": "modify"
},
"RVASRHealthMonitorPolicyEffect": {
"value": "modify"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"displayName": "Deploy Azure Monitor Baseline Alerts for Recovery Services",
"description": "This initiative deploys Azure Monitor Baseline Alerts to monitor Recovery Services such as Azure Backup, and Azure Site Recovery.",
"metadata": {
"version": "1.0.0",
"version": "1.1.0",
"category": "Monitoring",
"source": "https://github.com/Azure/azure-monitor-baseline-alerts/",
"alzCloudEnvironments": [
Expand Down Expand Up @@ -48,6 +48,19 @@
"displayName": "Recovery Vault Backup Health Monitor Policy Effect",
"description": "Policy effect for the alert, modify will modify the alert if it exists, or audit if it does not exist"
}
},
"RVASRHealthMonitorPolicyEffect": {
"type": "string",
"defaultValue": "modify",
"allowedValues": [
"modify",
"audit",
"disabled"
],
"metadata": {
"displayName": "Recovery Vault ASR Health Monitor Policy Effect",
"description": "Policy effect for the alert, modify will modify the alert if it exists, or audit if it does not exist"
}
}
},
"policyDefinitions": [
Expand All @@ -65,6 +78,21 @@
"value": "[[parameters('ALZMonitorDisableTagValues')]"
}
}
},
{
"policyDefinitionReferenceId": "ALZ_RVASRHealthMonitor",
"policyDefinitionId": "/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Authorization/policyDefinitions/Deploy_RecoveryVault_ASRHealthMonitor_Alert",
"parameters": {
"effect": {
"value": "[[parameters('RVASRHealthMonitorPolicyEffect')]"
},
"MonitorDisableTagName": {
"value": "[[parameters('ALZMonitorDisableTagName')]"
},
"MonitorDisableTagValues": {
"value": "[[parameters('ALZMonitorDisableTagValues')]"
}
}
}
],
"policyType": "Custom",
Expand Down
1 change: 1 addition & 0 deletions patterns/alz/templates/policies-RecoveryServices.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ var loadPolicyDefinitions = {
All: [
// Used in both RecoverySwervices and Management Policy Set Definitions
loadTextContent('../../../services/RecoveryServices/vaults/Modify-RSV-BackupHealth-Alert.json')
loadTextContent('../../../services/RecoveryServices/vaults/Modify-RSV-ASRHealth-Alert.json')
]
AzureCloud: []
AzureChinaCloud: []
Expand Down

0 comments on commit a78db5e

Please sign in to comment.