New PowerShell scripts to streamline Azure Monitor Logs query and data collection

Azure Updates

Discussionpowered by zap.ms

Published

Aug 13, 2019

Status

Launched

Timeline

  • August 2019
    General Availability

Product

Azure Monitor

Tag

Gallery

Category

DevOps
Management and governance

Description

Two new scripts are available now in PowerShell Gallery to streamline the query and collection of logs into Azure Monitor Logs:

  1. Invoke-AzOperationalInsightsQueryExport - streamline querying Azure Monitor Logs and export of its results to file.
  2. Upload-AzMonitorLog - Upload the result of every PowerShell command to Azure Monitor Logs as custom log using Azure Monitor Data Collector API. It allows easy upload of files, process list or any other piece of information that PowerShell can collect.