Repository navigation
[SQL] Upgrade azure-mgmt-sql from 4.0.0b22 to 5.0.0b2 - #34266
Open
janardhanrh wants to merge 1 commit into
Open
janardhanrh wants to merge 1 commit into
janardhanrh wants to merge 1 commit into
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Member
|
/azp run |
Contributor
|
Thank you for your contribution janardhanrh! We will review the pull request and get back to you soon. |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
Contributor
|
Hi janardhanrh, |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Capacity-only resizing still produces inconsistent SKUs, and remaining old-API recordings prevent affected scenarios from replaying.
2 open issues
What changed in this PR
Upgrades azure-mgmt-sql from 4.0.0b22 to 5.0.0b2 and adapts Azure CLI’s SQL commands to the new SDK.
Changes:
- Synchronizes dependency pins across platforms.
- Adapts SDK calls, model construction, validation, and compatibility output fields.
- Updates SQL scenarios and recordings and adds focused regression tests.
| File | Description |
|---|---|
src/azure-cli/requirements.py3.windows.txt |
Updates the Windows SDK pin. |
src/azure-cli/requirements.py3.Linux.txt |
Updates the Linux SDK pin. |
src/azure-cli/requirements.py3.Darwin.txt |
Updates the macOS SDK pin. |
src/azure-cli/pyproject.toml |
Updates the package dependency. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_restorable_databases.py |
Tests pager handling and paging arguments. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_outbound_firewall.py |
Tests the revised firewall SDK call. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_format.py |
Tests elastic-pool compatibility fields. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_db_keys.py |
Tests expanded keys and bounded polling. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py |
Revises scenario setup, requests, assertions, and cleanup. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_audit_policy.py |
Tests audit-policy output compatibility. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_midb_logreplay_mgmt.yaml |
Adds a managed-instance capability recording. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings/test_sql_db_long_term_retention.yaml |
Updates the retention-policy request recording. |
src/azure-cli/azure/cli/command_modules/sql/custom.py |
Adapts SDK calls, key expansion, and audit output. |
src/azure-cli/azure/cli/command_modules/sql/commands.py |
Updates operation naming and deleted-database listing registration. |
src/azure-cli/azure/cli/command_modules/sql/_validators.py |
Adapts required-field detection and model construction. |
src/azure-cli/azure/cli/command_modules/sql/_util.py |
Adds model conversion, client proxies, and API-version overrides. |
src/azure-cli/azure/cli/command_modules/sql/_format.py |
Preserves compatibility fields through dictionary transforms. |
Review effort: Balanced
Comment on lines
+821
to
+823
| self.cmd('sql db update -g {} -s {} -n {} --capacity {} --service-objective {}' | ||
| .format(resource_group, server, database_name, vcore_capacity_updated, | ||
| vcore_service_objective_updated), |
| 'azure-mgmt-signalr==2.0.0b2', | ||
| 'azure-mgmt-sqlvirtualmachine==1.0.0b5', | ||
| 'azure-mgmt-sql==4.0.0b22', | ||
| 'azure-mgmt-sql==5.0.0b2', |
janardhanrh
force-pushed
the
sql_sdk_update
branch
from
October 23, 2026 13:50
ba1eecb to
a16e54a
Compare
Update dependency pins and adapt SQL handlers, model construction, validators, and output transforms for the new SDK. Refresh SDK-related scenario tests and recordings and add focused compatibility regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
janardhanrh
force-pushed
the
sql_sdk_update
branch
from
October 25, 2026 01:57
a16e54a to
8600c10
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


🤖 PR Validation — ❌ Action needed
❌AzureCLI-FullTest
Update dependency pins and adapt SQL handlers, model construction, validators, and output transforms for the new SDK. Refresh SDK-related scenario tests and recordings and add focused compatibility regression tests.
Related command
az sql *
Description
This change upgrades the Python SDK azure-mgmt-sql from 4.0.0b22 to 5.0.0b2. Update dependency pins and adapt SQL handlers, model construction, validators, and output transforms for the new SDK. Refresh SDK-related scenario tests and recordings and add focused compatibility regression tests.
Testing Guide
Upgrade of Python SDK.
azdev test sql --live to regenerate the recordings
azdev test sql to confirm the runs succeed.
History Notes
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.