Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Az.RecoveryServices.Backup] Added support for AFS VaultStandard Backup Policy #26367

Merged
merged 8 commits into from
Nov 26, 2024

Conversation

IannGeorges
Copy link
Member

@IannGeorges IannGeorges commented Oct 17, 2024

Description

Added BackupTier property for Get-AzRecoveryServicesBackupRetentionPolicyObject cmdlet to support VaultStandard backups for AzureFiles.

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • For SDK-based development mode, 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.
    • For autorest-based development mode, include the changelog in the PR description.
    • 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

Copy link

azure-client-tools-bot-prd bot commented Oct 17, 2024

️✔️Az.Accounts
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Compute
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.Network
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Az.RecoveryServices
️✔️Build
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Breaking Change Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Signature Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Help Example Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Help File Existence Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️File Change Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️PowerShell Core - Linux
️✔️PowerShell Core - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows

@vidai-msft
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@vidai-msft
Copy link
Contributor

@IannGeorges Since one cmdlet has introduced a new parameter, please update the doc as well. In addition, please also update ChangeLog.md. For the other parts, as I am not familiar with your service, I need @hiaga help to review and comment.

Copy link

github-actions bot commented Nov 9, 2024

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.

src/RecoveryServices/RecoveryServices/ChangeLog.md Outdated Show resolved Hide resolved
@vidai-msft
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@IannGeorges IannGeorges reopened this Nov 10, 2024
@IannGeorges
Copy link
Member Author

@microsoft-github-policy-service agree company="Microsoft"

@IannGeorges IannGeorges changed the title Users/ianna/afs policy [Az.RecoveryServices.Backup] Added support for AFS VaultStandard Backup Policy Nov 10, 2024
@IannGeorges
Copy link
Member Author

/azp run

Copy link
Contributor

Commenter does not have sufficient privileges for PR 26367 in repo Azure/azure-powershell

@vidai-msft
Copy link
Contributor

/azp run

Copy link
Contributor

Pull request contains merge conflicts.

<value>Modifying existing policies to stop data transfer to the vault and retain backups only as snapshots is not supported. Please create a new policy to opt-out of the data transfer to the recovery services vault.</value>
</data>
<data name="AFSPolicyUpdateWarning" xml:space="preserve">
<value>Changing the backup tier will retain the existing snapshots AS-IS per the configured retention in the current policy. The future backups will be moved to the vault and retained as per the vault retention you configure. It is an irreversible operation with additional cost for backup storage and switching from vault to snapshot tier requires reconfiguration of the backup. Learn more.</value>
Copy link
Member

Choose a reason for hiding this comment

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

what does learn more points to here ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@hiaga Awaiting confirmation. This message came directly from design spec.

@IannGeorges IannGeorges force-pushed the users/ianna/afsPolicy branch from 6720630 to 5bdfcc4 Compare November 11, 2024 09:22
@hiaga
Copy link
Member

hiaga commented Nov 11, 2024

LGTM

@hiaga
Copy link
Member

hiaga commented Nov 11, 2024

/azp run

Copy link
Contributor

Commenter does not have sufficient privileges for PR 26367 in repo Azure/azure-powershell

@IannGeorges
Copy link
Member Author

/azp run

Copy link
Contributor

Commenter does not have sufficient privileges for PR 26367 in repo Azure/azure-powershell

@vidai-msft
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@Nickcandy
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@wyunchi-ms
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

ianna1-admin added 5 commits November 17, 2024 23:27
GetBackupRetentionObject working for VaultStandard AFS backup policy, might need to refactor following discussions
minor fix
revert long term policy changes
new vault policy model,create/get cmds are completed
set/enable cmds done, initial test for policy
policy test complete for # Get-AzRecoveryServicesBackupRetentionPolicyObject, New-AzRecoveryServicesBackupProtectionPolicy, Set-AzRecoveryServicesBackupProtectionPolicy, Get-AzRecoveryServicesBackupProtectionPolicy
enable protection with vault policy tests
updated cmdlet docs & changelog + addressed feedback
refactored enable protection to wait for user confirmation when switching policy tiers
fixed client-side validation for enable prot
removed comments
created resource strings for backup tier validation messages
fixed change log & regenerated test json
remove comments
refactored vault retention policy to use ltr policy as base
removing redundant functions after refactoring vault retention policy
fix merge conflicts in changelog
updated changelog
fix changelog
update changelog
update changelog
@IannGeorges IannGeorges force-pushed the users/ianna/afsPolicy branch from cd905b0 to df7377d Compare November 18, 2024 05:28
@VeryEarly VeryEarly assigned VeryEarly and unassigned vidai-msft Nov 18, 2024
@VeryEarly
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@@ -22,6 +22,7 @@
## Version 7.3.0
* Added CRR support for southeastus, westus3 regions.
* Added support for enabling Disk access settings for managed VM restores.
* Updated the policy, protection commands to support AFS Vault Tier.
Copy link
Contributor

Choose a reason for hiding this comment

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

please move this under line 20

@VeryEarly
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@VeryEarly VeryEarly merged commit 981a03b into Azure:main Nov 26, 2024
12 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 26, 2024
…up Policy (#26367)

* initial commit - updated retention object
GetBackupRetentionObject working for VaultStandard AFS backup policy, might need to refactor following discussions
minor fix
revert long term policy changes
new vault policy model,create/get cmds are completed
set/enable cmds done, initial test for policy
policy test complete for # Get-AzRecoveryServicesBackupRetentionPolicyObject, New-AzRecoveryServicesBackupProtectionPolicy, Set-AzRecoveryServicesBackupProtectionPolicy, Get-AzRecoveryServicesBackupProtectionPolicy
enable protection with vault policy tests
updated cmdlet docs & changelog + addressed feedback
refactored enable protection to wait for user confirmation when switching policy tiers
fixed client-side validation for enable prot
removed comments
created resource strings for backup tier validation messages
fixed change log & regenerated test json
remove comments
refactored vault retention policy to use ltr policy as base
removing redundant functions after refactoring vault retention policy
fix merge conflicts in changelog
updated changelog
fix changelog
update changelog
update changelog

* added validation for vault standard retention policy

* updated error messages

* reran tests to record http json

* reran failed tests to record http json

* remove extra validation

* change afs policy max retention constants to support vault standard

* fix changelog

---------

Co-authored-by: ianna1-admin <ianna@microsoft.com>
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.

6 participants