OMSDataInjection PowerShell Module Updated

I’ve updated the OMSDataInjection PowerShell module to version 1.1.1. I have added support for bulk insert into OMS.

Now you can pass in an array of PSObject or plain JSON payload with multiple log entries. The module will check for the payload size and make sure it is below the supported limit of 30MB before inserting into OMS.

You can get the new version from both PowerShell Gallery and GitHub:

PowerShell Gallery:



  1. Hi Tao. Thanks for an awsome module. I have used it for a few days now, but suddenly i recieve this error.

    Exception of type ‘Microsoft.PowerShell.Commands.WriteErrorException’ was thrown.
    OMSDataInjection.psm1:115 char:3
    + Publish-OMSData -OMSConnection $OMSConnection -body $OMSLogBody -Lo …
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Publish-OMSData

    Any ideas?

    1. no idea why you are getting this, not enough information, sorry. The module basically pass whatever exception through by the API to you. if you are have been using it for few days, I doubt it is something to do with the module?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: