[windows] Remove Hyper-V installation and switch VM size to standard d8s v4 (#2525)

* change vm spec to Standard_D8s_v4 for win images

* Remove Hyper-V feature
This commit is contained in:
Mikhail Timofeev
2021-01-29 18:16:05 +03:00
committed by GitHub
parent 5b5da5ce02
commit b386372a86
3 changed files with 2 additions and 10 deletions

View File

@@ -8,12 +8,4 @@
Write-Host "Install Containers feature"
Install-WindowsFeature -Name Containers
$cpu = (Get-CimInstance -ClassName Win32_Processor)[0]
if ($cpu.VirtualizationFirmwareEnabled -and $cpu.SecondLevelAddressTranslationExtensions) {
Write-Host "Install Hyper-V feature"
Install-WindowsFeature -Name Hyper-V -IncludeManagementTools
} else {
Write-Host "Skipping installation of Hyper-V feature"
}
Invoke-PesterTests -TestFile "WindowsFeatures" -TestName "ContainersFeature"