Skip to content

Commit eb86a9f

Browse files
authored
[Az.RecoveryServices.Backup] Added malaysia south fix for Cross region restore. (#21907)
* Added malaysia south fix for Cross region restore. Updated change log * Updated ChangeLog.md
1 parent 0bd0f56 commit eb86a9f

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/RecoveryServices/RecoveryServices.Backup/Cmdlets/Restore/RestoreAzureRMRecoveryServicesBackupItem.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -331,11 +331,7 @@ public override void ExecuteCmdlet()
331331

332332
string secondaryRegion = "";
333333
if (RestoreToSecondaryRegion.IsPresent)
334-
{
335-
if(TargetSubscriptionId != null)
336-
{
337-
throw new ArgumentException(Resources.CRRNotSupportedWIthCSR);
338-
}
334+
{
339335
if(VaultLocation != null)
340336
{
341337
secondaryRegion = BackupUtils.regionMap[VaultLocation];

src/RecoveryServices/RecoveryServices.Backup/Helpers/BackupUtils.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ public class BackupUtils
5151
{"chinaeast", "chinanorth"},
5252
{"chinanorth2", "chinaeast2"},
5353
{"chinaeast2", "chinanorth2"},
54+
{"chinanorth3", "chinaeast3"},
55+
{"chinaeast3", "chinanorth3"},
5456
{"northeurope", "westeurope"},
5557
{"westeurope", "northeurope"},
5658
{"francecentral", "francesouth"},
@@ -87,7 +89,10 @@ public class BackupUtils
8789
{"usgovarizona", "usgovtexas"},
8890
{"usgovtexas", "usgovarizona"},
8991
{"usgoviowa", "usgovvirginia"},
90-
{"usgovvirginia", "usgovtexas"}
92+
{"usgovvirginia", "usgovtexas"},
93+
{"malaysiasouth", "japanwest"},
94+
{"jioindiacentral", "jioindiawest"},
95+
{"jioindiawest", "jioindiacentral"}
9196
};
9297

9398
/// <summary>

src/RecoveryServices/RecoveryServices/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added CRR support for new regions malaysiasouth, chinanorth3, chinaeast3, jioindiacentral, jioindiawest.
2122

2223
## Version 6.4.0
2324
* Added support for updating CrossSubscriptionRestoreState of the vault

0 commit comments

Comments
 (0)