New-ChangeReportEmail

1.0

This runbook generates a report of changes from the past week and emails it. Note: This script requires two modules:
the AzureRM.OperationalInsights module and the new Log Analytics custom module. In order for the script to work, both
modules must first be imported into the Automation account. The Log Analytics module is not currently available from
the PS Gallery an
This runbook generates a report of changes from the past week and emails it. Note: This script requires two modules:
the AzureRM.OperationalInsights module and the new Log Analytics custom module. In order for the script to work, both
modules must first be imported into the Automation account. The Log Analytics module is not currently available from
the PS Gallery and must be downloaded from https://dev.loganalytics.io/oms/documentation/4-Tools/LogAnalyticsQuery.psm1 .

The major steps of the script are outlined below.

1) Define parsing function
2) Connect to the Azure account
3) Set the subscription context
4) Set query timespan to one week
5) Prepare email HTML
6) Define, run, and parse Log Analytics queries for the report
7) Send the email


Show more

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name New-ChangeReportEmail -RequiredVersion 1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

'Microsoft Corporation. All rights reserved.'

Package Details

Author(s)

  • Azure Automation Team

Tags

'Azure' 'Azure Automation' 'Change Tracking' 'Email'

Functions

Get-ParsedResult

Dependencies

This script has no dependencies.

Release Notes

1.0 - 4/5/2018
-- CREATED BY Jenny Hunter
-- added base script to send email report and to include link to dashboard if AA info is provided

FileList

Version History

Version Downloads Last updated
1.2 180 5/10/2018
1.0 (current version) 30 4/5/2018