{Sql} az sql db ltr-policy: Add extra help on setting ltr policy#32157
{Sql} az sql db ltr-policy: Add extra help on setting ltr policy#32157
az sql db ltr-policy: Add extra help on setting ltr policy#32157Conversation
️✔️AzureCLI-FullTest
|
|
Hi @lixiachena, |
️✔️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 adds additional help documentation for the az sql db ltr-policy set command, specifically demonstrating how to configure time-based immutability settings for long-term retention policies.
- Added a new example showing time-based immutability configuration with locked mode
- Enhanced documentation to cover additional use cases for LTR policy settings
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| - name: Set long term retention for a database with time based immutability enabled and immutability mode locked. | ||
| text: az sql db ltr-policy set -g mygroup -s myserver -n mydb --weekly-retention "P0W" --monthly-retention "P0M" --yearly-retention "P0Y" --tb-immutability Enabled --tb-immutability-mode Locked |
There was a problem hiding this comment.
The indentation for line 246 is inconsistent with the existing pattern. It should use 4 spaces to align with the existing example above (line 244).
|
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>
|
az sql db ltr-policy: Add extra help on setting ltr policy
Related command
az sql db ltr-policy
Description
Add extra help to command for az sql db ltr-policy
Testing Guide
History Notes
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.