[data[protection] fix help docs to reflect latest retention rules change#29652
[data[protection] fix help docs to reflect latest retention rules change#29652IannGeorges wants to merge 1 commit into
Conversation
| Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status. |
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 help to reflect the latest AzureBlob retention rule behavior (OperationalStore rule now added alongside the existing Vault rule), and removes an outdated operational-only policy example.
Changes:
- Removed the operational-only AzureBlob policy example from generated and source help markdown.
- Updated the hybrid AzureBlob example to add
Default_OperationalStorewithout overwriting the existingDefault(Vault) rule, and clarified the accompanying narrative. - Simplified
-Nameparameter help text inEdit-AzDataProtectionPolicyRetentionRuleClientObject.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| src/DataProtection/DataProtection/help/New-AzDataProtectionBackupPolicy.md | Aligns user-facing help example(s) and narrative with current AzureBlob retention rule semantics. |
| src/DataProtection/DataProtection.Autorest/docs/New-AzDataProtectionBackupPolicy.md | Mirrors the same help updates in the AutoRest-generated docs output. |
| src/DataProtection/DataProtection.Autorest/custom/Cmdlets/Policy/Edit-AzDataProtectionPolicyRetentionRuleClientObject.ps1 | Updates parameter help messages related to retention rule naming/removal constraints. |
| The fourth command overwrites the vault lifecycle with operational store lifecycle. | ||
| The last command creates the operational store policy. | ||
|
|
||
| ### Example 4: Create a vaulted policy for AzureBlob |
| The fourth command overwrites the vault lifecycle with operational store lifecycle. | ||
| The last command creates the operational store policy. | ||
|
|
||
| ### Example 4: Create a vaulted policy for AzureBlob |
| [Parameter(ParameterSetName='AddRetention',Mandatory, HelpMessage='Retention Rule Name. Note: Default_OperationalStore is applicable to AzureBlob only and is reserved for OperationalStore lifecycles; on AzureBlob, -Name Default is reserved for VaultStore lifecycles.')] | ||
| [Parameter(ParameterSetName='RemoveRetention',Mandatory, HelpMessage='Retention Rule Name. Note: Default and Default_OperationalStore are default retention rules and cannot be removed.')] | ||
| [Parameter(ParameterSetName='AddRetention',Mandatory, HelpMessage='Retention Rule Name.')] | ||
| [Parameter(ParameterSetName='RemoveRetention',Mandatory, HelpMessage='Retention Rule Name. Note: Default retention rules cannot be removed.')] |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
| Next we create FirstOfDay, FirstOfWeek tag criteria and update the policy. | ||
| The last command creates the policy. | ||
|
|
||
| ### Example 4: Create a operational policy for AzureBlob |
There was a problem hiding this comment.
Please add the examples to files under "examples" and run "build-module.ps1". The files under "docs" are auto generated.
|
Hi @IannGeorges, |
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.