[dataprotection] improve docs, help, example to reflect new retention rule changes #29648
[dataprotection] improve docs, help, example to reflect new retention rule changes #29648IannGeorges wants to merge 3 commits into
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
|
doc, example, & help improvements for the following merged pr: #29533 |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
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_OperationalStoreadditively (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). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
|
||
| ## 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. |
| Retention Rule Name. | ||
| Note: `"Default"` retention rules cannot be removed, regardless of lifecycle. |
| [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.')] |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
Hi @IannGeorges, the ChangeLog file path is src/DataProtection/DataProtection/ChangeLog.md. Please add a line right below |
Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.