-
Notifications
You must be signed in to change notification settings - Fork 4k
[PS] Migrate MonitorWorkspace in Monitor module to autorest v4 #28186
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 MonitorWorkspace module in the Monitor package from AutoRest v3 to AutoRest v4, which involves updating the code generation configuration and updating related documentation and breaking change exceptions.
- Updates AutoRest configuration to use v4 default instead of explicitly using v3 extension
- Adds new parameter sets for JSON file and string input to workspace cmdlets
- Updates documentation to reflect the new cmdlet capabilities and output types
Reviewed Changes
Copilot reviewed 18 out of 19 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
tools/StaticAnalysis/Exceptions/Az.Monitor/BreakingChangeIssues.csv | Documents breaking changes from v3 to v4 migration for property types and parameter sets |
src/Monitor/MonitorWorkspace.Autorest/README.md | Updates AutoRest configuration to remove v3 extension and modify variant removal directive |
src/Monitor/MonitorWorkspace.Autorest/docs/*.md | Updates cmdlet documentation with new parameter sets and simplified output types |
src/Monitor/Monitor/help/*.md | Updates help documentation to match the autorest module changes |
src/Monitor/MonitorWorkspace.Autorest/test/env.json | Updates test environment configuration with new resource identifiers |
src/Monitor/Monitor.sln | Updates solution file with new project GUID for the regenerated module |
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option | ||
use-extension: | ||
"@autorest/powershell": "3.x" | ||
|
||
directive: | ||
- where: | ||
subject: ^AzureMonitorWorkspace(.*) | ||
set: | ||
subject: $1 | ||
- where: |
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.
The regex pattern uses a negative lookahead that may be difficult to understand. Consider adding a comment explaining that this removes Create/Update variants except for Expanded, JsonFilePath, and JsonString variants.
- where: | |
- where: | |
# Remove Create/Update variants unless they are Expanded, JsonFilePath, or JsonString |
Copilot uses AI. Check for mistakes.
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.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.