Skip to content

Commit

Permalink
Merge pull request #314 from ymehdimsft/dev-alz-pattern
Browse files Browse the repository at this point in the history
Add Application Insights alerts
  • Loading branch information
Brunoga-MS authored Dec 20, 2024
2 parents 775e1fe + 18404e1 commit fcebd2f
Show file tree
Hide file tree
Showing 19 changed files with 1,460 additions and 44 deletions.
1 change: 1 addition & 0 deletions docs/content/patterns/alz/HowTo/Log_Search_Alert_Table.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ geekdocHidden: true
| Virtual machine | *```subscription().displayName```*-VMHighCPUAlert | _Log search_ | ***\_amba-UtilizationPercentage-threshold-Override\_*** |
| Virtual machine | *```subscription().displayName```*-VMLowMemoryAlert | _Log search_ | ***\_amba-AvailableMemoryPercentage-threshold-Override\_*** |
| Log Analytics workspace | *```resourceName```*-DailyCapLimitReachedAlert | _Log search_ | ***Not available as threshold will always be ```0```*** |
| Application Insights | *```resourceName```*-ApplicationInsightsThrottlingLimitReachedAlert | _Log search_ | ***\_amba-Throttling-threshold-override\_*** |
1 change: 1 addition & 0 deletions docs/content/patterns/alz/HowTo/Metrics_Alert_Table.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,4 @@ geekdocHidden: true
| App Service plan | *```resourceName```*-DiskQueueLengthAlert | Metrics | <span style="color:DarkOrange">***Not available since it uses dynamic thresholds***</span> |
| App Service plan | *```resourceName```*-HttpQueueLengthAlert | Metrics | <span style="color:DarkOrange">***Not available since it uses dynamic thresholds***</span> |
| App Service plan | *```resourceName```*-MemoryPercentage | Metrics | ***\_amba-MemoryPercentage-threshold-Override\_*** |
| Application Insights | ActivityAppInsightsDelete | Activity Log | <span style="color:DarkOrange">***Not available since Activity Log based alerts do not have thresholds***</span> |
4 changes: 2 additions & 2 deletions patterns/alz/alzArm.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"No"
],
"metadata": {
"displayName": "Teletry Opt Out",
"displayName": "Telemetry Opt Out",
"description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry."
}
},
Expand Down Expand Up @@ -500,7 +500,7 @@
"policyAssignmentParametersRecoveryServices": "[union(variables('policyAssignmentParametersMonitorDisable'), parameters('policyAssignmentParametersRecoveryServices'))]",
"policyAssignmentParametersStorage": "[union(variables('policyAssignmentParametersCommon'), parameters('policyAssignmentParametersStorage'))]",
"policyAssignmentParametersVM": "[union(variables('policyAssignmentParametersCommon'), parameters('policyAssignmentParametersVM'),variables('uamiParameters'))]",
"policyAssignmentParametersWeb": "[union(variables('policyAssignmentParametersMonitorDisable'), parameters('policyAssignmentParametersWeb'))]",
"policyAssignmentParametersWeb": "[union(variables('policyAssignmentParametersCommon'), parameters('policyAssignmentParametersWeb'), variables('uamiParameters'))]",
// Declaring all required deployment uri's used for deployments of composite ARM templates for ESLZ
"deploymentUris": {
"policyDefinitionsAutomation": "[uri(deployment().properties.templateLink.uri, 'policyDefinitions/policies-Automation.json')]",
Expand Down
39 changes: 39 additions & 0 deletions patterns/alz/alzArm.param.json
Original file line number Diff line number Diff line change
Expand Up @@ -2877,6 +2877,45 @@
},
"WSFHttpQueueLengthEvaluationPeriods": {
"value": "2"
},
"AppInsightsThrottlingLimitSeverity": {
"value": "1"
},
"AppInsightsThrottlingLimitOperator": {
"value": "GreaterThan"
},
"AppInsightsThrottlingLimitTimeAggregation": {
"value": "Count"
},
"AppInsightsThrottlingLimitWindowSize": {
"value": "PT5M"
},
"AppInsightsThrottlingLimitEvaluationFrequency": {
"value": "PT5M"
},
"AppInsightsThrottlingLimitAutoMitigate": {
"value": "true"
},
"AppInsightsThrottlingLimitThreshold": {
"value": "32000"
},
"AppInsightsThrottlingLimitFailingPeriods": {
"value": "1"
},
"AppInsightsThrottlingLimitEvaluationPeriods": {
"value": "1"
},
"AppInsightsThrottlingLimitPolicyEffect": {
"value": "deployIfNotExists"
},
"AppInsightsThrottlingLimitAlertState": {
"value": "false"
},
"activityAppInsightsDeletePolicyEffect": {
"value": "deployIfNotExists"
},
"activityAppInsightsDeleteAlertState": {
"value": "false"
}
}
}
Expand Down
39 changes: 39 additions & 0 deletions patterns/alz/eslzArm.terraform-sync.param.json
Original file line number Diff line number Diff line change
Expand Up @@ -2877,6 +2877,45 @@
},
"WSFHttpQueueLengthEvaluationPeriods": {
"value": "2"
},
"AppInsightsThrottlingLimitSeverity": {
"value": "1"
},
"AppInsightsThrottlingLimitOperator": {
"value": "GreaterThan"
},
"AppInsightsThrottlingLimitTimeAggregation": {
"value": "Count"
},
"AppInsightsThrottlingLimitWindowSize": {
"value": "PT5M"
},
"AppInsightsThrottlingLimitEvaluationFrequency": {
"value": "PT5M"
},
"AppInsightsThrottlingLimitAutoMitigate": {
"value": "true"
},
"AppInsightsThrottlingLimitThreshold": {
"value": "32000"
},
"AppInsightsThrottlingLimitFailingPeriods": {
"value": "1"
},
"AppInsightsThrottlingLimitEvaluationPeriods": {
"value": "1"
},
"AppInsightsThrottlingLimitPolicyEffect": {
"value": "deployIfNotExists"
},
"AppInsightsThrottlingLimitAlertState": {
"value": "false"
},
"activityAppInsightsDeletePolicyEffect": {
"value": "deployIfNotExists"
},
"activityAppInsightsDeleteAlertState": {
"value": "false"
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions patterns/alz/policyDefinitions/policies-Automation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.19.5.34762",
"templateHash": "10001095019586829330"
"version": "0.32.4.45862",
"templateHash": "10530905569433825957"
}
},
"parameters": {
"topLevelManagementGroupPrefix": {
"type": "string",
"defaultValue": "alz",
"metadata": {
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\"",
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!"
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!",
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\""
}
},
"location": {
Expand Down
8 changes: 4 additions & 4 deletions patterns/alz/policyDefinitions/policies-Compute.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.19.5.34762",
"templateHash": "5171477523449090733"
"version": "0.32.4.45862",
"templateHash": "1173048230693308025"
}
},
"parameters": {
"topLevelManagementGroupPrefix": {
"type": "string",
"defaultValue": "alz",
"metadata": {
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\"",
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!"
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!",
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\""
}
},
"location": {
Expand Down
8 changes: 4 additions & 4 deletions patterns/alz/policyDefinitions/policies-Hybrid.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.19.5.34762",
"templateHash": "3790906364926990204"
"version": "0.32.4.45862",
"templateHash": "1310885253957432604"
}
},
"parameters": {
"topLevelManagementGroupPrefix": {
"type": "string",
"defaultValue": "alz",
"metadata": {
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\"",
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!"
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!",
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\""
}
},
"location": {
Expand Down
8 changes: 4 additions & 4 deletions patterns/alz/policyDefinitions/policies-KeyManagement.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.19.5.34762",
"templateHash": "72757054326075040"
"version": "0.32.4.45862",
"templateHash": "14869777702741806183"
}
},
"parameters": {
"topLevelManagementGroupPrefix": {
"type": "string",
"defaultValue": "alz",
"metadata": {
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\"",
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!"
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!",
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\""
}
},
"location": {
Expand Down
8 changes: 4 additions & 4 deletions patterns/alz/policyDefinitions/policies-Monitoring.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.19.5.34762",
"templateHash": "3342767412473884252"
"version": "0.32.4.45862",
"templateHash": "6543928731183555607"
}
},
"parameters": {
"topLevelManagementGroupPrefix": {
"type": "string",
"defaultValue": "alz",
"metadata": {
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\"",
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!"
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!",
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\""
}
},
"location": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.19.5.34762",
"templateHash": "13990384610618582047"
"version": "0.32.4.45862",
"templateHash": "13822163595010851058"
}
},
"parameters": {
"topLevelManagementGroupPrefix": {
"type": "string",
"defaultValue": "alz",
"metadata": {
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\"",
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!"
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!",
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\""
}
},
"location": {
Expand Down
8 changes: 4 additions & 4 deletions patterns/alz/policyDefinitions/policies-RecoveryServices.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.19.5.34762",
"templateHash": "4026295181729512686"
"version": "0.32.4.45862",
"templateHash": "16404316663146583246"
}
},
"parameters": {
"topLevelManagementGroupPrefix": {
"type": "string",
"defaultValue": "alz",
"metadata": {
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\"",
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!"
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!",
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\""
}
},
"location": {
Expand Down
8 changes: 4 additions & 4 deletions patterns/alz/policyDefinitions/policies-Storage.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"metadata": {
"_generator": {
"name": "bicep",
"version": "0.19.5.34762",
"templateHash": "7230601166858169199"
"version": "0.32.4.45862",
"templateHash": "3955992142944331035"
}
},
"parameters": {
"topLevelManagementGroupPrefix": {
"type": "string",
"defaultValue": "alz",
"metadata": {
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\"",
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!"
"message": "The JSON version of this file is programatically generated from Bicep. PLEASE DO NOT UPDATE MANUALLY!!",
"description": "Provide a prefix (unique at tenant-scope) for the Management Group hierarchy and other resources created as part of an Azure landing zone. DEFAULT VALUE = \"alz\""
}
},
"location": {
Expand Down
Loading

0 comments on commit fcebd2f

Please sign in to comment.