Azure / AzOps

AzOps is a PowerShell module which deploys (Push) ARM Resource Templates & Bicep files at all Azure scope levels and exports (Pull) ARM resource hierarchy.
https://aka.ms/AzOps
MIT License
384 stars 163 forks source link

Adding Support for Azure Monitor Application Insights Monitoring #848

Closed Jefajers closed 8 months ago

Jefajers commented 8 months ago

Overview/Summary

This PR enhances monitoring, alerting, and debugging scenarios and enables events occurring in PowerShell parallel run spaces to be tracked with Application Insights and closes #843, while bumping module dependencies to Az.Accounts 2.15.0 and Az.Resources 6.14.0.

The monitoring behavior is controlled with a new setting Core.ApplicationInsights. More details about this setting can be found in the wiki or head over to monitoring.

This feature is disabled by default. To enable it, review your APPLICATIONINSIGHTS_CONNECTIONSTRING secret and set Core.ApplicationInsights to true. Both need to exist and be configured to enable Application Insights monitoring.

Breaking Changes

  1. N/A

Testing Evidence

Testing has been performed to validate the different event types and stress test the new monitoring function with no known errors.

As part of this Pull Request I have