Skip to content

Commit

Permalink
Manual run (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Watherston <[email protected]>
  • Loading branch information
anwather and Anthony Watherston authored Jun 7, 2024
1 parent 35ede30 commit 99b53e0
Show file tree
Hide file tree
Showing 130 changed files with 18,492 additions and 7,537 deletions.
477 changes: 237 additions & 240 deletions Definitions/policyAssignments/alerting-connectivity-policySet.jsonc

Large diffs are not rendered by default.

233 changes: 233 additions & 0 deletions Definitions/policyAssignments/alerting-hybridvm-policySet.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,233 @@
{
"$schema": "https://raw.githubusercontent.com/Azure/enterprise-azure-policy-as-code/main/Schemas/policy-assignment-schema.json",
"nodeName": "/root",
"definitionEntry": {
"policySetName": "Alerting-HybridVM",
"displayName": "Deploy Azure Monitor Baseline Alerts for Hybrid VMs",
"nonComplianceMessages": [
{
"policyDefinitionReferenceId": null,
"message": "Alerting must be deployed to Azure services."
}
]
},
"assignment": {
"name": "Deploy-AMBA-HybridVM",
"displayName": "Deploy Azure Monitor Baseline Alerts for Hybrid VMs",
"description": "Initiative to deploy AMBA Hybrid VM alerts"
},
"metadata": {
"_deployed_by_amba": true
},
"parameters": {
"hybridVMDataDiskSpaceEvaluationFrequency": "PT5M",
"hybridVMOSDiskWriteLatencyEvaluationFrequency": "PT5M",
"hybridVMDataDiskSpaceWindowSize": "PT15M",
"hybridVMDataDiskWriteLatencyOperator": "LessThan",
"hybridVMDataDiskReadLatencyEvaluationPeriods": "1",
"hybridVMOSDiskSpacePolicyEffect": "deployIfNotExists",
"hybridVMDisconnectedAlertAutoMitigate": "false",
"hybridVMOSDiskReadLatencyAlertSeverity": "2",
"hybridVMDisconnectedAlertPolicyEffect": "deployIfNotExists",
"hybridVMNetworkOutThreshold": "10000000",
"hybridVMDataDiskWriteLatencyEvaluationPeriods": "1",
"hybridVMDataDiskWriteLatencyAutoResolveTime": "00:10:00",
"byoUserAssignedManagedIdentityResourceId": "",
"hybridVMDisconnectedAlertEvaluationPeriods": "1",
"hybridVMDataDiskWriteLatencyPolicyEffect": "deployIfNotExists",
"hybridVMOSDiskReadLatencyAutoMitigate": "true",
"hybridVMPercentMemoryEvaluationFrequency": "PT5M",
"hybridVMHeartBeatRGPolicyEffect": "deployIfNotExists",
"hybridVMHeartBeatRGAutoResolveTime": "00:10:00",
"hybridVMPercentMemoryAutoMitigate": "true",
"hybridVMDataDiskWriteLatencyTimeAggregation": "Average",
"hybridVMOSDiskWriteLatencyThreshold": "50",
"hybridVMOSDiskSpaceAutoResolveTime": "00:10:00",
"hybridVMDataDiskWriteLatencyDisksToInclude": [
"*"
],
"hybridVMDisconnectedAlertOperator": "GreaterThan",
"hybridVMDataDiskReadLatencyDisksToInclude": [
"*"
],
"hybridVMOSDiskReadLatencyFailingPeriods": "1",
"hybridVMPercentCPUAutoResolveTime": "00:10:00",
"hybridVMDataDiskReadLatencyWindowSize": "PT15M",
"hybridVMDataDiskWriteLatencyAlertSeverity": "2",
"hybridVMNetworkInAlertSeverity": "2",
"hybridVMOSDiskReadLatencyDisksToInclude": [
"C:",
"/"
],
"hybridVMOSDiskSpaceDisksToInclude": [
"C:",
"/"
],
"hybridVMOSDiskSpaceEvaluationPeriods": "1",
"hybridVMOSDiskWriteLatencyDisksToInclude": [
"C:",
"/"
],
"hybridVMOSDiskSpaceOperator": "LessThan",
"hybridVMHeartBeatRGWindowSize": "PT15M",
"hybridVMDataDiskSpaceEvaluationPeriods": "1",
"hybridVMOSDiskSpaceAutoResolve": "true",
"hybridVMOSDiskWriteLatencyFailingPeriods": "1",
"hybridVMDataDiskSpaceThreshold": "10",
"hybridVMOSDiskWriteLatencyComputersToInclude": [
"*"
],
"hybridVMNetworkOutComputersToInclude": [
"*"
],
"hybridVMPercentMemoryPolicyEffect": "deployIfNotExists",
"hybridVMNetworkOutTimeAggregation": "Average",
"hybridVMDataDiskReadLatencyTimeAggregation": "Average",
"alzMonitorResourceGroupTags": {
"Project": "amba-monitoring"
},
"hybridVMNetworkInOperator": "GreaterThan",
"hybridVMPercentMemoryAutoResolve": "true",
"hybridVMNetworkInComputersToInclude": [
"*"
],
"hybridVMDataDiskSpaceAlertSeverity": "2",
"hybridVMOSDiskReadLatencyEvaluationPeriods": "1",
"hybridVMOSDiskSpaceAlertState": "true",
"hybridVMNetworkOutAlertSeverity": "2",
"hybridVMOSDiskWriteLatencyAlertState": "true",
"hybridVMOSDiskReadLatencyTimeAggregation": "Average",
"hybridVMOSDiskReadLatencyAutoResolve": "true",
"hybridVMNetworkInAutoResolve": "true",
"hybridVMOSDiskWriteLatencyAutoResolve": "true",
"hybridVMPercentCPUWindowSize": "PT15M",
"hybridVMDisconnectedAlertSeverity": "1",
"hybridVMHeartBeatRGAlertState": "true",
"hybridVMOSDiskSpaceWindowSize": "PT15M",
"hybridVMNetworkOutAutoResolveTime": "00:10:00",
"hybridVMPercentMemoryAutoResolveTime": "00:10:00",
"hybridVMDataDiskReadLatencyThreshold": "30",
"hybridVMNetworkInPolicyEffect": "deployIfNotExists",
"hybridVMNetworkInAutoMitigate": "true",
"hybridVMDataDiskSpaceAlertState": "true",
"hybridVMNetworkOutAutoResolve": "true",
"hybridVMOSDiskReadLatencyAlertState": "true",
"hybridVMDataDiskSpaceOperator": "LessThan",
"hybridVMNetworkInWindowSize": "PT15M",
"alzUserAssignedManagedIdentityName": "id-amba-prod-001",
"hybridVMOSDiskSpaceTimeAggregation": "Average",
"hybridVMNetworkInTimeAggregation": "Average",
"hybridVMOSDiskWriteLatencyEvaluationPeriods": "1",
"hybridVMPercentCPUEvaluationFrequency": "PT5M",
"hybridVMPercentCPUOperator": "GreaterThan",
"hybridVMNetworkOutOperator": "GreaterThan",
"hybridVMDisconnectedAlertFailingPeriods": "1",
"hybridVMOSDiskReadLatencyComputersToInclude": [
"*"
],
"hybridVMNetworkOutNetworkInterfaceToInclude": [
"*"
],
"hybridVMPercentCPUAlertSeverity": "2",
"hybridVMDataDiskReadLatencyOperator": "LessThan",
"hybridVMDataDiskSpacePolicyEffect": "deployIfNotExists",
"hybridVMPercentCPUPolicyEffect": "deployIfNotExists",
"hybridVMNetworkInNetworkInterfaceToInclude": [
"*"
],
"hybridVMOSDiskWriteLatencyWindowSize": "PT15M",
"hybridVMDisconnectedAlertState": "true",
"hybridVMOSDiskSpaceComputersToInclude": [
"*"
],
"hybridVMOSDiskWriteLatencyPolicyEffect": "deployIfNotExists",
"hybridVMHeartBeatRGOperator": "GreaterThan",
"hybridVMDataDiskReadLatencyAlertSeverity": "2",
"hybridVMOSDiskWriteLatencyTimeAggregation": "Average",
"hybridVMDataDiskWriteLatencyEvaluationFrequency": "PT5M",
"hybridVMNetworkInEvaluationFrequency": "PT5M",
"hybridVMPercentMemoryTimeAggregation": "Average",
"hybridVMDataDiskSpaceTimeAggregation": "Average",
"hybridVMPercentMemoryThreshold": "10",
"hybridVMHeartBeatRGAlertSeverity": "1",
"hybridVMDisconnectedAlertEvaluationFrequency": "P1D",
"hybridVMNetworkInFailingPeriods": "1",
"hybridVMNetworkOutAlertState": "true",
"hybridVMOSDiskReadLatencyPolicyEffect": "deployIfNotExists",
"hybridVMHeartBeatRGTimeAggregation": "Average",
"hybridVMPercentMemoryOperator": "LessThan",
"hybridVMOSDiskSpaceThreshold": "10",
"hybridVMDataDiskWriteLatencyAlertState": "true",
"hybridVMHeartBeatRGAutoMitigate": "true",
"hybridVMOSDiskWriteLatencyAutoResolveTime": "00:10:00",
"hybridVMDataDiskWriteLatencyFailingPeriods": "1",
"hybridVMDataDiskReadLatencyEvaluationFrequency": "PT5M",
"hybridVMOSDiskWriteLatencyAutoMitigate": "true",
"hybridVMNetworkInAlertState": "true",
"hybridVMPercentMemoryAlertSeverity": "2",
"hybridVMNetworkOutEvaluationPeriods": "1",
"hybridVMOSDiskSpaceAutoMitigate": "true",
"hybridVMPercentMemoryWindowSize": "PT15M",
"hybridVMDataDiskWriteLatencyThreshold": "30",
"hybridVMHeartBeatRGAutoResolve": "true",
"hybridVMDataDiskSpaceAutoResolve": "true",
"hybridVMDisconnectedAlertTimeAggregation": "Count",
"hybridVMOSDiskReadLatencyWindowSize": "PT15M",
"hybridVMNetworkInAutoResolveTime": "00:10:00",
"hybridVMNetworkOutFailingPeriods": "1",
"alzMonitorResourceGroupName": "rg-amba-monitoring-001",
"hybridVMPercentCPUThreshold": "85",
"hybridVMDisconnectedAlertWindowSize": "P1D",
"hybridVMDataDiskReadLatencyAutoMitigate": "true",
"hybridVMOSDiskReadLatencyEvaluationFrequency": "PT5M",
"hybridVMPercentCPUAutoMitigate": "true",
"hybridVMDataDiskReadLatencyAutoResolve": "true",
"hybridVMOSDiskWriteLatencyOperator": "LessThan",
"hybridVMOSDiskSpaceEvaluationFrequency": "PT5M",
"hybridVMDataDiskReadLatencyAutoResolveTime": "00:10:00",
"hybridVMNetworkOutPolicyEffect": "deployIfNotExists",
"hybridVMDataDiskSpaceAutoResolveTime": "00:10:00",
"hybridVMOSDiskReadLatencyAutoResolveTime": "00:10:00",
"hybridVMHeartBeatRGEvaluationFrequency": "PT5M",
"hybridVMNetworkInEvaluationPeriods": "1",
"hybridVMOSDiskSpaceFailingPeriods": "1",
"hybridVMNetworkOutEvaluationFrequency": "PT5M",
"hybridVMOSDiskWriteLatencyAlertSeverity": "2",
"alzMonitorResourceGroupLocation": "australiaeast",
"hybridVMOSDiskReadLatencyOperator": "LessThan",
"hybridVMDataDiskReadLatencyPolicyEffect": "deployIfNotExists",
"hybridVMPercentCPUAutoResolve": "true",
"hybridVMPercentMemoryAlertState": "true",
"hybridVMNetworkOutAutoMitigate": "true",
"hybridVMDataDiskReadLatencyAlertState": "true",
"hybridVMNetworkOutWindowSize": "PT15M",
"hybridVMOSDiskSpaceAlertSeverity": "2",
"hybridVMDataDiskWriteLatencyAutoMitigate": "true",
"hybridVMDataDiskSpaceAutoMitigate": "true",
"hybridVMDataDiskSpaceDisksToInclude": [
"*"
],
"hybridVMNetworkInThreshold": "10000000",
"hybridVMDataDiskWriteLatencyComputersToInclude": [
"*"
],
"hybridVMDataDiskWriteLatencyWindowSize": "PT15M",
"hybridVMDataDiskWriteLatencyAutoResolve": "true",
"hybridVMDataDiskSpaceFailingPeriods": "1",
"hybridVMOSDiskReadLatencyThreshold": "30",
"hybridVMDataDiskReadLatencyFailingPeriods": "1",
"hybridVMDataDiskReadLatencyComputersToInclude": [
"*"
],
"hybridVMPercentCPUTimeAggregation": "Average",
"hybridVMHeartBeatRGThreshold": "10",
"hybridVMDisconnectedAlertDaysThreshold": "45",
"hybridVMPercentCPUAlertState": "true",
"alzManagementSubscriptionId": "8cfb2a5f-85a5-48ae-88fe-e11d149f9874"
},
"scope": {
"amba": [
"/providers/Microsoft.Management/managementGroups/amba-landingzones"
]
}
}
47 changes: 22 additions & 25 deletions Definitions/policyAssignments/alerting-identity-policySet.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -20,42 +20,39 @@
"_deployed_by_amba": true
},
"parameters": {
"kvCapacityAlertState": "true",
"kvLatencyAvailabilityThreshold": "1000",
"kvLatencyAvailabilityAlertState": "true",
"kvAvailabilityThreshold": "20",
"kvLatencyAvailabilityAlertSeverity": "3",
"alzMonitorResourceGroupName": "rg-amba-monitor",
"alzMonitorResourceGroupLocation": "eastus",
"kvRequestWindowSize": "PT5M",
"kvAvailabilityEvaluationFrequency": "PT1M",
"kvCapacityPolicyEffect": "disabled",
"activityKVDeleteAlertState": "true",
"kvRequestAlertState": "true",
"kvCapacityEvaluationFrequency": "PT1M",
"kvAvailabilityWindowSize": "PT1M",
"kvCapacityAlertSeverity": "1",
"kvAvailabilityWindowSize": "PT1M",
"kvLatencyAvailabilityWindowSize": "PT5M",
"activityKVDeleteAlertState": "true",
"kvAvailabilityAlertState": "true",
"alzMonitorResourceGroupTags": {
"Project": "alz-monitor"
},
"kvRequestPolicyEffect": "disabled",
"kvLatencyAvailabilityEvaluationFrequency": "PT5M",
"kvAvailabilityEvaluationFrequency": "PT1M",
"kvRequestWindowSize": "PT5M",
"kvAvailabilityAlertSeverity": "1",
"kvCapacityWindowSize": "PT5M",
"kvRequestAlertState": "true",
"kvCapacityAlertState": "true",
"kvLatencyAvailabilityPolicyEffect": "disabled",
"kvRequestEvaluationFrequency": "PT5M",
"kvAvailabilityPolicyEffect": "disabled",
"kvCapacityWindowSize": "PT5M",
"kvLatencyAvailabilityThreshold": "1000",
"kvRequestAlertSeverity": "2",
"kvRequestPolicyEffect": "disabled",
"kvLatencyAvailabilityEvaluationFrequency": "PT5M",
"kvCapacityThreshold": "75",
"kvLatencyAvailabilityWindowSize": "PT5M"
"kvAvailabilityThreshold": "20",
"alzMonitorResourceGroupName": "rg-amba-monitoring-001",
"kvLatencyAvailabilityAlertSeverity": "3",
"kvRequestEvaluationFrequency": "PT5M",
"alzMonitorResourceGroupTags": {
"Project": "amba-monitoring"
},
"kvCapacityEvaluationFrequency": "PT1M",
"kvAvailabilityPolicyEffect": "disabled",
"alzMonitorResourceGroupLocation": "australiaeast",
"kvCapacityPolicyEffect": "disabled"
},
"scope": {
"amba": [
"/providers/Microsoft.Management/managementGroups/amba-identity"
]
},
"managedIdentityLocations": {
"amba": "australiaeast"
}
}
Loading

0 comments on commit 99b53e0

Please sign in to comment.