diff --git a/eng/common/pipelines/templates/steps/bypass-local-dns.yml b/eng/common/pipelines/templates/steps/bypass-local-dns.yml index 8b4887870..922f58a82 100644 --- a/eng/common/pipelines/templates/steps/bypass-local-dns.yml +++ b/eng/common/pipelines/templates/steps/bypass-local-dns.yml @@ -6,11 +6,6 @@ steps: condition: | and( succeededOrFailed(), - or( - eq(variables['OSVmImage'], 'ubuntu-18.04'), - eq(variables['OSVmImage'], 'ubuntu-20.04'), - eq(variables['OSVmImage'], 'MMSUbuntu18.04'), - eq(variables['OSVmImage'], 'MMSUbuntu20.04') - ), + contains(variables['OSVmImage'], 'ubuntu'), eq(variables['Container'], '') )