Forum Discussion

FoxDeploy's avatar
FoxDeploy
Icon for Microsoft rankMicrosoft
Nov 05, 2020

Query LogAnalytics for Azure Virtual Machine Tag?

hi!

 

 I have a process that adds some tags to VMs in Azure.  I would love to query log analytics for these tags. 

 

 Here is an example of the tags:

 

I found this query to parse VMInsights tags but am not sure where to go to look up these tags.

 

InsightsMetrics 

extend Tags = parse_json(Tags)

where Tags.["AutomanagedPC"has "true"

 

Any tips would be greatly appreciated 🙂

 

Resources