From 4074118c5e9752c2873ef37ea9fe7b2783feb661 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 15 Dec 2022 11:29:29 -0800 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 4514 (#32606) --- eng/common/scripts/Verify-AgentOS.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/Verify-AgentOS.ps1 b/eng/common/scripts/Verify-AgentOS.ps1 index 2a7edc4d05bbf..3839553a0ff7e 100644 --- a/eng/common/scripts/Verify-AgentOS.ps1 +++ b/eng/common/scripts/Verify-AgentOS.ps1 @@ -8,7 +8,7 @@ function Throw-InvalidOperatingSystem { throw "Invalid operating system detected. Operating system was: $([System.Runtime.InteropServices.RuntimeInformation]::OSDescription), expected image was: $AgentImage" } -if ($IsWindows -and $AgentImage -match "windows|win|MMS2019") { +if ($IsWindows -and $AgentImage -match "windows|win|MMS\d{4}") { $osName = "Windows" } elseif ($IsLinux -and $AgentImage -match "ubuntu") { $osName = "Linux"