mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
[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:
@@ -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"
|
||||
Reference in New Issue
Block a user