diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 5ca36a07a7d397a7aa91e283aa1b76a090bcbb94..8443af300048ad9ae31ea808c28a063c9a24619d 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -24,7 +24,7 @@ jobs:
           nodeVersion: '12.x'
           pythonVersion: '3.7'
     pool:
-      vmImage: vs2017-win2016
+      vmImage: windows-2019
     steps:
       - bash: |
           set -e
@@ -41,7 +41,7 @@ jobs:
           nodeVersion: '10.x'
           pythonVersion: '3.7'
     pool:
-      vmImage: ubuntu-16.04
+      vmImage: ubuntu-18.04
     steps:
       - template: .azure/steps.yml