Skip to content

Commit f7ed47c

Browse files
committed
Merge pull request #44 from AsrOneSdk/sriramvu-dev
bug1675725, removed Microsoft.WindowsAzure, updated vault settings back after generating file
2 parents d0d2c4a + a2bf833 commit f7ed47c

File tree

45 files changed

+23
-78
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+23
-78
lines changed

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@
8383
<SpecificVersion>False</SpecificVersion>
8484
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Management.4.0.1\lib\net40\Microsoft.WindowsAzure.Management.dll</HintPath>
8585
</Reference>
86-
<Reference Include="Microsoft.WindowsAzure.Management.SiteRecovery, Version=0.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
87-
<SpecificVersion>False</SpecificVersion>
86+
<Reference Include="Microsoft.WindowsAzure.Management.SiteRecovery">
8887
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.0.4.1-preview\lib\net40\Microsoft.WindowsAzure.Management.SiteRecovery.dll</HintPath>
8988
</Reference>
9089
<Reference Include="Microsoft.WindowsAzure.Testing, Version=1.0.5417.13285, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,11 @@
8686
<SpecificVersion>False</SpecificVersion>
8787
<HintPath>..\..\..\packages\Microsoft.Bcl.Async.1.0.168\lib\net40\Microsoft.Threading.Tasks.Extensions.Desktop.dll</HintPath>
8888
</Reference>
89-
<Reference Include="Microsoft.WindowsAzure.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
90-
<SpecificVersion>False</SpecificVersion>
91-
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.1\lib\net45\Microsoft.WindowsAzure.Common.dll</HintPath>
92-
</Reference>
9389
<Reference Include="Microsoft.WindowsAzure.Common.NetFramework, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
9490
<SpecificVersion>False</SpecificVersion>
9591
<HintPath>..\..\..\packages\Microsoft.WindowsAzure.Common.1.4.1\lib\net45\Microsoft.WindowsAzure.Common.NetFramework.dll</HintPath>
9692
</Reference>
97-
<Reference Include="Microsoft.WindowsAzure.Management.SiteRecovery, Version=0.9.0.0, Culture=neutral, processorArchitecture=MSIL">
98-
<SpecificVersion>False</SpecificVersion>
93+
<Reference Include="Microsoft.WindowsAzure.Management.SiteRecovery">
9994
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.0.4.1-preview\lib\net40\Microsoft.WindowsAzure.Management.SiteRecovery.dll</HintPath>
10095
</Reference>
10196
<Reference Include="Microsoft.WindowsAzure.Management.Storage, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
using System.Web.Script.Serialization;
2525
using System.Xml;
2626
using Microsoft.Azure.Portal.RecoveryServices.Models.Common;
27-
using Microsoft.WindowsAzure;
2827
using Microsoft.WindowsAzure.Commands.Common;
2928
using Microsoft.Azure.Common.Extensions.Models;
3029
using Microsoft.WindowsAzure.Commands.Utilities.Common;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
using System;
1616
using System.Collections.Generic;
1717
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
18-
using Microsoft.WindowsAzure;
1918
using Microsoft.WindowsAzure.Management.RecoveryServices;
2019
using Microsoft.WindowsAzure.Management.RecoveryServices.Models;
2120

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
using System.IO;
1919
using System.Runtime.Serialization;
2020
using System.Xml;
21-
using Microsoft.WindowsAzure;
2221
using Microsoft.WindowsAzure.Commands.Common;
2322
using Microsoft.WindowsAzure.Management.SiteRecovery;
2423
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
1616
using Microsoft.Azure.Portal.RecoveryServices.Models.Common;
17-
using Microsoft.WindowsAzure;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery;
1918
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2019

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using System;
16-
using Microsoft.WindowsAzure;
1716
using Microsoft.WindowsAzure.Management.SiteRecovery;
1817
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
1918

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15-
using Microsoft.WindowsAzure;
1615
using Microsoft.WindowsAzure.Management.RecoveryServices;
1716
using Microsoft.WindowsAzure.Management.RecoveryServices.Models;
1817

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
using System;
1616
using System.Security.Cryptography.X509Certificates;
1717
using System.Threading.Tasks;
18+
using Hyak.Common;
1819
using Microsoft.Azure.Commands.RecoveryServices.Properties;
1920
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
2021
using Microsoft.Azure.Portal.HybridServicesCore;
2122
using Microsoft.Azure.Portal.RecoveryServices.Models.Common;
22-
using Microsoft.WindowsAzure;
2323
using Microsoft.WindowsAzure.Management.SiteRecovery;
2424
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2525
using rpError = Microsoft.Azure.Commands.RecoveryServices.RestApiInfra;
@@ -71,6 +71,10 @@ public async Task<UploadCertificateResponse> UpdateVaultCertificate(CertificateA
7171
/// <returns>credential object</returns>
7272
public ASRVaultCreds GenerateVaultCredential(X509Certificate2 managementCert, ASRVault vault, Site site)
7373
{
74+
string currentResourceName = PSRecoveryServicesClient.asrVaultCreds.ResourceName;
75+
string currentCloudServiceName = PSRecoveryServicesClient.asrVaultCreds.CloudServiceName;
76+
77+
// Update vault settings with the working vault to generate file
7478
Utilities.UpdateVaultSettings(new ASRVaultCreds()
7579
{
7680
CloudServiceName = vault.CloudServiceName,
@@ -100,6 +104,13 @@ public ASRVaultCreds GenerateVaultCredential(X509Certificate2 managementCert, AS
100104
vault,
101105
site);
102106

107+
// Update back the original vault settings
108+
Utilities.UpdateVaultSettings(new ASRVaultCreds()
109+
{
110+
CloudServiceName = currentCloudServiceName,
111+
ResourceName = currentResourceName
112+
});
113+
103114
return asrVaultCreds;
104115
}
105116

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/RecoveryServicesCmdletBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
using System.Runtime.Serialization;
1818
using System.Threading;
1919
using System.Xml;
20+
using Hyak.Common;
2021
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
21-
using Microsoft.WindowsAzure;
2222
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2323
using Microsoft.WindowsAzure.Management.RecoveryServices;
2424
using Microsoft.WindowsAzure.Management.RecoveryServices.Models;

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/CreateAzureSiteRecoveryRecoveryPlan.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
using System.Threading;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
2020
using Microsoft.Azure.Common.Extensions;
21-
using Microsoft.WindowsAzure;
2221
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2322
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2423

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryJob.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryNetwork.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryNetworkMapping.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryProtectionContainer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryProtectionEntity.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryRecoveryPlan.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryRecoveryPlanFile.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
using System.Collections.Generic;
1717
using System.Management.Automation;
1818
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
19-
using Microsoft.WindowsAzure;
2019
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2120

2221
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryServer.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryStorage.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryStorageMapping.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/GetAzureSiteRecoveryVM.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/ImportAzureSiteRecoveryVaultSettingsFile.cs

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
using System.Xml;
2222
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
2323
using Microsoft.Azure.Portal.RecoveryServices.Models.Common;
24-
using Microsoft.WindowsAzure;
2524
using Microsoft.WindowsAzure.Commands.Utilities.Common;
2625

2726
namespace Microsoft.Azure.Commands.RecoveryServices
@@ -108,7 +107,7 @@ public override void ExecuteCmdlet()
108107
asrVaultCreds.ResourceName,
109108
asrVaultCreds.CloudServiceName);
110109

111-
this.ImportAzureSiteRecoveryVaultSettings(asrVaultCreds);
110+
Utilities.UpdateVaultSettings(asrVaultCreds);
112111
this.WriteObject(new ASRVaultSettings(
113112
asrVaultCreds.ResourceName,
114113
asrVaultCreds.CloudServiceName));
@@ -118,23 +117,5 @@ public override void ExecuteCmdlet()
118117
this.HandleException(exception);
119118
}
120119
}
121-
122-
/// <summary>
123-
/// Imports Azure Site Recovery Vault settings.
124-
/// </summary>
125-
/// <param name="asrVaultCreds">ASR Vault credentials</param>
126-
public void ImportAzureSiteRecoveryVaultSettings(ASRVaultCreds asrVaultCreds)
127-
{
128-
object updateVaultSettingsOneAtATime = new object();
129-
lock (updateVaultSettingsOneAtATime)
130-
{
131-
PSRecoveryServicesClient.asrVaultCreds.ResourceName =
132-
asrVaultCreds.ResourceName;
133-
PSRecoveryServicesClient.asrVaultCreds.CloudServiceName =
134-
asrVaultCreds.CloudServiceName;
135-
PSRecoveryServicesClient.asrVaultCreds.ChannelIntegrityKey =
136-
asrVaultCreds.ChannelIntegrityKey;
137-
}
138-
}
139120
}
140121
}

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/NewAzureSiteRecoveryNetworkMapping.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/NewAzureSiteRecoveryStorageMapping.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/RemoveAzureSiteRecoveryNetworkMapping.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/RemoveAzureSiteRecoveryRecoveryPlan.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Management.Automation;
1818
using System.Threading;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/RemoveAzureSiteRecoveryStorageMapping.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Linq;
1818
using System.Management.Automation;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/RestartAzureSiteRecoveryJob.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
using System;
1616
using System.Management.Automation;
1717
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
18-
using Microsoft.WindowsAzure;
1918

2019
namespace Microsoft.Azure.Commands.RecoveryServices
2120
{

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/ResumeAzureSiteRecoveryJob.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
using System;
1616
using System.Management.Automation;
1717
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
18-
using Microsoft.WindowsAzure;
1918
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2019

2120
namespace Microsoft.Azure.Commands.RecoveryServices

src/ServiceManagement/RecoveryServices/Commands.RecoveryServices/Service/StartAzureSiteRecoveryCommitFailoverJob.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
using System.Management.Automation;
1818
using System.Threading;
1919
using Microsoft.Azure.Commands.RecoveryServices.SiteRecovery;
20-
using Microsoft.WindowsAzure;
2120
using Microsoft.WindowsAzure.Management.SiteRecovery.Models;
2221

2322
namespace Microsoft.Azure.Commands.RecoveryServices

0 commit comments

Comments
 (0)