Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@
"type": "Extension/Microsoft_OperationsManagementSuite_Workspace/PartType/LogsDashboardPart",
"settings": {
"content": {
"Query": "let timeago = timespan(<timespanValue>);\nlet virtualMachines = Inventory_CL\n| where TimeGenerated > ago(timeago)\n//| where ResourceType =~ \"VirtualMachine\"\n| summarize arg_max(TimeGenerated,*) by ResourceId = tolower(ResourceId)\n| extend OSType = tolower(tostring(parse_json(Metadata_s).OSType))\n| where (isnotempty(OSType)) \n| project VMResourceID = ResourceId, OSType;\nlet virtualMachinesExtensions = Inventory_CL\n| where TimeGenerated > ago(timeago) and Source_s =~ \"AzTS_05_VMExtensionInventoryProcessor\"\n| summarize arg_max(TimeGenerated,*) by ResourceId = tolower(ResourceId)\n| extend VMResourceID = tolower(substring(ResourceId,0,indexof(ResourceId, '/', 0, -1, 9 )))\n| extend ExtensionType = tostring(parse_json(Metadata_s).ExtensionType)\n| project ResourceId, VMResourceID, ExtensionType;\nvirtualMachines\n| join kind=leftouter (virtualMachinesExtensions) on VMResourceID\n| summarize Extensions = make_list(ExtensionType) by VMResourceID, OSType\n|summarize TotalServices = count(), ServicesWithOnlyMMAAgent = countif((array_length(Extensions) == 1) and (Extensions contains \"MicrosoftMonitoringAgent\" or Extensions contains \"OmsAgentForLinux\" or Extensions contains \"\")),\nServicesWithOnlyAMAAgent = countif((array_length(Extensions) == 1) and (Extensions contains \"AzureMonitorWindowsAgent\" or Extensions contains \"AzureMonitorLinuxAgent\")),\nServicesWithBothAgents = countif((Extensions contains \"MicrosoftMonitoringAgent\" or Extensions contains \"OmsAgentForLinux\") and (Extensions contains \"AzureMonitorWindowsAgent\" or Extensions contains \"AzureMonitorLinuxAgent\")) by OSType\n\n",
"Query": "let timeago = timespan(<timespanValue>);\nlet virtualMachines = Inventory_CL\n| where TimeGenerated > ago(timeago)\n//| where ResourceType =~ \"VirtualMachine\"\n| summarize arg_max(TimeGenerated,*) by ResourceId = tolower(ResourceId)\n| extend OSType = tolower(tostring(parse_json(Metadata_s).OSType))\n| where (isnotempty(OSType)) \n| project VMResourceID = ResourceId, OSType;\nlet virtualMachinesExtensions = Inventory_CL\n| where TimeGenerated > ago(timeago) and Source_s =~ \"AzTS_05_VMExtensionInventoryProcessor\"\n| summarize arg_max(TimeGenerated,*) by ResourceId = tolower(ResourceId)\n| extend VMResourceID = tolower(substring(ResourceId,0,indexof(ResourceId, '/', 0, -1, 9 )))\n| extend ExtensionType = tostring(parse_json(Metadata_s).ExtensionType)\n| project ResourceId, VMResourceID, ExtensionType;\nvirtualMachines\n| join kind=leftouter (virtualMachinesExtensions) on VMResourceID\n| summarize Extensions = make_list(ExtensionType) by VMResourceID, OSType\n|summarize TotalServices = count(), ServicesWithOnlyMMAAgent = countif((array_length(Extensions) == 1) and (Extensions contains \"MicrosoftMonitoringAgent\" or Extensions contains \"OmsAgentForLinux\")),\nServicesWithOnlyAMAAgent = countif((array_length(Extensions) == 1) and (Extensions contains \"AzureMonitorWindowsAgent\" or Extensions contains \"AzureMonitorLinuxAgent\")),\nServicesWithBothAgents = countif((Extensions contains \"MicrosoftMonitoringAgent\" or Extensions contains \"OmsAgentForLinux\") and (Extensions contains \"AzureMonitorWindowsAgent\" or Extensions contains \"AzureMonitorLinuxAgent\")) by OSType\n\n",
"ControlType": "AnalyticsGrid",
"SpecificChart": "UnstackedColumn",
"PartTitle": "Inventory: MMA & AMA Agents",
Expand Down
Binary file modified TemplateFiles/AzTSMMARemovalUtilityDeploymentFiles.zip
Binary file not shown.