Skip to content

Conversation

@brandong-ms
Copy link
Member

@brandong-ms brandong-ms commented Oct 23, 2025

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

brandong-ms and others added 30 commits September 11, 2020 11:51
Merge main repo into fork
…k the new cmdlets to add PassThru parameter which returns LTR backup model object.
@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@brandong-ms brandong-ms marked this pull request as ready for review October 23, 2025 22:17
Copilot AI review requested due to automatic review settings October 23, 2025 22:17
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for immutable Long-Term Retention (LTR) backups in Azure SQL, introducing time-based and legal hold immutability features. The implementation includes new cmdlets for managing immutability policies, updated existing cmdlets to expose immutability parameters, and comprehensive documentation.

Key Changes:

  • Added four new cmdlets for managing LTR backup immutability (Lock, Remove, Set Legal Hold, Remove Legal Hold)
  • Extended existing models to include immutability properties (TimeBasedImmutability, TimeBasedImmutabilityMode, LegalHoldImmutability)
  • Updated Set-AzSqlDatabaseBackupLongTermRetentionPolicy to support immutability parameters

Reviewed Changes

Copilot reviewed 25 out of 64 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Sql/Sql/help/*.md Added/updated help documentation for immutability cmdlets and properties
src/Sql/Sql/Properties/Resources.resx Added user-facing warning and description strings for immutability operations
src/Sql/Sql/Database Backup/Services/*.cs Implemented communicator and adapter methods for immutability API calls
src/Sql/Sql/Database Backup/Model/*.cs Extended models with immutability properties
src/Sql/Sql/Database Backup/Cmdlet/*.cs Implemented new cmdlets and updated existing policy cmdlet
src/Sql/Sql/Common/DatabaseBackupConstants.cs Added constants for immutability values
src/Sql/Sql/ChangeLog.md Documented changes for upcoming release
src/Sql/Sql/Az.Sql.psd1 Exported new cmdlets
src/Sql/Sql.Test/SessionRecords/*.json Added test recordings
src/Sql/Sql.Test/ScenarioTests/DatabaseBackupTests.cs Added test methods for immutability features
src/Sql/Sql.Management.Sdk/README.md Updated API spec references to 2024-11-01-preview
Files not reviewed (1)
  • src/Sql/Sql/Properties/Resources.Designer.cs: Language not supported

Copy link
Member

@isra-fel isra-fel left a comment

Choose a reason for hiding this comment

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

Generally LGTM. When you refresh the help documents make sure to add -RefreshModulePage to update the index doc Az.Sql.md as well.

@github-actions
Copy link

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures.
Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

@brandong-ms brandong-ms requested a review from isra-fel October 27, 2025 20:34
@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel
Copy link
Member

isra-fel commented Oct 27, 2025

There are issues detected in the examples that are unrelated to your change but got detected because of the module-level regeneration of help documents.

I‘ve created #28758 . If you own those cmdlets please work on them in a separate PR.

I'll force merge this one. it also works if you revert those files

@isra-fel
Copy link
Member

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@isra-fel isra-fel enabled auto-merge (squash) October 27, 2025 23:39
@isra-fel isra-fel merged commit b4d2f68 into Azure:main Oct 28, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants