Skip to content

Commit 69fe734

Browse files
committed
Reverting Storage account related validation changes.
Hyak nuget package needs to be updated before the following changes can come into effect.
1 parent 7d6777a commit 69fe734

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/PSRecoveryServicesClient/PSRecoveryServicesClientHelper.cs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -162,24 +162,6 @@ public bool ValidateStorageAccountAssociation(string azureSubscription, string a
162162
azureSubscription));
163163
}
164164

165-
// Validate that the Geo Location of the storage account is the same as that of the vault.
166-
if (string.IsNullOrEmpty(currentStorageAccount.Properties.Location))
167-
{
168-
return false;
169-
}
170-
171-
if (0 != string.Compare(
172-
currentStorageAccount.Properties.Location,
173-
vaultLocation,
174-
StringComparison.OrdinalIgnoreCase))
175-
{
176-
throw new InvalidOperationException(
177-
string.Format(
178-
Properties.Resources.StorageIsNotInTheSameLocationAsVault,
179-
currentStorageAccount.Properties.Location,
180-
vaultLocation));
181-
}
182-
183165
return true;
184166
}
185167
}

0 commit comments

Comments
 (0)