-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[PS] migrate ActivityLogAlert in Monitor module to autorest v4 #28024
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the ActivityLogAlert module in Azure PowerShell Monitor to AutoRest v4, updating the code generation tooling and introducing new features while maintaining backward compatibility through breaking change exceptions.
- Upgraded AutoRest version from 3.x to 4.x for improved code generation
- Added new JSON-based parameter sets for cmdlets (JsonFilePath and JsonString)
- Introduced breaking change exceptions for type compatibility between array and List types
Reviewed Changes
Copilot reviewed 29 out of 29 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv | Added breaking change exceptions for type changes from arrays to generic Lists |
| src/Monitor/Monitor/help/*.md | Updated help documentation with new parameter sets and corrected namespace references |
| src/Monitor/Monitor/ChangeLog.md | Added changelog entry referencing AutoRest v4 new features |
| src/Monitor/Monitor/Az.Monitor.psd1 | Updated generation date and corrected MetricData assembly reference |
| src/Monitor/Monitor.sln | Reorganized project references and updated GUIDs |
| src/Monitor/ActivityLogAlert.Autorest/test/* | Updated test environment and utilities for new ActionGroup creation pattern |
| src/Monitor/ActivityLogAlert.Autorest/README.md | Simplified configuration by removing v3.x extensions and breaking change directives |
| src/Monitor/ActivityLogAlert.Autorest/custom/*.ps1 | Updated cmdlets to support new parameter sets and corrected type references |
src/Monitor/ActivityLogAlert.Autorest/custom/Update-AzActivityLogAlert.ps1
Show resolved
Hide resolved
Fix Project information missing
Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.