Skip to content

Commit 38d54f3

Browse files
[Azure Site Recovery] Commit contains:
1) Aligning PowerShell to service object model. 2) Introducing deprecation warning for cmdlets and parameter sets to be deprecated in future. 2) HUB changes. 3) Bug Fixes.
1 parent 5b06895 commit 38d54f3

File tree

77 files changed

+15360
-6973
lines changed

Some content is hidden

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

77 files changed

+15360
-6973
lines changed

src/ResourceManager/RecoveryServices/AzureRM.RecoveryServices.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@{
1010

1111
# Version number of this module.
12-
ModuleVersion = '2.0.1'
12+
ModuleVersion = '2.0.2'
1313

1414
# ID used to uniquely identify this module
1515
GUID = '4AA53B7E-FCFE-4E22-979C-9A4E6380DE58'

src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/Commands.RecoveryServices.Test.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
<Reference Include="Microsoft.Azure.Common.NetFramework">
4545
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
4646
</Reference>
47-
<Reference Include="Microsoft.Azure.Management.RecoveryServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
47+
<Reference Include="Microsoft.Azure.Management.RecoveryServices, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
4848
<SpecificVersion>False</SpecificVersion>
49-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.3.0.0-preview\lib\net40\Microsoft.Azure.Management.RecoveryServices.dll</HintPath>
49+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.3.0.1-preview\lib\net40\Microsoft.Azure.Management.RecoveryServices.dll</HintPath>
5050
</Reference>
5151
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5252
<SpecificVersion>False</SpecificVersion>
@@ -173,4 +173,4 @@
173173
</ItemGroup>
174174
<ItemGroup />
175175
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
176-
</Project>
176+
</Project>

src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package id="Hyak.Common" version="1.0.3" targetFramework="net45" />
44
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
55
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
6-
<package id="Microsoft.Azure.Management.RecoveryServices" version="2.0.0-preview" targetFramework="net45" />
6+
<package id="Microsoft.Azure.Management.RecoveryServices" version="3.0.1-preview" targetFramework="net45" />
77
<package id="Microsoft.Azure.Management.Resources" version="2.18.11-preview" targetFramework="net45" />
88
<package id="Microsoft.Azure.Test.Framework" version="1.0.6052.28118-prerelease" targetFramework="net45" />
99
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.6.7-preview" targetFramework="net45" />

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/Commands.RecoveryServices.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
<SpecificVersion>False</SpecificVersion>
4848
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
4949
</Reference>
50-
<Reference Include="Microsoft.Azure.Management.RecoveryServices, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
50+
<Reference Include="Microsoft.Azure.Management.RecoveryServices, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5151
<SpecificVersion>False</SpecificVersion>
52-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.3.0.0-preview\lib\net40\Microsoft.Azure.Management.RecoveryServices.dll</HintPath>
52+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.3.0.1-preview\lib\net40\Microsoft.Azure.Management.RecoveryServices.dll</HintPath>
5353
</Reference>
5454
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.28.1.741, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5555
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.28.1\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll</HintPath>
@@ -168,4 +168,4 @@
168168
</Content>
169169
</ItemGroup>
170170
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
171-
</Project>
171+
</Project>

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<package id="Hyak.Common" version="1.0.3" targetFramework="net45" />
44
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
55
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
6-
<package id="Microsoft.Azure.Management.RecoveryServices" version="3.0.0-preview" targetFramework="net45" />
6+
<package id="Microsoft.Azure.Management.RecoveryServices" version="3.0.1-preview" targetFramework="net45" />
77
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />
88
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net45" />
99
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />

src/ResourceManager/SiteRecovery/AzureRM.SiteRecovery.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
@{
1010

1111
# Version number of this module.
12-
ModuleVersion = '2.0.1'
12+
ModuleVersion = '3.0.0'
1313

1414
# ID used to uniquely identify this module
1515
GUID = 'd1de7560-48e1-48f3-bc8c-4eea3af2bbe1'

src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/Commands.SiteRecovery.Test.csproj

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
<Reference Include="Microsoft.Azure.Common.NetFramework">
4545
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
4646
</Reference>
47-
<Reference Include="Microsoft.Azure.Management.SiteRecovery, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
48-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.1.0.3-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll</HintPath>
47+
<Reference Include="Microsoft.Azure.Management.SiteRecovery, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
48+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.2.0.0-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll</HintPath>
4949
<Private>True</Private>
5050
</Reference>
5151
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
@@ -144,6 +144,9 @@
144144
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\EnumerationTests.json">
145145
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
146146
</None>
147+
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\FabricTests.json">
148+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
149+
</None>
147150
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\TestAssociateProfile.json">
148151
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
149152
</None>
@@ -201,4 +204,4 @@
201204
<Service Include="{82A7F48D-3B50-4B1E-B82E-3ADA8210C358}" />
202205
</ItemGroup>
203206
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
204-
</Project>
207+
</Project>

src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,12 @@ public void VaultCRUDTests()
102102
{
103103
this.RunPowerShellTest("Test-SiteRecoveryVaultCRUDTests");
104104
}
105+
106+
[Fact]
107+
[Trait(Category.AcceptanceType, Category.CheckIn)]
108+
public void FabricTests()
109+
{
110+
this.RunPowerShellTest("Test-SiteRecoveryFabricTest");
111+
}
105112
}
106113
}

