File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -312,6 +312,12 @@ public CustomRequestHeaders GetRequestHeaders(bool shouldSignRequest = true)
312
312
/// <returns>Site Recovery Management client</returns>
313
313
private SiteRecoveryManagementClient GetSiteRecoveryClient ( )
314
314
{
315
+ if ( string . IsNullOrEmpty ( asrVaultCreds . ResourceName ) ||
316
+ string . IsNullOrEmpty ( asrVaultCreds . ResourceGroupName ) )
317
+ {
318
+ throw new InvalidOperationException ( Properties . Resources . MissingVaultSettings ) ;
319
+ }
320
+
315
321
SiteRecoveryManagementClient siteRecoveryClient =
316
322
AzureSession . ClientFactory . CreateCustomClient < SiteRecoveryManagementClient > (
317
323
asrVaultCreds . ResourceName ,
@@ -426,4 +432,4 @@ public static T Deserialize(string xmlString)
426
432
return propertyBagContainer ;
427
433
}
428
434
}
429
- }
435
+ }
You can’t perform that action at this time.
0 commit comments