Skip to content

Commit 10a03f7

Browse files
authored
Merge pull request Azure#22419 from Azure/lnx/release-revert
revert breaking change commit from release branch
2 parents 327d097 + 12d693c commit 10a03f7

File tree

18 files changed

+12
-1768
lines changed

18 files changed

+12
-1768
lines changed

src/Compute/Compute.Test/Compute.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Graph.RBAC" Version="3.4.0-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="61.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Compute" Version="60.0.0" />
1616
<PackageReference Include="Microsoft.Azure.Management.KeyVault" Version="4.0.0-preview.1" />
1717
</ItemGroup>
1818

src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,5 @@ public void TestDedicatedHostRestart()
4444
{
4545
TestRunner.RunTestScript("Test-DedicatedHostRestart");
4646
}
47-
48-
[Fact]
49-
[Trait(Category.AcceptanceType, Category.CheckIn)]
50-
public void TestDedicatedHostUpdateAndSize()
51-
{
52-
TestRunner.RunTestScript("Test-DedicatedHostUpdateAndSize");
53-
}
5447
}
5548
}

src/Compute/Compute.Test/ScenarioTests/DedicatedHostTests.ps1

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -288,48 +288,4 @@ function Test-DedicatedHostRestart
288288
# Cleanup
289289
Clean-ResourceGroup $rgname
290290
}
291-
}
292-
293-
294-
<#
295-
.SYNOPSIS
296-
Test Restart dedicated host Update and Size.
297-
#>
298-
function Test-DedicatedHostUpdateAndSize
299-
{
300-
# Setup
301-
$rgname = Get-ComputeTestResourceName
302-
303-
try
304-
{
305-
# Common
306-
# [string]$loc = Get-Location "Microsoft.Resources" "resourceGroups" "East US 2 EUAP";
307-
# $loc = $loc.Replace(' ', '');
308-
$loc = "eastus2euap";
309-
310-
New-AzResourceGroup -Name $rgname -Location $loc -Force;
311-
312-
$hostGroupName = $rgname + 'hostgroup';
313-
New-AzHostGroup -ResourceGroupName $rgname -Name $hostGroupName -Location $loc -PlatformFaultDomain 1 -Zone "2" -Tag @{key1 = "val1"};
314-
315-
$hostGroup = Get-AzHostGroup -ResourceGroupName $rgname -Name $hostGroupName;
316-
$hostName = $rgname + 'host';
317-
New-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName -Location $loc -Sku "ESv3-Type1" -Tag @{key1 = "val2"};
318-
319-
$dedicatedHost = Get-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName;
320-
321-
# Restart the dedicated host
322-
$hostSize = Get-AzHostSize -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName;
323-
Assert-NotNull $hostSize;
324-
325-
# Update DH
326-
$dHUpdate = Update-AzHost -ResourceGroupName $rgname -HostGroupName $hostGroupName -Name $hostName -AutoReplaceOnFailure $false;
327-
Assert-AreEqual $dHUpdate.AutoReplaceOnFailure $False ;
328-
329-
}
330-
finally
331-
{
332-
# Cleanup
333-
Clean-ResourceGroup $rgname
334-
}
335291
}

0 commit comments

Comments
 (0)