- name: Backup Health Monitoring
  description: Deploy RecoveryVault BackupHealthMonitor Alert
  type: ModifyPolicy
  verified: true
  visible: true
  tags:
  - alz
  properties:
    category: Site Recovery
    operationName: Microsoft.RecoveryServices/vaults/monitoringSettings.azureMonitorAlertSettings.alertsForAllJobFailures"
    status:
    - Enabled
  references:
  - name: Azure Monitor Alerts for Azure Backup
    url: https://learn.microsoft.com/azure/service-health/alerts-activity-log-service-notifications-portal
  - name: Move to Azure Monitor Alerts
    url: https://learn.microsoft.com/en-us/azure/backup/move-to-azure-monitor-alerts
  deployments:
  - name: Deploy RV Backup Health Monitoring Alerts monitor alerts
    template: Modify-RSV-BackupHealth-Alert.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Resource
      multiResource: false
  guid: aa56c6a8-87b3-4291-bdff-7996948c3155
- name: BackupHealthEvent
  description: The count of health events pertaining to backup job health
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-4484
  properties:
    metricName: BackupHealthEvent
    metricNamespace: Microsoft.RecoveryServices/vaults
    severity: 3
    windowSize: P1D
    evaluationFrequency: PT1H
    timeAggregation: Count
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 0.0
    enabled: true
  guid: 8f9b2819-9c51-4f30-91fd-195b7bc5d7a5
- name: RestoreHealthEvent
  description: The count of health events pertaining to restore job health
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-400
  properties:
    metricName: RestoreHealthEvent
    metricNamespace: Microsoft.RecoveryServices/vaults
    severity: 2
    windowSize: PT15M
    evaluationFrequency: PT15M
    timeAggregation: Count
    operator: GreaterThanOrEqual
    criterionType: StaticThresholdCriterion
    dimensions:
    - operator: exclude
      name: healthstatus
      values:
      - healthy
    threshold: 1.0
    enabled: true
  guid: 805aa9c8-4d52-411d-9811-cc02b33952e3
