Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

ALZ Monitor Customisation #241

@gerrynicol

Description

@gerrynicol

HI there,

Possibly wrong forum for this (and have raised a ticket for this also) but I have been doing some customisation on the ALZ monitor bicep files to suit our requirements. One of theses is to define the actual alert rules you want included in an alert processing rule. See below for an example (under conditions). This works as expected, however, if I was then to go an add an additional alert rule name under the conditions and push it, the azure policy definition is updated, but the actual alert processing rule is not. The only way round this seems to be to delete the current assignment, the existing alert processing rules and action groups and redeploy. Is there an alternative to this approach that could be recommmended? I have a feeling that this level of customisation to select particular alert rules may be a good enhancement when ALZ monitor becomes part of the overall ALZ architecture.

                        type: 'Microsoft.AlertsManagement/actionRules'
                        apiVersion: '2021-08-08'
                        name: 'Alz Alert Processing Rule - ServiceHealth'
                        location: 'global'
                         dependsOn: [
                        '[concat(\'Microsoft.Insights/actionGroups/\', \'AlzActGrpSrv\')]'
                         ]
                         tags: {
                          _deployed_by_alz_monitor: true
                        }
                        properties: {
                          scopes: [
                            '[subscription().Id]'
                          ]
                          description: 'Alz Alert Processing Rule - ServiceHealth'
                          enabled: true
                          actions: [
                            {
                              actiongroupIds: [
                                '''[concat(subscription().Id, '/resourceGroups/', parameters('ALZMonitorResourceGroupName'), '/providers/Microsoft.Insights/actionGroups/AlzActGrpSrv')]'''
                              ]
                              actionType: 'AddActionGroups'
                            }
                          ]
                          conditions: [
                            {
                              field: 'AlertRuleName'
                              operator: 'Equals'
                              values: [
                                'ServiceHealthAdvisoryEvent'
                                'ServiceHealthIncident'
                                'ServiceHealthPlannedMaintenance'
                                'ServiceHealthSecurityIncident'
                              ]
                            }

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions