Skip to content
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

{Compute} az ppg: Migrate to Code Gen V2 #30802

Merged
merged 3 commits into from
Feb 13, 2025
Merged

Conversation

yanzhudd
Copy link
Contributor

@yanzhudd yanzhudd commented Feb 11, 2025

Related command

az ppg create/update/list

Description

Migrate ppg command group to Code Gen V2

AAZ PR: Azure/aaz#689

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

Copy link

azure-client-tools-bot-prd bot commented Feb 11, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️acs
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.9
️✔️ams
️✔️latest
️✔️3.12
️✔️3.9
️✔️apim
️✔️latest
️✔️3.12
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️aro
️✔️latest
️✔️3.12
️✔️3.9
️✔️backup
️✔️latest
️✔️3.12
️✔️3.9
️✔️batch
️✔️latest
️✔️3.12
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.9
️✔️billing
️✔️latest
️✔️3.12
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.9
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.9
️✔️config
️✔️latest
️✔️3.12
️✔️3.9
️✔️configure
️✔️latest
️✔️3.12
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.9
️✔️container
️✔️latest
️✔️3.12
️✔️3.9
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.9
️✔️core
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.9
️✔️databoxedge
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️dls
️✔️latest
️✔️3.12
️✔️3.9
️✔️dms
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.9
️✔️find
️✔️latest
️✔️3.12
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.9
️✔️identity
️✔️latest
️✔️3.12
️✔️3.9
️✔️iot
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️keyvault
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️lab
️✔️latest
️✔️3.12
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.9
️✔️maps
️✔️latest
️✔️3.12
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.9
️✔️network
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.9
️✔️profile
️✔️latest
️✔️3.12
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.9
️✔️redis
️✔️latest
️✔️3.12
️✔️3.9
️✔️relay
️✔️latest
️✔️3.12
️✔️3.9
️✔️resource
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️role
️✔️latest
️✔️3.12
️✔️3.9
️✔️search
️✔️latest
️✔️3.12
️✔️3.9
️✔️security
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.9
️✔️sql
️✔️latest
️✔️3.12
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.9
️✔️storage
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9
️✔️util
️✔️latest
️✔️3.12
️✔️3.9
️✔️vm
️✔️2018-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.12
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.12
️✔️3.9
️✔️latest
️✔️3.12
️✔️3.9

Copy link

azure-client-tools-bot-prd bot commented Feb 11, 2025

❌AzureCLI-BreakingChangeTest
❌vm
rule cmd_name rule_message suggest_message
1007 - ParaRemove ppg update cmd ppg update removed parameter include_colocation_status please add back parameter include_colocation_status for cmd ppg update
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter intent_vm_sizes: added property aaz_type=AAZListArg
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter intent_vm_sizes: added property type=List<String>
⚠️ 1010 - ParaPropUpdate ppg create cmd ppg create update parameter intent_vm_sizes: updated property nargs from * to +
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter location: added property aaz_type=string
⚠️ 1010 - ParaPropUpdate ppg create cmd ppg create update parameter location: updated property type from custom_type to string
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter ppg_type: added property aaz_type=string
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter ppg_type: added property type=string
⚠️ 1010 - ParaPropUpdate ppg create cmd ppg create update parameter ppg_type: updated property options from ['--type', '-t'] to ['--ppg-type', '--type', '-t']
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter proximity_placement_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter proximity_placement_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate ppg create cmd ppg create update parameter proximity_placement_group_name: updated property options from ['--name', '-n'] to ['--name', '--proximity-placement-group-name', '-n']
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter resource_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter resource_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate ppg create cmd ppg create update parameter resource_group_name: updated property name from resource_group_name to resource_group
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter tags: added property aaz_type=AAZDictArg
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter tags: added property type=Dict<String,String>
⚠️ 1010 - ParaPropUpdate ppg create cmd ppg create update parameter tags: updated property nargs from * to +
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter zone: added property aaz_type=AAZListArg
⚠️ 1008 - ParaPropAdd ppg create cmd ppg create update parameter zone: added property type=List<String>
⚠️ 1010 - ParaPropUpdate ppg create cmd ppg create update parameter zone: updated property nargs from 1 to +
⚠️ 1006 - ParaAdd ppg list cmd ppg list added parameter pagination_limit
⚠️ 1006 - ParaAdd ppg list cmd ppg list added parameter pagination_token
⚠️ 1008 - ParaPropAdd ppg list cmd ppg list update parameter resource_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd ppg list cmd ppg list update parameter resource_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate ppg list cmd ppg list update parameter resource_group_name: updated property name from resource_group_name to resource_group
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter intent_vm_sizes: added property aaz_type=AAZListArg
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter intent_vm_sizes: added property type=List<String>
⚠️ 1010 - ParaPropUpdate ppg update cmd ppg update update parameter intent_vm_sizes: updated property nargs from * to +
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter ppg_type: added property aaz_type=string
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter ppg_type: added property type=string
⚠️ 1010 - ParaPropUpdate ppg update cmd ppg update update parameter ppg_type: updated property options from ['--type', '-t'] to ['--ppg-type', '--type', '-t']
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter properties_to_add: added property aaz_type=AAZGenericUpdateAddArg
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter properties_to_remove: added property aaz_type=AAZGenericUpdateRemoveArg
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter properties_to_set: added property aaz_type=AAZGenericUpdateSetArg
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter proximity_placement_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter proximity_placement_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate ppg update cmd ppg update update parameter proximity_placement_group_name: updated property options from ['--name', '-n'] to ['--name', '--proximity-placement-group-name', '-n']
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter resource_group_name: added property aaz_type=string
⚠️ 1008 - ParaPropAdd ppg update cmd ppg update update parameter resource_group_name: added property type=string
⚠️ 1010 - ParaPropUpdate ppg update cmd ppg update update parameter resource_group_name: updated property name from resource_group_name to resource_group

@yonzhan
Copy link
Collaborator

yonzhan commented Feb 11, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@yanzhudd
Copy link
Contributor Author

image
It is not a breaking change, since this param was not used in this command as all.

Comment on lines 91 to +92
def error_format(self):
return "ODataV4Format"
return "MgmtErrorFormat"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I ask why the error_format will change? What impact will this change have on customers?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be 2020-06-01 for the command in this profile, but it was mistakely set to 2022-11-01 in an old PR. Now this PR will correct the API version. I think the change of error_format is due to the downgrade of API version.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MgmtErrorFormat is a more detailed error format than ODataV4Format. There's no breaking change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks

zhoxing-ms
zhoxing-ms previously approved these changes Feb 13, 2025
@yanzhudd yanzhudd merged commit 01b4428 into Azure:dev Feb 13, 2025
53 checks passed
@yanzhudd yanzhudd deleted the migrate-ppg branch February 13, 2025 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Compute az vm/vmss/image/disk/snapshot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants