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
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
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
Installation Options
Owners
Copyright
'Microsoft Corporation. All rights reserved.'
Package Details
Author(s)
- Azure Automation Team
Tags
'Azure' 'Azure Automation' 'Change Tracking' 'Email'
Functions
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
- New-ChangeReportEmail.nuspec
- New-ChangeReportEmail.ps1
Version History
Version | Downloads | Last updated |
---|---|---|
1.2 | 180 | 5/10/2018 |
1.0 (current version) | 30 | 4/5/2018 |