Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
There was a problem hiding this comment.
Pull Request Overview
This PR fixes the _resolve_api_version function to prioritize returning the default API version when available, before falling back to other version selection logic. This ensures that when a resource type has a designated default API version, it is used instead of manually selecting from available versions.
- Added logic to check for and return the default API version when available
- Maintains existing fallback behavior for cases without a default version
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
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>
|
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Commenter does not have sufficient privileges for PR 32271 in repo Azure/azure-cli |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
…us' to 'centralindia' and from 'westus' to 'southindia'
f664169
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
az postgres flexible-server restore --subnet
Description
Fixes #32259
Microsoft.Network namespace announced in their most recent ARM manifest a version
2025-05-01which is theoretically valid for resourceTypevirtualNetworksbut is not. Any attempts to call any of the APIs exposed by resources of that type with that API version are erroring out.If the GET Providers API returns a value for
defaultApiVersionfor that resource type, we should use that instead to avoid problems like this in the future, if they happen to do this again.Testing Guide
History Notes
[RDBMS] az postgres flexible-server restore: Fix issue that produces NoRegisteredProviderFound error