-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Conversation
️✔️Az.Accounts
️✔️Az.Compute
️✔️Az.Network
️✔️Az.RecoveryServices
|
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
...RecoveryServices/RecoveryServices.Backup.Models/AzureFileShareModels/AzureFileSharePolicy.cs
Outdated
Show resolved
Hide resolved
src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/AzureFilesPsBackupProvider.cs
Outdated
Show resolved
Hide resolved
@IannGeorges Since one cmdlet has introduced a new parameter, please update the doc as well. In addition, please also update |
This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@microsoft-github-policy-service agree company="Microsoft" |
/azp run |
Commenter does not have sufficient privileges for PR 26367 in repo Azure/azure-powershell |
/azp run |
Pull request contains merge conflicts. |
src/RecoveryServices/RecoveryServices.Backup.Models/CommonModels/Enums.cs
Show resolved
Hide resolved
src/RecoveryServices/RecoveryServices.Backup.Helpers/Conversions/ConversionHelpers.cs
Show resolved
Hide resolved
src/RecoveryServices/RecoveryServices.Backup.Helpers/Conversions/RecoveryPointConversions.cs
Outdated
Show resolved
Hide resolved
src/RecoveryServices/RecoveryServices.Backup.Helpers/Conversions/RecoveryPointConversions.cs
Outdated
Show resolved
Hide resolved
src/RecoveryServices/RecoveryServices.Backup.Helpers/Conversions/RecoveryPointConversions.cs
Outdated
Show resolved
Hide resolved
<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> |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
...Services.Backup/Cmdlets/ProtectionPolicy/SetAzureRmRecoveryServicesBackupProtectionPolicy.cs
Show resolved
Hide resolved
...rvices/RecoveryServices.Backup/Cmdlets/Item/EnableAzureRmRecoveryServicesBackupProtection.cs
Show resolved
Hide resolved
src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/AzureFilesPsBackupProvider.cs
Outdated
Show resolved
Hide resolved
src/RecoveryServices/RecoveryServices.Backup.Providers/Providers/AzureFilesPsBackupProvider.cs
Show resolved
Hide resolved
6720630
to
5bdfcc4
Compare
LGTM |
/azp run |
Commenter does not have sufficient privileges for PR 26367 in repo Azure/azure-powershell |
/azp run |
Commenter does not have sufficient privileges for PR 26367 in repo Azure/azure-powershell |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
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
cd905b0
to
df7377d
Compare
/azp run |
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. |
There was a problem hiding this comment.
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
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
…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>
Description
Added
BackupTier
property forGet-AzRecoveryServicesBackupRetentionPolicyObject
cmdlet to support VaultStandard backups for AzureFiles.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.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.