Skip to content

Conversation

@danikaZ
Copy link
Contributor

@danikaZ danikaZ commented Mar 29, 2022

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: Make diffbackup_hours parameter optional


This checklist is used to make sure that common guidelines for a pull request are followed.

@ghost ghost added Auto-Assign Auto assign by bot SQL az sql labels Mar 29, 2022
@ghost ghost requested a review from yonzhan March 29, 2022 20:18
@ghost ghost assigned evelyn-ys Mar 29, 2022
@ghost ghost added this to the Mar 2022 (2022-04-06) milestone Mar 29, 2022
@ghost ghost requested a review from wangzelin007 March 29, 2022 20:18
@ghost ghost assigned zhoxing-ms Mar 29, 2022
@ghost ghost added the Backup label Mar 29, 2022
@ghost ghost requested review from jsntcy and zhoxing-ms March 29, 2022 20:19
@danikaZ danikaZ requested review from ericshape, jiasli, lululilliancoding and zhoxing-ms and removed request for jsntcy, wangzelin007 and zhoxing-ms March 29, 2022 20:19
'retention_days_v2': 6,
'diffbackup_hours_v2': 12
'diffbackup_hours_v2': 12,
'retention_days_v3': 5,
Copy link
Contributor

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

Copy link
Contributor Author

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.

@ericshape
Copy link
Member

the pipelines are failed. you might need to record the corresponding test again.
please refer to the cli development doc in this repo.

@lululilliancoding
Copy link
Contributor

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".

@danikaZ
Copy link
Contributor Author

danikaZ commented Mar 29, 2022

the pipelines are failed. you might need to record the corresponding test again. please refer to the cli development doc in this repo.

The pipeline has succeeded with the latest changes. Thanks!

Copy link
Member

@ericshape ericshape left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yonzhan
Copy link
Collaborator

yonzhan commented Mar 29, 2022

SQL

@danikaZ
Copy link
Contributor Author

danikaZ commented Mar 29, 2022

@evelyn-ys

@evelyn-ys evelyn-ys changed the title [SQL] az command sql db str-policy set: Make diffbackup_hours parameter optional [SQL] az command sql db str-policy set: Make --diffbackup-hours parameter optional Mar 30, 2022
@evelyn-ys evelyn-ys merged commit ab3a741 into Azure:dev Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot SQL az sql

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants