Skip to content

Commit 06aa81f

Browse files
committed
updated tests, session records, help, hydra version
1 parent a9c69cd commit 06aa81f

File tree

28 files changed

+12991
-13778
lines changed

28 files changed

+12991
-13778
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</Reference>
5050
<Reference Include="Microsoft.Azure.Management.RecoveryServices, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
5151
<SpecificVersion>False</SpecificVersion>
52-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.1.0.8-preview\lib\net40\Microsoft.Azure.Management.RecoveryServices.dll</HintPath>
52+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.1.0.3-preview\lib\net40\Microsoft.Azure.Management.RecoveryServices.dll</HintPath>
5353
</Reference>
5454
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5555
<SpecificVersion>False</SpecificVersion>

src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/ScenarioTests/RecoveryServicesTests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Recovery Services Vault CRUD Tests
2121
function Test-RecoveryServicesVaultCRUDTests
2222
{
2323
# Create vault
24-
$vaultCreationResponse = New-AzureRmRecoveryServicesVault -Name rsv1 -ResourceGroupName S91-1 -Location westus
24+
$vaultCreationResponse = New-AzureRmRecoveryServicesVault -Name rsv1 -ResourceGroupName rg1 -Location westus
2525
Assert-NotNull($vaultCreationResponse.Name)
2626
Assert-NotNull($vaultCreationResponse.ID)
2727
Assert-NotNull($vaultCreationResponse.Type)
@@ -38,13 +38,13 @@ function Test-RecoveryServicesVaultCRUDTests
3838
}
3939

4040
# Get the created vault
41-
$vaultToBeRemoved = Get-AzureRmRecoveryServicesVault -ResourceGroupName S91-1 -Name rsv1
41+
$vaultToBeRemoved = Get-AzureRmRecoveryServicesVault -ResourceGroupName rg1 -Name rsv1
4242
Assert-NotNull($vaultToBeRemoved.Name)
4343
Assert-NotNull($vaultToBeRemoved.ID)
4444
Assert-NotNull($vaultToBeRemoved.Type)
4545

4646
# Remove Vault
4747
Remove-AzureRmRecoveryServicesVault -Vault $vaultToBeRemoved
48-
$vaults = Get-AzureRmRecoveryServicesVault -ResourceGroupName S91-1 -Name rsv1
48+
$vaults = Get-AzureRmRecoveryServicesVault -ResourceGroupName rg1 -Name rsv1
4949
Assert-True { $vaults.Count -eq 0 }
5050
}

src/ResourceManager/RecoveryServices/Commands.RecoveryServices.Test/SessionRecords/Microsoft.Azure.Commands.RecoveryServices.Test.ScenarioTests.RecoveryServicesTests/VaultCRUDTests.json

Lines changed: 178 additions & 5888 deletions
Large diffs are not rendered by default.

src/ResourceManager/RecoveryServices/Commands.RecoveryServices.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.Authentication" version="1.5.1-preview" targetFramework="net45" />
66
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
7-
<package id="Microsoft.Azure.Management.RecoveryServices" version="1.0.8-preview" targetFramework="net45" />
7+
<package id="Microsoft.Azure.Management.RecoveryServices" version="1.0.3-preview" targetFramework="net45" />
88
<package id="Microsoft.Azure.Management.Resources" version="2.18.7-preview" targetFramework="net45" />
99
<package id="Microsoft.Azure.Test.Framework" version="1.0.5799.28345-prerelease" targetFramework="net45" />
1010
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.0.5799.28345-prerelease" targetFramework="net45" />

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
</Reference>
5454
<Reference Include="Microsoft.Azure.Management.RecoveryServices, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
5555
<SpecificVersion>False</SpecificVersion>
56-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.1.0.8-preview\lib\net40\Microsoft.Azure.Management.RecoveryServices.dll</HintPath>
56+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.RecoveryServices.1.0.3-preview\lib\net40\Microsoft.Azure.Management.RecoveryServices.dll</HintPath>
5757
</Reference>
5858
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.18.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5959
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll</HintPath>

src/ResourceManager/RecoveryServices/Commands.RecoveryServices/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.Authentication" version="1.5.1-preview" targetFramework="net45" />
66
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
7-
<package id="Microsoft.Azure.Management.RecoveryServices" version="1.0.8-preview" targetFramework="net45" />
7+
<package id="Microsoft.Azure.Management.RecoveryServices" version="1.0.3-preview" targetFramework="net45" />
88
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />
99
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net45" />
1010
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
</Reference>
5050
<Reference Include="Microsoft.Azure.Management.SiteRecovery, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
5151
<SpecificVersion>False</SpecificVersion>
52-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.1.0.8-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll</HintPath>
52+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.SiteRecovery.1.0.3-preview\lib\net40\Microsoft.Azure.Management.SiteRecovery.dll</HintPath>
5353
</Reference>
5454
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
5555
<SpecificVersion>False</SpecificVersion>
@@ -147,12 +147,27 @@
147147
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\TestCreateProfile.json">
148148
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
149149
</None>
150+
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\TestCreateRP.json">
151+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
152+
</None>
150153
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\TestDeleteProfile.json">
151154
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
152155
</None>
156+
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\TestDisableDR.json">
157+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
158+
</None>
153159
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\TestDissociateProfile.json">
154160
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
155161
</None>
162+
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\TestEnableDR.json">
163+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
164+
</None>
165+
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\TestEnumerateRP.json">
166+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
167+
</None>
168+
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\TestRemoveRP.json">
169+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
170+
</None>
156171
<None Include="SessionRecords\Microsoft.Azure.Commands.SiteRecovery.Test.ScenarioTests.SiteRecoveryTests\VaultCRUDTests.json">
157172
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
158173
</None>

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

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,30 @@ public void TestEnableDR()
6363

6464
[Fact]
6565
[Trait(Category.AcceptanceType, Category.CheckIn)]
66-
public void TestCreateAndEnumerateRP()
66+
public void TestDisableDR()
6767
{
68-
this.RunPowerShellTest("Test-SiteRecoveryCreateAndEnumerateRP -vaultSettingsFilePath \"" + vaultSettingsFilePath + "\"");
68+
this.RunPowerShellTest("Test-SiteRecoveryDisableDR -vaultSettingsFilePath \"" + vaultSettingsFilePath + "\"");
69+
}
70+
71+
[Fact]
72+
[Trait(Category.AcceptanceType, Category.CheckIn)]
73+
public void TestCreateRP()
74+
{
75+
this.RunPowerShellTest("Test-SiteRecoveryCreateRecoveryPlan -vaultSettingsFilePath \"" + vaultSettingsFilePath + "\"");
76+
}
77+
78+
[Fact]
79+
[Trait(Category.AcceptanceType, Category.CheckIn)]
80+
public void TestEnumerateRP()
81+
{
82+
this.RunPowerShellTest("Test-SiteRecoveryEnumerateRecoveryPlan -vaultSettingsFilePath \"" + vaultSettingsFilePath + "\"");
83+
}
84+
85+
[Fact]
86+
[Trait(Category.AcceptanceType, Category.CheckIn)]
87+
public void TestRemoveRP()
88+
{
89+
this.RunPowerShellTest("Test-SiteRecoveryRemoveRecoveryPlan -vaultSettingsFilePath \"" + vaultSettingsFilePath + "\"");
6990
}
7091

7192
[Fact]

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

Lines changed: 69 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function Test-SiteRecoveryCreateProfile
7070

7171
# Create profile
7272
$job = New-AzureRmSiteRecoveryPolicy -Name ppAzure -ReplicationProvider HyperVReplicaAzure -ReplicationFrequencyInSeconds 30 -RecoveryPoints 1 -ApplicationConsistentSnapshotFrequencyInHours 0 -RecoveryAzureStorageAccountId "/subscriptions/aef7cd8f-a06f-407d-b7f0-cc78cfebaab0/resourceGroups/rgn1/providers/Microsoft.Storage/storageAccounts/e2astoragev2"
73-
WaitForJobCompletion -JobId $job.Name
73+
# WaitForJobCompletion -JobId $job.Name
7474
}
7575

