
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(),
          or(contains(variables['OSVmImage'], 'ubuntu'),contains(variables['OSVmImage'], 'linux')),
          eq(variables['Container'], '')
        )