src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTests.ps1

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,4 +359,47 @@ function Test-SiteRecoveryVaultCRUDTests
359359
Remove-AzureRmSiteRecoveryVault -Vault $vaultToBeRemoved
360360
$vaults = Get-AzureRmSiteRecoveryVault -ResourceGroupName rg1 -Name v2
361361
Assert-True { $vaults.Count -eq 0 }
362-
}
362+
}
363+
364+
365+
<#
366+
.SYNOPSIS
367+
Site Recovery Fabric Tests New model
368+
#>
369+
function Test-SiteRecoveryFabricTest
370+
{
371+
# Enumerate vaults and set Azure Site Recovery Vault Settings
372+
$vault = Get-AzureRmSiteRecoveryVault -ResourceGroupName ReleaseResourceGroup -Name ReleaseVault
373+
Assert-NotNull($vault)
374+
Assert-True { $vault.Count -gt 0 }
375+
Assert-NotNull($vault.Name)
376+
Assert-NotNull($vault.ID)
377+
Set-AzureRmSiteRecoveryVaultSettings -ASRVault $vault
378+
379+
# Create Fabric
380+
$job = New-AzureRmSiteRecoveryFabric -Name ReleaseFabric -Type HyperVSite
381+
Assert-NotNull($job)
382+
383+
# Enumerate Fabrics
384+
$fabrics = Get-AzureRmSiteRecoveryFabric
385+
Assert-True { $fabrics.Count -gt 0 }
386+
Assert-NotNull($fabrics)
387+
foreach($fabric in $fabrics)
388+
{
389+
Assert-NotNull($fabrics.Name)
390+
Assert-NotNull($fabrics.ID)
391+
}
392+
393+
# Enumerate specific Fabric
394+
$fabric = Get-AzureRmSiteRecoveryFabric -Name ReleaseFabric
395+
Assert-NotNull($fabric)
396+
Assert-NotNull($fabrics.Name)
397+
Assert-NotNull($fabrics.ID)
398+
399+
# Remove specific fabric
400+
$job = Remove-AzureRmSiteRecoveryFabric -Fabric $fabric
401+
Assert-NotNull($job)
402+
WaitForJobCompletion -JobId $job.Name
403+
$fabric = Get-AzureRmSiteRecoveryFabric | Where-Object {$_.Name -eq "ReleaseFabric"}
404+
Assert-Null($fabric)
405+
}

