Conversation
…tls1_0 or tls1_1, we send tls1_2 instead
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| storage account create | cmd storage account create added property deprecate_info_target |
||
| storage account update | cmd storage account update added property deprecate_info_target |
|
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 breaking change warnings and automatic upgrade behavior for deprecated TLS versions (1.0 and 1.1) in Azure Storage account commands. When users specify TLS1_0 or TLS1_1 for the --min-tls-version parameter, the CLI will automatically use TLS1_2 instead and display a warning.
Changes:
- Adds logic to automatically upgrade deprecated TLS versions (1.0, 1.1) to TLS 1.2
- Registers breaking change warnings for the deprecation
- Updates help text to reflect the retirement of TLS 1.0 and 1.1
- Updates tests to verify the new behavior
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
account.py |
Adds TLS version upgrade logic and warning in create/update functions |
_params.py |
Updates help text to document TLS 1.0/1.1 retirement |
_breaking_change.py |
Registers breaking change warnings for the deprecation |
test_storage_account_scenarios.py |
Updates tests to expect TLS1_2 when TLS1_0/1.1 are specified |
| Test recordings | Updates test recordings to reflect new behavior |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Related command
Description
when user specify tls1_0 or tls1_1, we send tls1_2 instead
Add breaking change warning for 3/3
Testing Guide
History Notes
[Storage]
az storage account create/update: Set--min-tls-versiontotls1_2if the value provided istls1_0andtls1_1This 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.