Mar 11 2019
02:13 AM
- last edited on
Apr 07 2022
05:43 PM
by
TechCommunityAP
Mar 11 2019
02:13 AM
- last edited on
Apr 07 2022
05:43 PM
by
TechCommunityAP
I Have a query to run against Log Analytics . This query I need to run Via RunBook. SO please suggest how to run a query in Log Analytics using RunBook.
Next question is the results fetched from above query need to be exported into Blob. How can we export requery from Log Analytics into Blob.
Mar 12 2019 12:26 AM
You should be able to run queries via PowerShell using the REST API. See https://dev.loganalytics.io/documentation/Tools/PowerShell-Cmdlets
or the following blog from tao yan
Regarding the export, wouldn't it be a option to create an alert that launches a runbook so you can use powershell / scripting again to write the data back to the blob?
Mar 14 2019 12:05 AM