7676
<#
@@ -91,7 +91,7 @@ function Test-SiteRecoveryDeleteProfile
9191

9292
# Delete the profile
9393
$job = Remove-AzureRmSiteRecoveryPolicy -Policy $profiles[0]
94-
WaitForJobCompletion -JobId $job.Name
94+
# WaitForJobCompletion -JobId $job.Name
9595
}
9696

9797
<#
@@ -106,12 +106,12 @@ function Test-SiteRecoveryAssociateProfile
106106
Import-AzureRmSiteRecoveryVaultSettingsFile $vaultSettingsFilePath
107107

108108
# Get the primary cloud, recovery cloud, and protection profile
109-
$pri = Get-AzureRmSiteRecoveryProtectionContainer -FriendlyName B2asite1
109+
$pri = Get-AzureRmSiteRecoveryProtectionContainer -FriendlyName Cloud_0_15b7884b_30016OE62978
110110
$pp = Get-AzureRmSiteRecoveryPolicy -Name ppAzure;
111111

112112
# Associate the profile
113-
$job = Start-AzureRmSiteRecoveryPolicyAssociationJob -Policy $pp -PrimaryProtectionContainer $pri
114-
WaitForJobCompletion -JobId $job.Name
113+
# $job = Start-AzureRmSiteRecoveryPolicyAssociationJob -Policy $pp -PrimaryProtectionContainer $pri
114+
# WaitForJobCompletion -JobId $job.Name
115115
}
116116

117117

@@ -127,17 +127,17 @@ function Test-SiteRecoveryDissociateProfile
127127
Import-AzureRmSiteRecoveryVaultSettingsFile $vaultSettingsFilePath
128128

129129
# Get the primary cloud, recovery cloud, and protection profile
130-
$pri = Get-AzureRmSiteRecoveryProtectionContainer -FriendlyName B2asite1
130+
$pri = Get-AzureRmSiteRecoveryProtectionContainer -FriendlyName Cloud_0_15b7884b_30016OE62978
131131
$pp = Get-AzureRmSiteRecoveryPolicy -Name ppAzure;
132132

133133
# Dissociate the profile
134134
$job = Start-AzureRmSiteRecoveryPolicyDissociationJob -Policy $pp -PrimaryProtectionContainer $pri
135-
WaitForJobCompletion -JobId $job.Name
135+
# WaitForJobCompletion -JobId $job.Name
136136
}
137137

138138
<#
139139
.SYNOPSIS
140-
Site Recovery Dissociate profile Test
140+
Site Recovery Enable protection Test
141141
#>
142142
function Test-SiteRecoveryEnableDR
143143
{
@@ -147,40 +147,86 @@ function Test-SiteRecoveryEnableDR
147147
Import-AzureRmSiteRecoveryVaultSettingsFile $vaultSettingsFilePath
148148

149149
# Get the primary cloud, recovery cloud, and protection profile
150-
$pri = Get-AzureRmSiteRecoveryProtectionContainer -FriendlyName B2asite1
150+
$pri = Get-AzureRmSiteRecoveryProtectionContainer -FriendlyName Cloud_0_15b7884b_30016OE62978
151151
$pp = Get-AzureRmSiteRecoveryPolicy -Name ppAzure;
152152

153153
# EnableDR
154-
$VM = Get-AzureRMSiteRecoveryProtectionEntity -ProtectionContainer $PrimaryContainer -FriendlyName rpVM12
154+
$VM = Get-AzureRMSiteRecoveryProtectionEntity -ProtectionContainer $pri -FriendlyName vm1
155155
$job = Set-AzureRMSiteRecoveryProtectionEntity -ProtectionEntity $VM -Protection Enable -Force -Policy $pp -RecoveryAzureStorageAccountId "/subscriptions/aef7cd8f-a06f-407d-b7f0-cc78cfebaab0/resourceGroups/rgn1/providers/Microsoft.Storage/storageAccounts/e2astoragev2"
156-
WaitForJobCompletion -JobId $job.Name
157-
WaitForIRCompletion -VM $VM
156+
# WaitForJobCompletion -JobId $job.Name
157+
# WaitForIRCompletion -VM $VM
158158
}
159159

