forked from microsoft/Application-Insights-Workbooks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request microsoft#2590 from microsoft/user/adeolauthman/mi…
…ssingdevices Added a Missing Devices section to the total devices kpi card
- Loading branch information
Showing
3 changed files
with
269 additions
and
195 deletions.
There are no files selected for viewing
266 changes: 266 additions & 0 deletions
266
Workbooks/UpdateCompliance/Total devices/Total devices.workbook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,266 @@ | ||
{ | ||
"version": "Notebook/1.0", | ||
"items": [ | ||
{ | ||
"type": 9, | ||
"content": { | ||
"version": "KqlParameterItem/1.0", | ||
"parameters": [ | ||
{ | ||
"id": "67dcb2cb-14b1-4d77-b52b-f728abbf43a2", | ||
"version": "KqlParameterItem/1.0", | ||
"name": "mappedTenantId", | ||
"type": 1, | ||
"query": "resources\r\n| take 1\r\n| project tenantId", | ||
"isHiddenWhenLocked": true, | ||
"timeContext": { | ||
"durationMs": 86400000 | ||
}, | ||
"queryType": 1, | ||
"resourceType": "microsoft.resourcegraph/resources" | ||
}, | ||
{ | ||
"id": "7a2bb320-fa9c-45c8-bbf6-942c8b3a4b0e", | ||
"version": "KqlParameterItem/1.0", | ||
"name": "mappedSubscription", | ||
"label": "subscription", | ||
"type": 6, | ||
"value": null, | ||
"isHiddenWhenLocked": true, | ||
"typeSettings": { | ||
"additionalResourceOptions": [], | ||
"includeAll": true, | ||
"showDefault": false | ||
}, | ||
"timeContext": { | ||
"durationMs": 86400000 | ||
} | ||
}, | ||
{ | ||
"id": "01c6d66e-3f87-4e8a-8be6-0accbe4f4036", | ||
"version": "KqlParameterItem/1.0", | ||
"name": "mappedWorkspace", | ||
"label": "workspace", | ||
"type": 5, | ||
"isRequired": true, | ||
"query": "resources\r\n| where type == \"microsoft.operationalinsights/workspaces\"\r\n| where \"{mappedSubscription:subscriptionId}\" == subscriptionId", | ||
"crossComponentResources": [ | ||
"{mappedSubscription}" | ||
], | ||
"isHiddenWhenLocked": true, | ||
"typeSettings": { | ||
"additionalResourceOptions": [], | ||
"showDefault": false | ||
}, | ||
"timeContext": { | ||
"durationMs": 86400000 | ||
}, | ||
"queryType": 1, | ||
"resourceType": "microsoft.resourcegraph/resources" | ||
}, | ||
{ | ||
"id": "2776722c-672e-4a35-9c4b-3d8e74c1083f", | ||
"version": "KqlParameterItem/1.0", | ||
"name": "_SnapshotTime", | ||
"type": 1, | ||
"description": "Time indicating the latest snapshot", | ||
"isRequired": true, | ||
"query": "UCClient\r\n| where TimeGenerated >= ago(7d)\r\n| summarize max(TimeGenerated)", | ||
"crossComponentResources": [ | ||
"{mappedWorkspace}" | ||
], | ||
"isHiddenWhenLocked": true, | ||
"queryType": 0, | ||
"resourceType": "microsoft.operationalinsights/workspaces" | ||
}, | ||
{ | ||
"id": "86531822-76f2-4c50-b766-542f46c8c41a", | ||
"version": "KqlParameterItem/1.0", | ||
"name": "isOnboarded", | ||
"type": 1, | ||
"query": "UCClient\r\n| summarize Total = count()\r\n| extend Result = iff(Total == 0, \"false\", \"true\")\r\n| summarize by Result", | ||
"crossComponentResources": [ | ||
"{mappedWorkspace}" | ||
], | ||
"isHiddenWhenLocked": true, | ||
"queryType": 0, | ||
"resourceType": "microsoft.operationalinsights/workspaces" | ||
}, | ||
{ | ||
"id": "829b1e6d-8d92-43d0-b03c-a85fce0d48a0", | ||
"version": "KqlParameterItem/1.0", | ||
"name": "Page", | ||
"type": 1, | ||
"isHiddenWhenLocked": true | ||
} | ||
], | ||
"style": "pills", | ||
"queryType": 0, | ||
"resourceType": "microsoft.operationalinsights/workspaces" | ||
}, | ||
"name": "parameters - 2" | ||
}, | ||
{ | ||
"type": 11, | ||
"content": { | ||
"version": "LinkItem/1.0", | ||
"style": "tabs", | ||
"links": [ | ||
{ | ||
"id": "69cd0198-416e-4332-bc73-8f376917b47e", | ||
"cellValue": "Page", | ||
"linkTarget": "parameter", | ||
"linkLabel": "Devices in report", | ||
"subTarget": "DevicesInReport", | ||
"style": "link" | ||
}, | ||
{ | ||
"id": "cb0902da-2633-4868-a002-d6d78241eeec", | ||
"cellValue": "Page", | ||
"linkTarget": "parameter", | ||
"linkLabel": "Missing devices", | ||
"subTarget": "MissingDevices", | ||
"style": "link" | ||
} | ||
] | ||
}, | ||
"name": "links - 5" | ||
}, | ||
{ | ||
"type": 12, | ||
"content": { | ||
"version": "NotebookGroup/1.0", | ||
"groupType": "editable", | ||
"items": [ | ||
{ | ||
"type": 3, | ||
"content": { | ||
"version": "KqlItem/1.0", | ||
"query": "let SnapshotTime = datetime({_SnapshotTime});\nUCClient\n| where TimeGenerated == SnapshotTime\n| summarize count() by OSVersion", | ||
"size": 1, | ||
"showAnalytics": true, | ||
"title": "OS Version", | ||
"showExportToExcel": true, | ||
"queryType": 0, | ||
"resourceType": "microsoft.operationalinsights/workspaces", | ||
"crossComponentResources": [ | ||
"{mappedWorkspace}" | ||
], | ||
"visualization": "piechart" | ||
}, | ||
"name": "OSVersion" | ||
}, | ||
{ | ||
"type": 3, | ||
"content": { | ||
"version": "KqlItem/1.0", | ||
"query": "let SnapshotTime = datetime({_SnapshotTime});\nUCClient\n| where TimeGenerated == SnapshotTime\n| summarize count() by Result = OSEdition", | ||
"size": 1, | ||
"showAnalytics": true, | ||
"title": "OS Edition", | ||
"showExportToExcel": true, | ||
"queryType": 0, | ||
"resourceType": "microsoft.operationalinsights/workspaces", | ||
"crossComponentResources": [ | ||
"{mappedWorkspace}" | ||
], | ||
"visualization": "piechart" | ||
}, | ||
"name": "OSEdition" | ||
}, | ||
{ | ||
"type": 3, | ||
"content": { | ||
"version": "KqlItem/1.0", | ||
"query": "let SnapshotTime = datetime({_SnapshotTime});\nUCClient\n| where TimeGenerated == SnapshotTime\n| summarize count() by Result = OSServicingChannel", | ||
"size": 1, | ||
"showAnalytics": true, | ||
"title": "OS Servicing Channel", | ||
"showExportToExcel": true, | ||
"queryType": 0, | ||
"resourceType": "microsoft.operationalinsights/workspaces", | ||
"crossComponentResources": [ | ||
"{mappedWorkspace}" | ||
], | ||
"visualization": "piechart" | ||
}, | ||
"name": "OSServicingChannel" | ||
}, | ||
{ | ||
"type": 3, | ||
"content": { | ||
"version": "KqlItem/1.0", | ||
"query": "let SnapshotTime = datetime({_SnapshotTime});\nUCClient\n| where TimeGenerated == SnapshotTime\n| summarize count() by Result = OSArchitecture", | ||
"size": 1, | ||
"showAnalytics": true, | ||
"title": "OS Architecture", | ||
"showExportToExcel": true, | ||
"queryType": 0, | ||
"resourceType": "microsoft.operationalinsights/workspaces", | ||
"crossComponentResources": [ | ||
"{mappedWorkspace}" | ||
], | ||
"visualization": "piechart", | ||
"chartSettings": { | ||
"seriesLabelSettings": [ | ||
{ | ||
"seriesName": "Non VM", | ||
"color": "orange" | ||
}, | ||
{ | ||
"seriesName": "VM", | ||
"color": "blue" | ||
} | ||
] | ||
} | ||
}, | ||
"name": "OSArchitecture" | ||
} | ||
] | ||
}, | ||
"conditionalVisibility": { | ||
"parameterName": "Page", | ||
"comparison": "isEqualTo", | ||
"value": "DevicesInReport" | ||
}, | ||
"name": "DevicesInReportGroup" | ||
}, | ||
{ | ||
"type": 12, | ||
"content": { | ||
"version": "NotebookGroup/1.0", | ||
"groupType": "editable", | ||
"items": [ | ||
{ | ||
"type": 1, | ||
"content": { | ||
"json": "Below you will find the list of devices that are currently unavailable in the report.\r\n<br></br>\r\n\r\n<h6>Recommended action:</h6>\r\nPlease make sure that the devices in this list are active and correctly configured to share data. Learn more about troubleshooting with <a href=\"https://learn.microsoft.com/en-us/windows/deployment/update/wufb-reports-prerequisites\">Windows Update for Business reports prerequisites</a>" | ||
}, | ||
"name": "text - 0" | ||
}, | ||
{ | ||
"type": 3, | ||
"content": { | ||
"version": "KqlItem/1.0", | ||
"query": "let SnapshotTime = datetime({_SnapshotTime});\r\nUCDeviceAlert\r\n| where TimeGenerated == SnapshotTime\r\n| where AlertStatus == \"Active\"\r\n| where AlertSubtype == \"DeviceMissingInReport\"\r\n| project DeviceName, AzureADDeviceId, AlertSubtype, StartTime, AlertData", | ||
"size": 0, | ||
"queryType": 0, | ||
"resourceType": "microsoft.operationalinsights/workspaces", | ||
"crossComponentResources": [ | ||
"{mappedWorkspace}" | ||
] | ||
}, | ||
"name": "query - 1" | ||
} | ||
] | ||
}, | ||
"conditionalVisibility": { | ||
"parameterName": "Page", | ||
"comparison": "isEqualTo", | ||
"value": "MissingDevices" | ||
}, | ||
"name": "MissingDevicesGroup" | ||
} | ||
], | ||
"$schema": "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json" | ||
} |
Oops, something went wrong.