Hi @Ananya Sarkar ,
Table or data type names are currently case sensitive so you would have to give it as 'Perf' and 'Heartbeat' but not as 'perf' and 'heartbeat'.
One other way to validate before you run the query is, if the table name doesn't get resolved then it shows with red underline.
Below are the screenshots which illustrate the same:
Below are the screenshots which illustrate the right way to query:
Let me know if this doesn't resolve your issue.
Hi @Ananya Sarkar ,
Glad to know that it worked!
Sure! This public repo serves the Azure Monitor community. It contains log queries, workbooks, and alerts, shared to help Azure Monitor users make the most of it.
Here you can select an Azure service so that you can check kusto queries related to that Azure service.
For example, if you want to check kusto queries related to VM and Firewall then check this and this pages respectively.
Thank you so much @tbgangav-MSFT , This is really helpful, will refer this as of now.
However will get back, if i have any further queries.
I have connected my VM as a data source for my log analytics workspace. I have shut down my VM but when I am trying to query this AzureActivity inside the log analytics workspace, it is not showing any result. However with same query it is returning result when the scope is Azure monitor -> log.
Plz let me know what is wrong here, any additional setup is required?
The query i used was :
// Shut down Virtual Machines
AzureActivity
| where OperationName == "Deallocate Virtual Machine" and ActivityStatus == "Succeeded"