[SQL] Support versionless key in server key, server encryption protector and database create/update#32225
[SQL] Support versionless key in server key, server encryption protector and database create/update#32225simonzhang0428 wants to merge 3 commits intoAzure:devfrom
Conversation
(cherry picked from commit 4fbb6af)
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
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>
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for versionless key URIs in SQL server key operations and database create/update commands. This enhances Azure CLI's SQL module to handle Azure Key Vault keys without explicit version identifiers.
- Updated regex pattern to accept both versioned and versionless key URIs
- Modified key name generation logic to handle versionless keys with a different naming format
- Updated error messages to include examples of both versioned and versionless key formats
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Pls add related tests as described in PR description |
|
Hi @simonzhang0428, Let me know if you will still work on this PR |
|
This task is paused, please ignore the PR, sorry for the late response. |
Related command
az sql server key create
az sql server tde-key set
az sql db create
az sql db update
Description
SQL already made Management Service change to support versionless key as parameter, including the scenarios like add versionless key into server, set it as server Encryption Protector, create/update database when supply it as keys or encryption protector.
Testing Guide
Will add test cases in SqlServerDbMgmtScenarioTest module to cover support scenarios
History Notes
[SQL]
az sql server key create: Support versionless key uri in--kidparameter[SQL]
az sql server tde-key set: Support versionless key uri in--kidparameter[SQL]
az sql db create/update: Support versionless key uri in--keys,--encryption-protectorparametersThis 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.