Skip to content

[dataprotection] improve docs, help, example to reflect new retention rule changes #29648

Open
IannGeorges wants to merge 3 commits into
Azure:mainfrom
MabOneSdk:users/ianna/dupretrulesfix
Open

[dataprotection] improve docs, help, example to reflect new retention rule changes #29648
IannGeorges wants to merge 3 commits into
Azure:mainfrom
MabOneSdk:users/ianna/dupretrulesfix

Conversation

@IannGeorges

Copy link
Copy Markdown
Member

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

Copilot AI review requested due to automatic review settings May 20, 2026 09:06
@azure-client-tools-bot-prd

Copy link
Copy Markdown
Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@IannGeorges

Copy link
Copy Markdown
Member Author

doc, example, & help improvements for the following merged pr: #29533

@VeryEarly

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines successfully started running 3 pipeline(s).

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates DataProtection cmdlet documentation and examples to align with the new retention-rule behavior (OperationalStore rules in AzureBlob are additive and must use Default_OperationalStore, and duplicate rule names are rejected unless overwriting).

Changes:

  • Removed the AzureBlob “operational-only policy” example and revised the “hybrid” example to add Default_OperationalStore additively (preserving Vault retention).
  • Expanded cmdlet help/docs with clearer synopsis/description, a new AzureBlob OperationalStore example, and added validation/deprecation notes.
  • Updated the cmdlet parameter help text to note deprecation of -OverwriteLifeCycle.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/DataProtection/DataProtection/help/New-AzDataProtectionBackupPolicy.md Updates AzureBlob policy examples to reflect additive OperationalStore retention rule behavior.
src/DataProtection/DataProtection/help/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md Clarifies retention-rule add/remove semantics, adds AzureBlob OperationalStore example, and documents validation/deprecation notes.
src/DataProtection/DataProtection.Autorest/examples/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md Aligns generated example text with new validation and deprecation guidance.
src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupPolicy.md Mirrors help updates for AzureBlob backup policy examples in generated docs.
src/DataProtection/DataProtection.Autorest/docs/Edit-AzDataProtectionPolicyRetentionRuleClientObject.md Mirrors help updates and adds “Accepted values” + validation/deprecation notes in generated docs.
src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 Updates parameter HelpMessage strings (notably -OverwriteLifeCycle deprecation and removal guidance).

Comment thread src/DataProtection/DataProtection/help/New-AzDataProtectionBackupPolicy.md Outdated
@VeryEarly

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines successfully started running 3 pipeline(s).

Copilot AI review requested due to automatic review settings May 20, 2026 17:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 8 comments.


## SYNOPSIS
Adds or removes Retention Rule to existing Policy
Adds or removes Retention Rule to an existing backup policy.

## DESCRIPTION
Adds or removes Retention Rule to existing Policy
Adds or removes Retention Rule to an existing backup policy.
### -Name
Retention Rule Name
Retention Rule Name.
Note: `"Default"` retention rules cannot be removed, regardless of lifecycle.
Comment on lines +112 to +113
Retention Rule Name.
Note: `"Default"` retention rules cannot be removed, regardless of lifecycle.
Comment on lines +20 to +21
[Parameter(ParameterSetName='AddRetention',Mandatory, HelpMessage='Retention Rule Name.')]
[Parameter(ParameterSetName='RemoveRetention',Mandatory, HelpMessage='Retention Rule Name. Note: "Default" retention rules cannot be removed, regardless of lifecycle.')]
@VeryEarly

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines successfully started running 3 pipeline(s).

@YanaXu

YanaXu commented May 21, 2026

Copy link
Copy Markdown
Contributor

Hi @IannGeorges, the ChangeLog file path is src/DataProtection/DataProtection/ChangeLog.md. Please add a line right below Upcoming Release using the past tense to describe the purpose of this PR. Thanks.

@YanaXu YanaXu removed this from the Az 16.0.0 (06/02/2026) milestone May 26, 2026
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.

4 participants