Skip to content

Commit

Permalink
Merge pull request #162 from tsubasaxZZZ/tsunomur-minor-fix-20240417
Browse files Browse the repository at this point in the history
Update order of columns on service alert and  put "Deploy to Azure" button README.md
  • Loading branch information
tsubasaxZZZ authored Apr 17, 2024
2 parents bb9e5b4 + 050c0eb commit a1e6141
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ This Reliability Workbook consists of several co-workbooks. For easy deployment,
```shell
./deploy-workbook.sh -s 00000000-0000-0000-0000-000000000000 -g myResourceGroup -c -l japaneast
```
### Deploy only Export Workbook easily
If you only want to deploy the Export workbook, you can deploy from the following button.
[![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Freliability-workbook%2Fmain%2Fworkbooks%2Fazuredeploy_export.json)
## FAQ
Expand Down
2 changes: 1 addition & 1 deletion build/template_kql/servicealerts/service_alert_details.kql
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ resources
| extend informational = iff(all, true, iff(set_has_element(set_condition1, "Informational") or set_has_element(set_condition1, "ActionRequired"), true, set_has_element(set_condition2, "Informational") or set_has_element(set_condition2, "ActionRequired")))
// Security advisory
| extend security = iff(all, true, iff(set_has_element(set_condition1, "Security"), true, set_has_element(set_condition2, "Security")))
| project id, name, subscriptionId, category, tostring(alertEnabled), tostring(incident), tostring(maintenance), tostring(informational), tostring(security)
| project id, name, subscriptionId, category, tostring(alertEnabled), tostring(incident), tostring(security), tostring(maintenance), tostring(informational)
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ resources
)
on subscriptionId
| project subscriptionId, alertEnabled=iff(isnotnull(count_alertEnabled), count_alertEnabled, 0), incident=iff(isnotnull(count_incident), count_incident, 0), maintenance=iff(isnotnull(count_maintenance), count_maintenance, 0), informational=iff(isnotnull(count_informational), count_informational, 0), security=iff(isnotnull(count_security), count_security, 0)
| summarize Sub_Count=count(subscriptionId), Sub_alertEnabled_count=countif(alertEnabled > 0) * 100.0 / count(subscriptionId), Sub_Incident_Count=countif(incident > 0) * 100.0 / count(subscriptionId), Sub_Maintenance_Count=countif(maintenance > 0) * 100.0 / count(subscriptionId), Sub_Informational_Count=countif(informational > 0) * 100.0 / count(subscriptionId), Sub_Security_Count=countif(security > 0) * 100.0 / count(subscriptionId)
| summarize Sub_Count=count(subscriptionId), Sub_alertEnabled_count=countif(alertEnabled > 0) * 100.0 / count(subscriptionId), Sub_Incident_Count=countif(incident > 0) * 100.0 / count(subscriptionId), Sub_Security_Count=countif(security > 0) * 100.0 / count(subscriptionId), Sub_Maintenance_Count=countif(maintenance > 0) * 100.0 / count(subscriptionId), Sub_Informational_Count=countif(informational > 0) * 100.0 / count(subscriptionId)
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ resources
)
on subscriptionId
| project subscriptionId, alertEnabled=iff(isnotnull(count_alertEnabled), count_alertEnabled, 0), incident=iff(isnotnull(count_incident), count_incident, 0), maintenance=iff(isnotnull(count_maintenance), count_maintenance, 0), informational=iff(isnotnull(count_informational), count_informational, 0), security=iff(isnotnull(count_security), count_security, 0)
| summarize Sub_Count=count(subscriptionId), Sub_alertEnabled_count=countif(alertEnabled > 0), Sub_Incident_Count=countif(incident > 0), Sub_Maintenance_Count=countif(maintenance > 0), Sub_Informational_Count=countif(informational > 0), Sub_Security_Count=countif(security > 0)
| summarize Sub_Count=count(subscriptionId), Sub_alertEnabled_count=countif(alertEnabled > 0), Sub_Incident_Count=countif(incident > 0), Sub_Security_Count=countif(security > 0), Sub_Maintenance_Count=countif(maintenance > 0), Sub_Informational_Count=countif(informational > 0)
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ resources
| project id, name, subscriptionId, category, tostring(alertEnabled), tostring(incident), tostring(maintenance), tostring(informational), tostring(security)
| summarize count_alertEnabled=countif(alertEnabled == "true"), count_incident=countif(incident == "True"), count_maintenance=countif(maintenance == "True"), count_informational=countif(informational == "True"), count_security=countif(security == "True") by subscriptionId)
on subscriptionId
| project subscriptionId, alertEnabled=iff(isnotnull(count_alertEnabled), count_alertEnabled, 0), incident=iff(isnotnull(count_incident), count_incident, 0), maintenance=iff(isnotnull(count_maintenance), count_maintenance, 0), informational=iff(isnotnull(count_informational), count_informational, 0), security=iff(isnotnull(count_security), count_security, 0)
| project subscriptionId, alertEnabled=iff(isnotnull(count_alertEnabled), count_alertEnabled, 0), incident=iff(isnotnull(count_incident), count_incident, 0), security=iff(isnotnull(count_security), count_security, 0), maintenance=iff(isnotnull(count_maintenance), count_maintenance, 0), informational=iff(isnotnull(count_informational), count_informational, 0)
| order by incident, maintenance, informational, security desc

0 comments on commit a1e6141

Please sign in to comment.