Log Analytics Data Collector API PowerShell Function

Iron Contributor

I created a function that takes the input of time, log type and a hashtable and writes it to Log Analytics. This was intended to be a “universal” log writer for Log Analytics. I use it in an Azure Automation Module so I can pass log data from any runbook to Log Analytics but it could be used in any PowerShell Script.


Function is on GitHub.



Links to Resources and overview video here:


0 Replies