-
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
Update Restore-AzRecoveryServicesBackupItem to support restore to NoZone. #27052
Update Restore-AzRecoveryServicesBackupItem to support restore to NoZone. #27052
Conversation
️✔️Az.Accounts
️✔️Az.Compute
️✔️Az.Network
|
Type | Cmdlet | Example | Line | RuleName | Description | Extent | Remediation |
---|---|---|---|---|---|---|---|
Restore-AzRecoveryServicesBackupItem | 7 | 8 | Unassigned_Variable | Restore-AzRecoveryServicesBackupItem -WLRecoveryConfig $AnotherInstanceWithLogConfig is a null-valued parameter value. | -WLRecoveryConfig | Assign value for $AnotherInstanceWithLogConfig. | |
Restore-AzRecoveryServicesBackupItem | 9 | 4 | Unassigned_Variable | Restore-AzRecoveryServicesBackupItem -RestoreDiskList $restoreDiskLUNs is a null-valued parameter value. | -RestoreDiskList | Assign value for $restoreDiskLUNs. | |
Restore-AzRecoveryServicesBackupItem | 13 | 3 | Unassigned_Variable | Get-AzRecoveryServicesBackupRecoveryPoint -Item $item is a null-valued parameter value. | -Item | Assign value for $item. |
⚠️ Windows PowerShell - Windows
Type | Cmdlet | Example | Line | RuleName | Description | Extent | Remediation |
---|---|---|---|---|---|---|---|
Restore-AzRecoveryServicesBackupItem | 7 | 8 | Unassigned_Variable | Restore-AzRecoveryServicesBackupItem -WLRecoveryConfig $AnotherInstanceWithLogConfig is a null-valued parameter value. | -WLRecoveryConfig | Assign value for $AnotherInstanceWithLogConfig. | |
Restore-AzRecoveryServicesBackupItem | 9 | 4 | Unassigned_Variable | Restore-AzRecoveryServicesBackupItem -RestoreDiskList $restoreDiskLUNs is a null-valued parameter value. | -RestoreDiskList | Assign value for $restoreDiskLUNs. | |
Restore-AzRecoveryServicesBackupItem | 13 | 3 | Unassigned_Variable | Get-AzRecoveryServicesBackupRecoveryPoint -Item $item is a null-valued parameter value. | -Item | Assign value for $item. |
️✔️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
if (rp.RecoveryPointTier != 0 | ||
&& rp.RecoveryPointTier != RecoveryPointTier.VaultArchive | ||
&& rp.RecoveryPointTier != RecoveryPointTier.SnapshotAndVaultArchive | ||
&& rp.RecoveryPointTier != RecoveryPointTier.Snapshot) |
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.
are we allowing restore from SnapshotAndVaultStandard RP ? If yes, do we not have the 4HRs restriction on it now ?
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.
In order to have restores form snapshot we used to have restriction of 4 HRs. But now restore from snapshot is blocked from all the regions. In the case of SnapshotAndVaultStandard RP, restore will fall happen from vault standard RP.
|
||
### Example 11: Edge zone restore for a managed AzureVM to alternate location | ||
### Example 11: Cross zonal restore for to non-ZonePinned VM to NoZone |
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.
for to --> for
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.
I will correct it.
/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). |
…one. (#27052) * Support for NoZone as targetZone for RestoreAzureRmRecoveryServicesBackupItem * Update in readme * minor change * Update ChangeLog for upcoming release changes --------- Co-authored-by: NoriZC <[email protected]>
Description
Updated Restore-AzRecoveryServicesBackupItem to enable restore to the NoZone by accepting an input of 0 for the -TargetZoneNumber parameter. Additionally, this PR blocks cross-zonal restoration from snapshot RP
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.