-
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] Improve Policy Error Code #26788
[Az.RecoveryServices.Backup] Improve Policy Error Code #26788
Conversation
️✔️Az.Accounts
️✔️Az.Compute
️✔️Az.Network
|
Type | Cmdlet | Description | Remediation |
---|---|---|---|
It is required to update ChangeLog.md if you want to release a new version for Az.RecoveryServices. | Add a changelog record under Upcoming Release section with past tense. |
⚠️ Windows PowerShell - Windows
Type | Cmdlet | Description | Remediation |
---|---|---|---|
It is required to update ChangeLog.md if you want to release a new version for Az.RecoveryServices. | Add a changelog record under Upcoming Release section with past tense. |
️✔️UX Metadata Check
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
️✔️Test
️✔️PowerShell Core - Linux
️✔️PowerShell Core - MacOS
️✔️PowerShell Core - Windows
️✔️Windows PowerShell - Windows
else | ||
{ | ||
MinDurationCountInDays = PolicyConstants.AfsDailyRetentionDaysMin; | ||
MaxDurationCountInDays = PolicyConstants.AfsDailyRetentionDaysMax; |
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.
why do we set default min max values to AFS min-max ?
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 in-order to give default values to AFS min/max in case the BackupManagementType is AzureStorage & we haven't passed in optional params for min & max. For vault policy, we pass in our custom params, however we snapshot retention for AFS it will default to these constants, matching the portal experience.
/azp run azure-powershell - security-tools |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run azure-powershell - security-tools |
Azure Pipelines successfully started running 1 pipeline(s). |
* fix error messages * pass custom retention constants for vault policy validation * fix unit test --------- Co-authored-by: ianna1-admin <ianna@microsoft.com>
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.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.