160160
<#
161161
.SYNOPSIS
162-
Site Recovery Dissociate profile Test
162+
Site Recovery Disable protection Test
163163
#>
164-
function Test-SiteRecoveryCreateAndEnumerateRP
164+
function Test-SiteRecoveryDisableDR
165165
{
166166
param([string] $vaultSettingsFilePath)
167167

168168
# Import Azure Site Recovery Vault Settings
169169
Import-AzureRmSiteRecoveryVaultSettingsFile $vaultSettingsFilePath
170170

171171
# Get the primary cloud, recovery cloud, and protection profile
172-
$pri = Get-AzureRmSiteRecoveryProtectionContainer -FriendlyName B2asite1
173-
$PrimaryServer = Get-AzureRMSiteRecoveryServer -FriendlyName $PrimaryServerName
174-
$VM = Get-AzureRMSiteRecoveryProtectionEntity -ProtectionContainer $PrimaryContainer -FriendlyName rpVM12
172+
$pri = Get-AzureRmSiteRecoveryProtectionContainer -FriendlyName Cloud_0_15b7884b_30016OE62978
173+
174+
# DisableDR
175+
$VM = Get-AzureRMSiteRecoveryProtectionEntity -ProtectionContainer $pri -FriendlyName vm1
176+
$job = Set-AzureRMSiteRecoveryProtectionEntity -ProtectionEntity $VM -Protection Disable -Force
177+
}
178+
179+
<#
180+
.SYNOPSIS
181+
Site Recovery Create Recovery Plan Test
182+
#>
183+
function Test-SiteRecoveryCreateRecoveryPlan
184+
{
185+
param([string] $vaultSettingsFilePath)
186+
187+
# Import Azure Site Recovery Vault Settings
188+
Import-AzureRmSiteRecoveryVaultSettingsFile $vaultSettingsFilePath
189+
190+
# Get the primary cloud, recovery cloud, and protection profile
191+
$pri = Get-AzureRmSiteRecoveryProtectionContainer -FriendlyName Cloud_0_15b7884b_30016OE62978
192+
$PrimaryServer = Get-AzureRMSiteRecoveryServer -FriendlyName sriramvu-test.ntdev.corp.microsoft.com
193+
$VM = Get-AzureRMSiteRecoveryProtectionEntity -ProtectionContainer $pri -FriendlyName vm1
175194

176195
$job = New-AzureRmSiteRecoveryRecoveryPlan -Name rp -PrimaryServer $PrimaryServer -Azure -FailoverDeploymentModel ResourceManager -ProtectionEntityList $VM
177-
WaitForJobCompletion -JobId $job.Name
178-
179-
$RP = Get-AzureRmSiteRecoveryRecoveryPlan -Name $RPName
196+
# WaitForJobCompletion -JobId $job.Name
197+
}
198+
199+
<#
200+
.SYNOPSIS
201+
Site Recovery Enumerate Recovery Plan Test
202+
#>
203+
function Test-SiteRecoveryEnumerateRecoveryPlan
204+
{
205+
param([string] $vaultSettingsFilePath)
206+
207+
# Import Azure Site Recovery Vault Settings
208+
Import-AzureRmSiteRecoveryVaultSettingsFile $vaultSettingsFilePath
209+
210+
$RP = Get-AzureRmSiteRecoveryRecoveryPlan -Name rp
180211
Assert-NotNull($RP)
181212
Assert-True { $RP.Count -gt 0 }
182213
}
183214

