Post

Microsoft - KQL- Azure Resource Graph Explorer - Azure Monitoring Agent installed

img

img


Ref:


To check if the Azure Monitor Agent (AMA) is installed on you Azure Virtual Machines (VMs) using Kusto Query Language (KQL), you can use the following queries in Azure Resource Graph Explorer:

For Both Windows and Linux Azure Virtual Machines

1
2
3
4
5
6
resources
//| where type == "microsoft.compute/virtualmachines/extensions"
| extend VMName = split(id, "/")
| where name has "AzureMonitorWindowsAgent" // or name has "AzureMonitorLinuxAgent"
| extend SubscriptionName = case(subscriptionId =~ 'add subscription id', 'add subscription name', subscriptionId)
| project VMName = VMName[-3], AgentName = name, SubscriptionName
This post is licensed under CC BY 4.0 by the author.