protected void SetupManagementClients() { RecoveryServicesMgmtClient = GetRecoveryServicesManagementClient(); SiteRecoveryMgmtClient = GetSiteRecoveryManagementClient(); helper.SetupManagementClients(RecoveryServicesMgmtClient, SiteRecoveryMgmtClient); }
/// <summary> /// Initializes a new instance of the <see cref="PSRecoveryServicesClient" /> class with /// required current subscription. /// </summary> /// <param name="azureSubscription">Azure Subscription</param> public PSRecoveryServicesClient(AzureSubscription azureSubscription) { this.recoveryServicesClient = AzureSession.ClientFactory.CreateClient<RecoveryServicesManagementClient>(azureSubscription, AzureEnvironment.Endpoint.ServiceManagement); }