Skip to content

[dataprotection]fix default rule name for blob policy#29171

Open
IannGeorges wants to merge 1 commit intoAzure:mainfrom
MabOneSdk:users/ianna/fixBlobPol
Open

[dataprotection]fix default rule name for blob policy#29171
IannGeorges wants to merge 1 commit intoAzure:mainfrom
MabOneSdk:users/ianna/fixBlobPol

Conversation

@IannGeorges
Copy link
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 February 13, 2026 01:47
@azure-client-tools-bot-prd
Copy link

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

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 attempts to fix the default rule name for blob backup policies in the DataProtection module by changing the retention rule name from "Default" to "Default_OperationalStore" in the AzureBlob.json manifest file. However, this change introduces a critical bug rather than fixing one.

Changes:

  • Modified the retention rule name in AzureBlob.json manifest from "Default" to "Default_OperationalStore"

],
"isDefault": true,
"name": "Default",
"name": "Default_OperationalStore",
Copy link

Copilot AI Feb 13, 2026

Choose a reason for hiding this comment

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

The retention rule name "Default_OperationalStore" is inconsistent with its sourceDataStore type "VaultStore" (line 75). According to the naming convention observed in test recordings and other manifest files, retention rules should follow this pattern:

  • When sourceDataStore is "OperationalStore", the name should be "Default_OperationalStore"
  • When sourceDataStore is "VaultStore", the name should be "Default"

Since this retention rule has sourceDataStore set to "VaultStore", the name should remain "Default", not "Default_OperationalStore". This change introduces a bug where the rule name doesn't match the actual datastore type being used.

Suggested change
"name": "Default_OperationalStore",
"name": "Default",

Copilot uses AI. Check for mistakes.
@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

Please fix the failed tests - I believe they are caused by this change, and update the ChangeLog.md accordingly

@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.

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