SOLVED
Home

What is the query to get the information about tagged Virtual machines ?

Highlighted
Sachin Gupta
Occasional Contributor

What is the query to get the information about tagged Virtual machines ?

Hello,

 

Basically I want to generate the report for all the tagged Virtual machine from Log analytics. I need to know which VMs are tagged and which are not. Could you please help me out to create the query in l;og analytics please.

 

Thanks,

 

Sachin

5 Replies

Re: What is the query to get the information about tagged Virtual machines ?

Any help would be appreciated..

Solution

Re: What is the query to get the information about tagged Virtual machines ?

There isn't a log out of the box that has information on tags for Virtual machines. I would suggest to develop something on your. Create a workflow that daily goes trough all your VMs in all Azure subscription and stores which VMs are tagged and which are not in your Log Analytics workspace. That workflow can be a runbook, logic app or azure functions. Whatever service is best for you to develop on. Once you have the log in Log Analytics you can use the query language to find the information you need.

Re: What is the query to get the information about tagged Virtual machines ?

Thanks Stanislav . Will try that option.

Appreciate your help !!!!!

Re: What is the query to get the information about tagged Virtual machines ?

Hi Sachin

Did you manage to write something for your use case. If yes, would you be able to share details as I need almost the same thing.

 

Regards

Piyush

Re: What is the query to get the information about tagged Virtual machines ?

Hello Piyush,

 

Not at the moment as I am trying to create the Run Book for the same. I will update you once that is ready.

 

Regards,

 

Sachin

Related Conversations
Calendar - Category - Colors
Eric Deferm  in  Outlook  on
7 Replies
we find that all things are the sam
andrew bell  in  Microsoft 365  on
0 Replies
Outlook shared Calendar > All day events spans two days
Mike Jansen  in  Outlook  on
4 Replies
Transforming your VMware environment with Microsoft Azure
Eric Starker  in  Compute  on
0 Replies