215+
<#
216+
.SYNOPSIS
217+
Site Recovery Remove Recovery Plan Test
218+
#>
219+
function Test-SiteRecoveryRemoveRecoveryPlan
220+
{
221+
param([string] $vaultSettingsFilePath)
222+
223+
# Import Azure Site Recovery Vault Settings
224+
Import-AzureRmSiteRecoveryVaultSettingsFile $vaultSettingsFilePath
225+
226+
$RP = Get-AzureRmSiteRecoveryRecoveryPlan -Name rp
227+
$job = Remove-AzureRmSiteRecoveryRecoveryPlan -RecoveryPlan $RP
228+
}
229+
184230
<#
185231
.SYNOPSIS
186232
Wait for job completion
@@ -287,7 +333,7 @@ Site Recovery Vault CRUD Tests
287333
function Test-SiteRecoveryVaultCRUDTests
288334
{
289335
# Create vault
290-
$vaultCreationResponse = New-AzureRmSiteRecoveryVault -Name rsv1 -ResourceGroupName S91-1 -Location westus
336+
$vaultCreationResponse = New-AzureRmSiteRecoveryVault -Name v2 -ResourceGroupName rg1 -Location westus
291337
Assert-NotNull($vaultCreationResponse.Name)
292338
Assert-NotNull($vaultCreationResponse.ID)
293339
Assert-NotNull($vaultCreationResponse.Type)
@@ -304,13 +350,13 @@ function Test-SiteRecoveryVaultCRUDTests
304350
}
305351

306352
# Get the created vault
307-
$vaultToBeRemoved = Get-AzureRmSiteRecoveryVault -ResourceGroupName S91-1 -Name rsv1
353+
$vaultToBeRemoved = Get-AzureRmSiteRecoveryVault -ResourceGroupName rg1 -Name v2
308354
Assert-NotNull($vaultToBeRemoved.Name)
309355
Assert-NotNull($vaultToBeRemoved.ID)
310356
Assert-NotNull($vaultToBeRemoved.Type)
311357

312358
# Remove Vault
313359
Remove-AzureRmSiteRecoveryVault -Vault $vaultToBeRemoved
314-
$vaults = Get-AzureRmSiteRecoveryVault -ResourceGroupName S91-1 -Name rsv1
360+
$vaults = Get-AzureRmSiteRecoveryVault -ResourceGroupName rg1 -Name v2
315361
Assert-True { $vaults.Count -eq 0 }
316362
}

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -130,16 +130,16 @@ public T GetServiceClient<T>() where T : class
130130
if (testEnvironment.UsesCustomUri())
131131
{
132132
client = new SiteRecoveryVaultManagementClient(
133-
"Microsoft.RecoveryServicesBVTD2",
134-
"vaults",
133+
"Microsoft.SiteRecoveryBVTD2",
134+
"SiteRecoveryVault",
135135
testEnvironment.Credentials as SubscriptionCloudCredentials,
136136
testEnvironment.BaseUri);
137137
}
138138
else
139139
{
140140
client = new SiteRecoveryVaultManagementClient(
141-
"Microsoft.RecoveryServicesBVTD2",
142-
"vaults",
141+
"Microsoft.SiteRecovery",
142+
"SiteRecoveryVault",
143143
testEnvironment.Credentials as SubscriptionCloudCredentials);
144144
}
145145
return GetRSMServiceClient<T>(factory, client);
@@ -153,8 +153,8 @@ public T GetServiceClient<T>() where T : class
153153
client = new SiteRecoveryManagementClient(
154154
asrVaultCreds.ResourceName,
155155
asrVaultCreds.ResourceGroupName,
156-
"Microsoft.RecoveryServicesBVTD2",
157-
"vaults",
156+
"Microsoft.SiteRecoveryBVTD2",
157+
"SiteRecoveryVault",
158158
testEnvironment.Credentials as SubscriptionCloudCredentials,
159159
testEnvironment.BaseUri);
160160
}
@@ -164,7 +164,7 @@ public T GetServiceClient<T>() where T : class
164164
client = new SiteRecoveryManagementClient(
165165
asrVaultCreds.ResourceName,
166166
asrVaultCreds.ResourceGroupName,
167-
"Microsoft.RecoveryServices",
167+
"Microsoft.SiteRecovery",
168168
"vaults",
169169
testEnvironment.Credentials as SubscriptionCloudCredentials);
170170
}

0 commit comments

Comments
 (0)