Hi @Deepaklal-FT ,
Thank you for posting query in Microsoft Q&A Platform.
KQL query which runs on Log analytics cannot directly get local VMs date and time.
There is something called now() function in KQL that can get you current date time in UTC. To this function by passing offset value we can get desired timezone date time information. Please check below screenshot where I am getting IST from UTC.
But if above doesn't help and You are very particular about getting local system date time only then We need to think of having some local code which runs on your VMs to get systems local date time info and store that info to log analytics custom tables. Once data stored in custom tables you can query them as per need.
Please here your local code can be using PowerShell or SDK or any other way of programming and scripting which you comfort.
Hope this helps. Please let us know if any further queries.
----------
Please consider hitting Accept Answer
. Accepted answers help community as well.