Devices - 51030 - Device antivirus protection is measured across the existing tenant device population - #1536
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a new “Device antivirus protection” metric sourced from Microsoft Defender Advanced Hunting and surfaces it in the report UI, enabling antivirus coverage to be measured across the tenant’s existing device population.
Changes:
- Add an Advanced Hunting query in the PowerShell tenant info collector to compute
protectedDeviceCountand emit it underTenantInfo.DeviceOverview.DeviceAntivirusProtection. - Add a reusable
DeviceAntivirusProtectionCardand place it into the dashboard and devices insights UI. - Extend
SwgDefenseLayerswith an optionalstackedlayout mode and enable it on the dashboard.
Reviewed changes
Copilot reviewed 9 out of 11 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/report/src/pages/Dashboard.tsx | Adds the new antivirus protection card to the Devices section and adjusts section ordering/layout. |
| src/report/src/config/report-data.ts | Extends the report data model with DeviceAntivirusProtection and protectedDeviceCount. |
| src/report/src/components/overview/swg-defense-layers.tsx | Adds a stacked prop to control layout responsiveness for the SWG visualization. |
| src/report/src/components/overview/device-antivirus-protection.tsx | New UI card rendering protected vs unprotected device counts and percentages. |
| src/report/src-curent/pages/Dashboard.tsx | Adds the new antivirus protection card to the “current” dashboard variant and adjusts grid layout. |
| src/report/src-curent/config/report-data.ts | Mirrors the report data model extension for the “current” report variant. |
| src/report/src-curent/components/overview/device-antivirus-protection.tsx | Mirrors the new antivirus protection card for the “current” report variant. |
| src/report/src-curent/components/DevicesInsightsAccordion.tsx | Replaces the previous placeholder antivirus card with the reusable DeviceAntivirusProtectionCard. |
| src/powershell/private/tenantinfo/devices/Add-ZtDeviceOverview.ps1 | Collects protectedDeviceCount via Advanced Hunting and attaches it to DeviceOverview. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Hey Manoj Kesana (@Manoj-Kesana), Please update your feature branch from |
Anton Staykov (astaykov)
left a comment
There was a problem hiding this comment.
Please address my comments - the hunting query execution must be fixed before further review can be performed.




No description provided.