{ARM} Update azure-mgmt-resource SDK to latest#31162
{ARM} Update azure-mgmt-resource SDK to latest#31162
Conversation
❌AzureCLI-FullTest
|
❌AzureCLI-BreakingChangeTest
Please submit your Breaking Change Pre-announcement ASAP if you haven't already. Please note:
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
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). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
| VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0 | ||
| method: GET | ||
| uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2022-09-01 | ||
| uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test_resource_id_arg_fmt000001?api-version=2024-11-01 |
There was a problem hiding this comment.
Please try to re-record these YAML files using live testing instead of just replacing the api-version in the YAML files
There was a problem hiding this comment.
I'm having trouble finding any account where I can run azdev test resource --live without running into permissions issues.
Can I leave most of these files untouched (e.g., still using the 2022-09-01 API version), or would that cause the recorded tests to fail since the SDK will be using the 2024-11-01 API version? The API update is expected to have a minimal effect on only a handful of operations.
There was a problem hiding this comment.
@jeskew We recommend that you try our bump api-version pipeline, which can automatically re-record YAML files using the CI pipeline. doc link: how_to_bump_SDK_version_in_cli.md
There was a problem hiding this comment.
Thanks for the guidance! All changes in this PR were now authored by that pipeline.
There was a problem hiding this comment.
I did need to manually patch a large number of recordings after running the pipeline, but this PR should be ready for review now.
8525a0b to
dd1f1bf
Compare
91bfdc0 to
612b6c6
Compare
612b6c6 to
89ce6dd
Compare
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
please fix the CI issues and resolve the code conflicts. |
|
please note that Azure CLI will have a code freeze on 04/21/2025 07:00 UTC for the upcoming release. Please address the comments ASAP, otherwise it has to be postponed to next sprint (05-19). |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 31162 in repo Azure/azure-cli |
|
Please fix conflicts |
|
It should be replaced by PR https://github.com/Azure/azure-cli/pull/31449/files |
Related command
az deployment ...Description
This PR updates the SDK version for the
azure-mgmt-resource. Something about the Python SDK update seems to have caused a large number of tests to fail due to an incorrectContent-Lengthheader in the recordings, so this PR updates those. My team has multiple features blocked on this update, so it is happening in an isolated PR with no feature changes.Testing Guide
This PR relies on the existing tests.
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.