We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5baaf57 commit b0e3bdbCopy full SHA for b0e3bdb
eng/common/scripts/Verify-AgentOS.ps1
@@ -8,7 +8,7 @@ function Throw-InvalidOperatingSystem {
8
throw "Invalid operating system detected. Operating system was: $([System.Runtime.InteropServices.RuntimeInformation]::OSDescription), expected image was: $AgentImage"
9
}
10
11
-if ($IsWindows -and $AgentImage -match "windows|win|MMS2019") {
+if ($IsWindows -and $AgentImage -match "windows|win|MMS\d{4}") {
12
$osName = "Windows"
13
} elseif ($IsLinux -and $AgentImage -match "ubuntu") {
14
$osName = "Linux"
0 commit comments