-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Edit Get & Set ShortTermRetentionPolicy For Adding New Parameter: DiffBackupIntervalInHours #12562
Edit Get & Set ShortTermRetentionPolicy For Adding New Parameter: DiffBackupIntervalInHours #12562
Conversation
…ameter DiffBackupIntervalInHours PR (except record test session).
Can one of the admins verify this patch? |
Adding "DO NOT MERGE" since SDK is not ready |
src/Sql/Sql/Database Backup/Cmdlet/SetAzureRmSqlDatabaseBackupShortTermRetentionPolicy.cs
Outdated
Show resolved
Hide resolved
src/Sql/Sql/Database Backup/Cmdlet/SetAzureRmSqlDatabaseBackupShortTermRetentionPolicy.cs
Outdated
Show resolved
Hide resolved
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.
To be specific, what I suggest are two changes to all the nullable parameters.
src/Sql/Sql/Database Backup/Cmdlet/SetAzureRmSqlDatabaseBackupShortTermRetentionPolicy.cs
Outdated
Show resolved
Hide resolved
src/Sql/Sql/Database Backup/Cmdlet/SetAzureRmSqlDatabaseBackupShortTermRetentionPolicy.cs
Outdated
Show resolved
Hide resolved
src/Sql/Sql/Database Backup/Cmdlet/SetAzureSqlDatabaseBackupShortTermRetentionPolicy.cs
Show resolved
Hide resolved
…an be set individually. Added its related scenario tests and re-record; Added one related example;
Add retentionDays nullable changes exception; Re-upload records.
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.
I undid the position of DiffBackupIntervalInHours
so that static analysis won't complain about "too many positional parameters".
I've also regenerated help docs so that the diff of src/Sql/Sql/help/Set-AzSqlDatabaseBackupShortTermRetentionPolicy.md
makes more sense.
That's making sense. Thanks a lot! |
The pipeline hit "run more than 180 minutes" error. I just clicked re-run. I see 'S177 (2020-10-27) Major Release'. Is this the time to release this new cmdlets? Can customer use it before 10/27? |
/azp run azure-powershell - powershell-core |
Azure Pipelines successfully started running 1 pipeline(s). |
* Added Force parameter to `New-AzSqlDatabase` | ||
* Updated ActiveDirectoryOnlyAuthentication cmdlets for server and instance to include ResourceId and InputObject | ||
* Added support for Managed HSM Uris for SQL DB and Managed Instance | ||
* Added DiffBackupIntervalInHours to `Set-AzSqlDatabaseBackupShortTermRetentionPolicy` |
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.
I just noticed that the change logs of past versions were deleted accidently in this PR. Please be careful when you submit another PR. Thanks
Description
ShortTermRetentionPolicy Get and Set cmdlets to include new parameter DiffBackupIntervalInHours.
Checklist
CONTRIBUTING.md
ChangeLog.md
file(s) has been updated:ChangeLog.md
file can be found atsrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
## Upcoming Release
header -- no new version header should be added