diff --git a/eng/common/pipelines/templates/steps/bypass-local-dns.yml b/eng/common/pipelines/templates/steps/bypass-local-dns.yml new file mode 100644 index 000000000000..54f49c33714b --- /dev/null +++ b/eng/common/pipelines/templates/steps/bypass-local-dns.yml @@ -0,0 +1,6 @@ + +steps: + # https://github.com/actions/virtual-environments/issues/798 + - script: sudo ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf + displayName: Bypass local DNS server to workaround issue resolving cognitiveservices names + condition: and(succeededOrFailed(), eq(variables['OSVmImage'], 'ubuntu-18.04')) \ No newline at end of file