src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/ScenarioTests/SiteRecoveryTestsBase.cs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ namespace Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests
3535
{
3636
public abstract class SiteRecoveryTestsBase : RMTestBase
3737
{
38-
private CSMTestEnvironmentFactory armTestFactory;
3938
private EnvironmentSetupHelper helper;
4039
protected string vaultSettingsFilePath;
4140
private ASRVaultCreds asrVaultCreds = null;
@@ -105,8 +104,6 @@ protected void RunPowerShellTest(params string[] scripts)
105104
{
106105
context.Start(TestUtilities.GetCallingClass(2), TestUtilities.GetCurrentMethodName(2));
107106

108-
this.armTestFactory = new CSMTestEnvironmentFactory();
109-
110107
SetupManagementClients();
111108

112109
helper.SetupEnvironment(AzureModule.AzureResourceManager);

src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/SessionRecords/Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests/FabricTests.json

Lines changed: 858 additions & 0 deletions
Large diffs are not rendered by default.

src/ResourceManager/SiteRecovery/Commands.SiteRecovery.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
55
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
66
<package id="Microsoft.Azure.Management.Resources" version="2.20.0-preview" targetFramework="net45" />
7-
<package id="Microsoft.Azure.Management.SiteRecovery" version="1.0.3-preview" targetFramework="net45" />
7+
<package id="Microsoft.Azure.Management.SiteRecovery" version="2.0.0-preview" targetFramework="net45" />
88
<package id="Microsoft.Azure.Test.Framework" version="1.0.6052.28118-prerelease" targetFramework="net45" />
99
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.6.7-preview" targetFramework="net45" />
1010
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Commands.SiteRecovery.csproj

Lines changed: 38 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
<SpecificVersion>False</SpecificVersion>
4848
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
4949
</Reference>
50-
<Reference Include="Microsoft.Azure.Management.SiteRecovery, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
51-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.1.0.3-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll</HintPath>
52-
<Private>True</Private>
50+
<Reference Include="Microsoft.Azure.Management.SiteRecovery, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
51+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.2.0.0-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll</HintPath>
52+
<Private>True</Private>
5353
</Reference>
5454
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.28.1.741, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5555
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.28.1\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll</HintPath>
@@ -117,6 +117,7 @@
117117
<Compile Include="Common\PSSiteRecoveryJobClient.cs" />
118118
<Compile Include="Common\PSSiteRecoveryProtectableItemsClient.cs" />
119119
<Compile Include="Common\PSSiteRecoveryRecoveryPlanClient.cs" />
120+
<Compile Include="Common\PSSiteRecoveryRecoveryPointClient.cs" />
120121
<Compile Include="Common\PSSiteRecoveryReplicationProtectedItemsClient.cs" />
121122
<Compile Include="Common\PSSiteRecoveryProtectionContainerClient.cs" />
122123
<Compile Include="Common\PSSiteRecoveryPolicyClient.cs" />
@@ -127,21 +128,44 @@
127128
<Compile Include="Common\PSSiteRecoveryVaultExtendedInfoClient.cs" />
128129
<Compile Include="Common\PSSiteRecoveryVMClient.cs" />
129130
<Compile Include="Common\SiteRecoveryCmdletBase.cs" />
131+
<Compile Include="Fabrics\GetAzureRmSiteRecoveryFabric.cs" />
132+
<Compile Include="Fabrics\NewAzureRmSiteRecoveryFabric.cs" />
133+
<Compile Include="Fabrics\RemoveAzureRmSiteRecoveryFabric.cs" />
130134
<Compile Include="Job\StopAzureSiteRecoveryJob.cs" />
131135
<Compile Include="Models\PSConstants.cs" />
132136
<Compile Include="Models\PSNetworkObjects.cs" />
133137
<Compile Include="Models\PSRecoveryPlanObjects.cs" />
134-
<Compile Include="Network\GetAzureRMSiteRecoveryNetwork.cs" />
135-
<Compile Include="Network\GetAzureRMSiteRecoveryNetworkMapping.cs" />
138+
<Compile Include="Network\GetAzureRmSiteRecoveryNetworkMapping.cs" />
139+
<Compile Include="Network\GetAzureRmSiteRecoveryNetwork.cs" />
140+
<Compile Include="Policy\UpdateAzureRmSiteRecoveryPolicy.cs" />
141+
<Compile Include="ProtectableItem\GetAzureRmSiteRecoveryProtectableItem.cs" />
142+
<Compile Include="ProtectionContainerMapping\GetAzureRmSiteRecoveryProtectionContainerMapping.cs" />
143+
<Compile Include="ProtectionContainerMapping\NewAzureRmSiteRecoveryProtectionContainerMapping.cs" />
144+
<Compile Include="ProtectionContainerMapping\RemoveAzureRmSiteRecoveryProtectionContainerMapping.cs" />
145+
<Compile Include="ProtectionContainer\GetAzureRmSiteRecoveryProtectionContainer.cs" />
146+
<Compile Include="RecoveryPlan\EditAzureRmSiteRecoveryRecoveryPlan.cs" />
147+
<Compile Include="RecoveryPlan\NewAzureRmSiteRecoveryRecoveryPlan.cs" />
148+
<Compile Include="RecoveryPoint\GetAzureRmSiteRecoveryRecoveryPoint.cs" />
149+
<Compile Include="ReplicationProtectedItem\GetAzureRmSiteRecoveryReplicationProtectedItem.cs" />
150+
<Compile Include="ReplicationProtectedItem\NewAzureRmSiteRecoveryReplicationProtectedItem.cs" />
151+
<Compile Include="ReplicationProtectedItem\RemoveAzureRmSiteRecoveryReplicationProtectedItem.cs" />
152+
<Compile Include="ReplicationProtectedItem\SetAzureRmSiteRecoveryReplicationProtectedItem.cs" />
153+
<Compile Include="ReplicationProtectedItem\StartAzureRmSiteRecoveryApplyRecoveryPoint.cs" />
154+
<Compile Include="ReplicationProtectedItem\StartAzureRmSiteRecoveryCommitFailoverJob.cs" />
155+
<Compile Include="ReplicationProtectedItem\StartAzureRmSiteRecoveryPlannedFailoverJob.cs" />
156+
<Compile Include="ReplicationProtectedItem\StartAzureRmSiteRecoveryTestFailoverJob.cs" />
157+
<Compile Include="ReplicationProtectedItem\StartAzureRmSiteRecoveryUnPlannedFailover.cs" />
158+
<Compile Include="ReplicationProtectedItem\UpdateAzureRmSiteRecoveryProtectionDirection.cs" />
136159
<Compile Include="Server\UpdateAzureSiteRecoveryServer.cs" />
137160
<Compile Include="Network\NewAzureRMSiteRecoveryNetworkMapping.cs" />
138161
<Compile Include="Network\RemoveAzureRMSiteRecoveryNetworkMapping.cs" />
139-
<Compile Include="RecoveryPlan\GetAzureSiteRecoveryRecoveryPlan.cs" />
140-
<Compile Include="RecoveryPlan\NewAzureSiteRecoveryRecoveryPlan.cs" />
141-
<Compile Include="RecoveryPlan\RemoveAzureSiteRecoveryRecoveryPlan.cs" />
142-
<Compile Include="RecoveryPlan\EditAzureSiteRecoveryRecoveryPlan.cs" />
143-
<Compile Include="RecoveryPlan\UpdateAzureSiteRecoveryRecoveryPlan.cs" />
162+
<Compile Include="RecoveryPlan\GetAzureRmSiteRecoveryRecoveryPlan.cs" />
163+
<Compile Include="RecoveryPlan\RemoveAzureRmSiteRecoveryRecoveryPlan.cs" />
164+
<Compile Include="RecoveryPlan\UpdateAzureRmSiteRecoveryRecoveryPlan.cs" />
144165
<Compile Include="Server\RemoveAzureSiteRecoveryServer.cs" />
166+
<Compile Include="RecoveryServicesProvider\GetAzureRmSiteRecoveryServicesProvider.cs" />
167+
<Compile Include="RecoveryServicesProvider\RefreshAzureRmSiteRecoveryServicesProvider.cs" />
168+
<Compile Include="RecoveryServicesProvider\RemoveAzureRmSiteRecoveryServicesProvider.cs" />
145169
<Compile Include="Site\GetAzureSiteRecoverySite.cs" />
146170
<Compile Include="Site\NewAzureSiteRecoverySite.cs" />
147171
<Compile Include="Site\RemoveAzureSiteRecoverySite.cs" />
@@ -157,23 +181,17 @@
157181
<AutoGen>True</AutoGen>
158182
<DesignTime>True</DesignTime>
159183
</Compile>
160-
<Compile Include="ProtectionContainer\GetAzureSiteRecoveryProtectionContainer.cs" />
161184
<Compile Include="ProtectionEntity\GetAzureSiteRecoveryProtectionEntity.cs" />
162185
<Compile Include="ProtectionEntity\SetAzureSiteRecoveryProtectionEntity.cs" />
163-
<Compile Include="ProtectionEntity\StartAzureSiteRecoveryCommitFailoverJob.cs" />
164-
<Compile Include="ProtectionEntity\StartAzureSiteRecoveryPlannedFailoverJob.cs" />
165-
<Compile Include="ProtectionEntity\StartAzureSiteRecoveryTestFailoverJob.cs" />
166-
<Compile Include="ProtectionEntity\StartAzureSiteRecoveryUnPlannedFailoverJob.cs" />
167-
<Compile Include="ProtectionEntity\UpdateAzureSiteRecoveryProtectionDirection.cs" />
168186
<Compile Include="Policy\RemoveAzureSiteRecoveryPolicy.cs" />
169187
<Compile Include="Policy\NewAzureSiteRecoveryPolicy.cs" />
170188
<Compile Include="Policy\GetAzureSiteRecoveryPolicy.cs" />
171189
<Compile Include="Policy\StartAzureSiteRecoveryPolicyAssociationJob.cs" />
172190
<Compile Include="Policy\StartAzureSiteRecoveryPolicyDissociationJob.cs" />
173191
<Compile Include="Server\GetAzureSiteRecoveryServer.cs" />
174-
<Compile Include="Storage\Classification\GetAzureSiteRecoveryStorageClassification.cs" />
175-
<Compile Include="Storage\Classification\GetAzureSiteRecoveryStorageClassificationMapping.cs" />
176-
<Compile Include="Storage\Classification\NewAzureSiteRecoveryStorageClassificationMapping.cs" />
192+
<Compile Include="Storage\Classification\GetAzureRmSiteRecoveryStorageClassification.cs" />
193+
<Compile Include="Storage\Classification\GetAzureRmSiteRecoveryStorageClassificationMapping.cs" />
194+
<Compile Include="Storage\Classification\NewAzureRmSiteRecoveryStorageClassificationMapping.cs" />
177195
<Compile Include="Storage\Classification\RemoveAzureSiteRecoveryStorageClassificationMapping.cs" />
178196
<Compile Include="Utilities\CertUtils.cs" />
179197
<Compile Include="Utilities\Utilities.cs" />
@@ -226,4 +244,4 @@
226244
</ProjectReference>
227245
</ItemGroup>
228246
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
229-
</Project>
247+
</Project>

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryClient.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,6 @@ public CustomRequestHeaders GetRequestHeaders(bool shouldSignRequest = true)
312312
/// <returns>Site Recovery Management client</returns>
313313
private SiteRecoveryManagementClient GetSiteRecoveryClient()
314314
{
315-
this.ValidateVaultSettings(
316-
asrVaultCreds.ResourceName,
317-
asrVaultCreds.ResourceGroupName);
318-
319315
SiteRecoveryManagementClient siteRecoveryClient =
320316
AzureSession.ClientFactory.CreateCustomClient<SiteRecoveryManagementClient>(
321317
asrVaultCreds.ResourceName,

src/ResourceManager/SiteRecovery/Commands.SiteRecovery/Common/PSSiteRecoveryFabricClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public LongRunningOperationResponse CreateAzureSiteRecoveryFabric(string fabricN
5656

5757
FabricCreationInputProperties fabricCreationInputProperties = new FabricCreationInputProperties()
5858
{
59-
FabricType = fabricType,
59+
CustomDetails = new FabricSpecificCreationSettings()
6060
};
6161

6262
FabricCreationInput fabricCreationInput = new FabricCreationInput()
@@ -82,7 +82,7 @@ public LongRunningOperationResponse DeleteAzureSiteRecoveryFabric(string fabricN
8282
/// <summary>
8383
/// Purge Azure Site Recovery Fabric.
8484
/// </summary>
85-
/// <param name="PurgeAzureSiteRecoveryFabric">Policy Input</param>
85+
/// <param name="fabricName">Fabric name</param>
8686
/// <returns>Long operation response</returns>
8787
public LongRunningOperationResponse PurgeAzureSiteRecoveryFabric(string fabricName)
8888
{

0 commit comments

Comments
 (0)