-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[SQL] az command sql db str-policy set: Make --diffbackup-hours parameter optional
#21852
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py
Outdated
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py
Outdated
Show resolved
Hide resolved
| 'retention_days_v2': 6, | ||
| 'diffbackup_hours_v2': 12 | ||
| 'diffbackup_hours_v2': 12, | ||
| 'retention_days_v3': 5, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only two groups of retention_Days and diffbackup_hours should be enough for the testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Three sets are better, because set str-policy using set 2 could verify that both retention days and diff backup hours work as expected.
|
the pipelines are failed. you might need to record the corresponding test again. |
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py
Show resolved
Hide resolved
src/azure-cli/azure/cli/command_modules/sql/tests/latest/test_sql_commands.py
Outdated
Show resolved
Hide resolved
|
You will need to rerun the test so does it can create full API record json file. Check-in that json record file to pass the pipeline Checks. The record file end up with .yaml and under path "src/azure-cli/azure/cli/command_modules/sql/tests/latest/recordings". |
The pipeline has succeeded with the latest changes. Thanks! |
ericshape
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
SQL |
az command sql db str-policy set: Make diffbackup_hours parameter optionalaz command sql db str-policy set: Make --diffbackup-hours parameter optional
Description
Make diffbackup_hours optional in sql db str-policy set.
We are releasing public preview feature short term retention parity for Very Large Database (VLDB) on May 1st .
We recently noticed a bug in Cli which requires differential backup interval as a required parameter. ([SQL] 'az sql db str-policy set/show': Add Set and Show ShortTermRetentionPolicy by lululilliancoding · Pull Request #14919 · Azure/azure-cli (github.com).
We are changing the parameter diffbackup_hours to be an optional parameter
Testing Guide
sql db str-policy set -g WestUS2ResourceGroup -s lillian-westus2-server -n ps5691 --retention-days 7
History Notes
[SQL]
az command sql db str-policy set: Makediffbackup_hoursparameter optionalThis 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.