From 1007c9c5730c9e887a581ab8dcbe4a55da5bd6d2 Mon Sep 17 00:00:00 2001 From: Konrad Jamrozik Date: Mon, 19 Dec 2022 20:45:27 -0800 Subject: [PATCH] Migrate to 1ES-hosted Ubuntu 22.04 in many places --- .azure-pipelines/warden.yml | 6 +- .../jobs/archetype-sdk-tests-generate.yml | 4 +- eng/common/pipelines/templates/jobs/perf.yml | 4 +- .../templates/jobs/prepare-pipelines.yml | 4 +- eng/containers/ci.yml | 12 +- eng/pipelines/apiview-review-gen-cadl.yml | 152 +++++++++--------- .../apiview-review-gen-javascript.yml | 4 +- eng/pipelines/apiview-review-gen-python.yml | 4 +- eng/pipelines/eng-common-sync.yml | 4 +- eng/pipelines/githubio-linkcheck.yml | 4 +- eng/pipelines/live-test-cleanup.yml | 4 +- eng/pipelines/merge-docs-main-to-live.yml | 4 +- eng/pipelines/mirror-pypi-to-dev-feed.yml | 4 +- eng/pipelines/mirror-repos.yml | 4 +- eng/pipelines/notifications.yml | 4 +- eng/pipelines/pipeline-generation-single.yml | 4 +- eng/pipelines/pipeline-generation.yml | 4 +- eng/pipelines/pipeline-owners-extraction.yml | 4 +- eng/pipelines/publish-docker-image.yml | 8 +- .../jobs/stress-cluster-provision.yml | 4 +- .../templates/jobs/stress-test-release.yml | 4 +- .../archetype-sdk-tool-azure-function.yml | 10 +- .../archetype-sdk-tool-azure-webapp.yml | 12 +- .../stages/archetype-sdk-tool-dotnet.yml | 4 +- .../stages/archetype-sdk-tool-pwsh.yml | 4 +- .../stages/archetype-sdk-tool-python.yml | 12 +- eng/pipelines/tools-repo-versioning.yml | 4 +- .../codesnippet-maven-plugin/ci.yml | 2 +- scripts/python/util/install_python_version.py | 2 +- tools/apiview/emitters/cadl-apiview/ci.yml | 8 +- tools/apiview/parsers/js-api-parser/ci.yml | 8 +- tools/oav-traffic-converter/ci.yml | 8 +- tools/perf-automation/tests.yml | 8 +- tools/sdk-generation-pipeline/ci.yml | 4 +- .../documents/task-engine/README.md | 2 +- .../sdk-generation-pipeline.yml | 4 +- tools/stress-cluster/chaos/README.md | 4 +- tools/stress-cluster/ci.yml | 4 +- tools/stress-cluster/cluster/README.md | 2 +- tools/test-proxy/ci.yml | 8 +- tools/test-proxy/tests.yml | 10 +- 41 files changed, 185 insertions(+), 181 deletions(-) diff --git a/.azure-pipelines/warden.yml b/.azure-pipelines/warden.yml index faca30184c8..a170bfecb18 100644 --- a/.azure-pipelines/warden.yml +++ b/.azure-pipelines/warden.yml @@ -27,7 +27,8 @@ jobs: - job: 'Build' pool: - vmImage: 'ubuntu-20.04' + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - task: UsePythonVersion@0 @@ -75,7 +76,8 @@ jobs: dependsOn: 'Build' pool: - vmImage: 'ubuntu-20.04' + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: diff --git a/eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml b/eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml index 41160a7b38f..5c24c5d0d86 100644 --- a/eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml +++ b/eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml @@ -27,10 +27,10 @@ parameters: default: [] - name: Pool type: string - default: azsdk-pool-mms-ubuntu-2004-general + default: azsdk-pool-mms-ubuntu-2204-general - name: OsVmImage type: string - default: MMSUbuntu20.04 + default: MMSUbuntu22.04 # This parameter is only necessary if there are multiple invocations of this template within the SAME STAGE. # When that occurs, provide a name other than the default value. - name: GenerateJobName diff --git a/eng/common/pipelines/templates/jobs/perf.yml b/eng/common/pipelines/templates/jobs/perf.yml index b19bd5c88bd..bc8b6b51bb7 100644 --- a/eng/common/pipelines/templates/jobs/perf.yml +++ b/eng/common/pipelines/templates/jobs/perf.yml @@ -4,10 +4,10 @@ parameters: default: 'Perf' - name: LinuxPool type: string - default: 'azsdk-pool-mms-ubuntu-2004-perf' + default: azsdk-pool-mms-ubuntu-2204-perf - name: LinuxVmImage type: string - default: 'MMSUbuntu20.04' + default: MMSUbuntu22.04 - name: WindowsPool type: string default: 'azsdk-pool-mms-win-2019-perf' diff --git a/eng/common/pipelines/templates/jobs/prepare-pipelines.yml b/eng/common/pipelines/templates/jobs/prepare-pipelines.yml index d9f1b35478b..3bdd537ed7e 100644 --- a/eng/common/pipelines/templates/jobs/prepare-pipelines.yml +++ b/eng/common/pipelines/templates/jobs/prepare-pipelines.yml @@ -20,8 +20,8 @@ parameters: jobs: - job: PreparePipelines pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - template: /eng/common/pipelines/templates/steps/install-pipeline-generation.yml - template: /eng/common/pipelines/templates/steps/set-default-branch.yml diff --git a/eng/containers/ci.yml b/eng/containers/ci.yml index 692eaa7ad93..0180921a9f1 100644 --- a/eng/containers/ci.yml +++ b/eng/containers/ci.yml @@ -3,22 +3,22 @@ parameters: type: object default: - name: mock_attestation - pool: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + pool: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 dockerRepo: 'keyvault-mock-attestation' dockerFile: 'tools/keyvault-mock-attestation/Dockerfile' stableTags: - 'latest' - name: stress_watcher - pool: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + pool: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 dockerRepo: 'stress/watcher' dockerFile: 'tools/stress-cluster/services/Stress.Watcher/Dockerfile' stableTags: - 'latest' - name: stress_deploy_test_resources - pool: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + pool: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 dockerRepo: 'stress/deploy-test-resources' prepareScript: tools/stress-cluster/cluster/kubernetes/stress-test-addons/images/test-resource-deployer/prepare.ps1 dockerFile: 'tools/stress-cluster/cluster/kubernetes/stress-test-addons/images/test-resource-deployer/Dockerfile' diff --git a/eng/pipelines/apiview-review-gen-cadl.yml b/eng/pipelines/apiview-review-gen-cadl.yml index 720784feaef..d50d86878c3 100644 --- a/eng/pipelines/apiview-review-gen-cadl.yml +++ b/eng/pipelines/apiview-review-gen-cadl.yml @@ -1,76 +1,76 @@ -pr: none - -trigger: none - -parameters: - - name: Reviews - type: string - default: '[{"ReviewID":"","RevisionID":"","SourceRepoName":"","FileName":"","SourceBranchName":""}]' - - name: APIViewURL - type: string - default: 'https://apiview.dev' - -pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - -variables: - NodeVersion: '16.x' - -jobs: -- job: CreateSwaggerReviewCodeFile - displayName: 'Create Swagger API review token file' - - variables: - - template: /eng/pipelines/templates/variables/globals.yml - - steps: - - task: NodeTool@0 - inputs: - versionSpec: $(NodeVersion) - displayName: "Use Node $(NodeVersion)" - - - pwsh: | - $reviews = "${{ parameters.Reviews }}" - Write-Host "Reviews: $($reviews)" - echo "##vso[task.setvariable variable=Reviews]$reviews" - displayName: "Setup Reviews Variable" - condition: eq(variables['Reviews'], '') - - - pwsh: | - $url = "${{parameters.APIViewURL}}" - echo "##vso[task.setvariable variable=APIViewURL]$url" - displayName: "Setup APIViewURL Variable" - condition: eq(variables['APIViewURL'], '') - - - pwsh: | - npm install -g @cadl-lang/compiler@0.37.0 - npm install -g @azure-tools/cadl-apiview@0.3.0 - npm list -g - displayName: "Install npm packages" - - - task: Powershell@2 - displayName: 'Generate APIView Token files' - inputs: - pwsh: true - filePath: $(Build.SourcesDirectory)/eng/scripts/Create-Apiview-Token-Cadl.ps1 - arguments: > - -Reviews "$(Reviews)" - -OutputDir "$(Build.ArtifactStagingDirectory)" - -WorkingDir "$(Pipeline.Workspace)" - -GitPat "$(github-access-token)" - - - task: PublishBuildArtifacts@1 - inputs: - pathtoPublish: '$(Build.ArtifactStagingDirectory)' - artifactName: 'apiview' - - - task: Powershell@2 - displayName: 'Send Request to APIView to Update Token files' - condition: succeededOrFailed() - inputs: - pwsh: true - filePath: $(Build.SourcesDirectory)/eng/scripts/Apiview-Update-Generated-Review.ps1 - arguments: > - -BuildId $(Build.BuildId) - -ApiviewUpdateUrl "$(APIViewURL)/review/UpdateApiReview" +pr: none + +trigger: none + +parameters: + - name: Reviews + type: string + default: '[{"ReviewID":"","RevisionID":"","SourceRepoName":"","FileName":"","SourceBranchName":""}]' + - name: APIViewURL + type: string + default: 'https://apiview.dev' + +pool: + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 + +variables: + NodeVersion: '16.x' + +jobs: +- job: CreateSwaggerReviewCodeFile + displayName: 'Create Swagger API review token file' + + variables: + - template: /eng/pipelines/templates/variables/globals.yml + + steps: + - task: NodeTool@0 + inputs: + versionSpec: $(NodeVersion) + displayName: "Use Node $(NodeVersion)" + + - pwsh: | + $reviews = "${{ parameters.Reviews }}" + Write-Host "Reviews: $($reviews)" + echo "##vso[task.setvariable variable=Reviews]$reviews" + displayName: "Setup Reviews Variable" + condition: eq(variables['Reviews'], '') + + - pwsh: | + $url = "${{parameters.APIViewURL}}" + echo "##vso[task.setvariable variable=APIViewURL]$url" + displayName: "Setup APIViewURL Variable" + condition: eq(variables['APIViewURL'], '') + + - pwsh: | + npm install -g @cadl-lang/compiler@0.37.0 + npm install -g @azure-tools/cadl-apiview@0.3.0 + npm list -g + displayName: "Install npm packages" + + - task: Powershell@2 + displayName: 'Generate APIView Token files' + inputs: + pwsh: true + filePath: $(Build.SourcesDirectory)/eng/scripts/Create-Apiview-Token-Cadl.ps1 + arguments: > + -Reviews "$(Reviews)" + -OutputDir "$(Build.ArtifactStagingDirectory)" + -WorkingDir "$(Pipeline.Workspace)" + -GitPat "$(github-access-token)" + + - task: PublishBuildArtifacts@1 + inputs: + pathtoPublish: '$(Build.ArtifactStagingDirectory)' + artifactName: 'apiview' + + - task: Powershell@2 + displayName: 'Send Request to APIView to Update Token files' + condition: succeededOrFailed() + inputs: + pwsh: true + filePath: $(Build.SourcesDirectory)/eng/scripts/Apiview-Update-Generated-Review.ps1 + arguments: > + -BuildId $(Build.BuildId) + -ApiviewUpdateUrl "$(APIViewURL)/review/UpdateApiReview" diff --git a/eng/pipelines/apiview-review-gen-javascript.yml b/eng/pipelines/apiview-review-gen-javascript.yml index 9fe7ed76230..93751dceaef 100644 --- a/eng/pipelines/apiview-review-gen-javascript.yml +++ b/eng/pipelines/apiview-review-gen-javascript.yml @@ -3,8 +3,8 @@ pr: none trigger: none pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 parameters: - name: Reviews diff --git a/eng/pipelines/apiview-review-gen-python.yml b/eng/pipelines/apiview-review-gen-python.yml index 5fc86dd73dd..28635444015 100644 --- a/eng/pipelines/apiview-review-gen-python.yml +++ b/eng/pipelines/apiview-review-gen-python.yml @@ -3,8 +3,8 @@ pr: none trigger: none pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 parameters: - name: Reviews diff --git a/eng/pipelines/eng-common-sync.yml b/eng/pipelines/eng-common-sync.yml index 31239272147..00dd674f840 100644 --- a/eng/pipelines/eng-common-sync.yml +++ b/eng/pipelines/eng-common-sync.yml @@ -39,8 +39,8 @@ pr: - eng/common pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 stages: - ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: diff --git a/eng/pipelines/githubio-linkcheck.yml b/eng/pipelines/githubio-linkcheck.yml index f8a5b05687a..45eae1f2681 100644 --- a/eng/pipelines/githubio-linkcheck.yml +++ b/eng/pipelines/githubio-linkcheck.yml @@ -2,8 +2,8 @@ trigger: none pr: none pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 variables: cachefile: verify-links-cache.txt diff --git a/eng/pipelines/live-test-cleanup.yml b/eng/pipelines/live-test-cleanup.yml index 489bb997cad..65de312d380 100644 --- a/eng/pipelines/live-test-cleanup.yml +++ b/eng/pipelines/live-test-cleanup.yml @@ -65,8 +65,8 @@ stages: - job: Run timeoutInMinutes: 0 pool: - name: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - template: /eng/common/pipelines/templates/steps/cache-ps-modules.yml diff --git a/eng/pipelines/merge-docs-main-to-live.yml b/eng/pipelines/merge-docs-main-to-live.yml index 323fdc57d81..03d137aeb41 100644 --- a/eng/pipelines/merge-docs-main-to-live.yml +++ b/eng/pipelines/merge-docs-main-to-live.yml @@ -28,8 +28,8 @@ jobs: - job: displayName: 'ReleaseDocsMs: ${{repo.RepoName}}' pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 variables: DocRepoLocation: $(Pipeline.Workspace)/docs steps: diff --git a/eng/pipelines/mirror-pypi-to-dev-feed.yml b/eng/pipelines/mirror-pypi-to-dev-feed.yml index f171c34b95f..a717fd24da0 100644 --- a/eng/pipelines/mirror-pypi-to-dev-feed.yml +++ b/eng/pipelines/mirror-pypi-to-dev-feed.yml @@ -21,8 +21,8 @@ jobs: displayName: Mirror From PyPI pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 variables: - template: /eng/pipelines/templates/variables/globals.yml diff --git a/eng/pipelines/mirror-repos.yml b/eng/pipelines/mirror-repos.yml index 9e5fdb6b7cf..ef8069337a0 100644 --- a/eng/pipelines/mirror-repos.yml +++ b/eng/pipelines/mirror-repos.yml @@ -4,8 +4,8 @@ trigger: none pr: none pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 jobs: - job: SyncRepos diff --git a/eng/pipelines/notifications.yml b/eng/pipelines/notifications.yml index bf636b90a7a..68c1fab57bc 100644 --- a/eng/pipelines/notifications.yml +++ b/eng/pipelines/notifications.yml @@ -34,8 +34,8 @@ stages: PathPrefix: 'azure-dev' pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 variables: Organization: azure-sdk diff --git a/eng/pipelines/pipeline-generation-single.yml b/eng/pipelines/pipeline-generation-single.yml index 6310d74c5df..9305500d3d9 100644 --- a/eng/pipelines/pipeline-generation-single.yml +++ b/eng/pipelines/pipeline-generation-single.yml @@ -21,8 +21,8 @@ variables: jobs: - job: GeneratePipeline pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - checkout: none - template: /eng/common/pipelines/templates/steps/install-pipeline-generation.yml diff --git a/eng/pipelines/pipeline-generation.yml b/eng/pipelines/pipeline-generation.yml index 26e4fd65a3a..570b64b3b7f 100644 --- a/eng/pipelines/pipeline-generation.yml +++ b/eng/pipelines/pipeline-generation.yml @@ -32,8 +32,8 @@ parameters: jobs: - job: GeneratePipelines pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 timeoutInMinutes: 120 strategy: matrix: diff --git a/eng/pipelines/pipeline-owners-extraction.yml b/eng/pipelines/pipeline-owners-extraction.yml index e6e06f81120..02dc086e516 100644 --- a/eng/pipelines/pipeline-owners-extraction.yml +++ b/eng/pipelines/pipeline-owners-extraction.yml @@ -13,8 +13,8 @@ stages: - job: Run timeoutInMinutes: 120 pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 variables: Organization: azure-sdk diff --git a/eng/pipelines/publish-docker-image.yml b/eng/pipelines/publish-docker-image.yml index ca76c1112ec..dab5e9fcb1d 100644 --- a/eng/pipelines/publish-docker-image.yml +++ b/eng/pipelines/publish-docker-image.yml @@ -1,7 +1,7 @@ # Additional sample inputs can be found in `eng/containers/ci.yml`, but here is an example. # - name: test_proxy_linux -# pool: 'azsdk-pool-mms-ubuntu-2004-general' -# vmImage: 'MMSUbuntu20.04' +# pool: azsdk-pool-mms-ubuntu-2204-general +# vmImage: MMSUbuntu22.04 # dockerRepo: 'engsys/testproxy-lin' # additionalDockerArgs: '' # prepareScript: tools/test-proxy/docker/prepare.ps1 @@ -92,8 +92,8 @@ jobs: - ${{ each config in parameters.DockerDeployments }}: - container_build_${{ config.name }} pool: - name: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - task: Docker@2 diff --git a/eng/pipelines/templates/jobs/stress-cluster-provision.yml b/eng/pipelines/templates/jobs/stress-cluster-provision.yml index c9a405ea829..80ec41cd6d7 100644 --- a/eng/pipelines/templates/jobs/stress-cluster-provision.yml +++ b/eng/pipelines/templates/jobs/stress-cluster-provision.yml @@ -14,8 +14,8 @@ jobs: ${{ else }}: displayName: 'Provision' pool: - name: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - pwsh: | $subscriptionConfiguration = @' diff --git a/eng/pipelines/templates/jobs/stress-test-release.yml b/eng/pipelines/templates/jobs/stress-test-release.yml index a28f6959423..c7f8b47c348 100644 --- a/eng/pipelines/templates/jobs/stress-test-release.yml +++ b/eng/pipelines/templates/jobs/stress-test-release.yml @@ -44,8 +44,8 @@ jobs: Repository: Azure/azure-sdk-for-cpp Filters: '@{}' pool: - name: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml parameters: diff --git a/eng/pipelines/templates/stages/archetype-sdk-tool-azure-function.yml b/eng/pipelines/templates/stages/archetype-sdk-tool-azure-function.yml index 9cacd5d15a4..3c2e5c6c5d1 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-tool-azure-function.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-tool-azure-function.yml @@ -12,8 +12,8 @@ stages: jobs: - job: BuildPackage pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - task: UseDotNet@2 displayName: Tools @@ -40,7 +40,8 @@ stages: - deployment: PublishFunction environment: ${{ parameters.StagingEnvironmentName }} pool: - vmImage: ubuntu-18.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 strategy: runOnce: deploy: @@ -66,7 +67,8 @@ stages: - deployment: PublishFunction environment: ${{ parameters.ProductionEnvironmentName }} pool: - vmImage: ubuntu-18.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 strategy: runOnce: deploy: diff --git a/eng/pipelines/templates/stages/archetype-sdk-tool-azure-webapp.yml b/eng/pipelines/templates/stages/archetype-sdk-tool-azure-webapp.yml index b44de76cb0d..9c22d38d9f5 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-tool-azure-webapp.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-tool-azure-webapp.yml @@ -16,8 +16,8 @@ stages: jobs: - job: BuildPackage pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - task: UseDotNet@2 displayName: Tools @@ -44,8 +44,8 @@ stages: - deployment: PublishFunction environment: ${{ parameters.Staging.EnvironmentName }} pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 strategy: runOnce: deploy: @@ -71,8 +71,8 @@ stages: - deployment: PublishFunction environment: ${{ parameters.Production.EnvironmentName }} pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 strategy: runOnce: deploy: diff --git a/eng/pipelines/templates/stages/archetype-sdk-tool-dotnet.yml b/eng/pipelines/templates/stages/archetype-sdk-tool-dotnet.yml index ccf4e3a85dd..51230fe2635 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-tool-dotnet.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-tool-dotnet.yml @@ -55,8 +55,8 @@ stages: - stage: BuildTestAndPackage pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 jobs: - job: BuildAndPackage diff --git a/eng/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml b/eng/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml index e2744f12277..85f08d6feb0 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-tool-pwsh.yml @@ -25,8 +25,8 @@ stages: Pool: 'azsdk-pool-mms-win-2022-general' Image: 'MMS2022' Linux: - Pool: 'azsdk-pool-mms-ubuntu-2004-general' - Image: 'MMSUbuntu20.04' + Pool: azsdk-pool-mms-ubuntu-2204-general + Image: MMSUbuntu22.04 Mac: Pool: 'Azure Pipelines' Image: 'macos-11' diff --git a/eng/pipelines/templates/stages/archetype-sdk-tool-python.yml b/eng/pipelines/templates/stages/archetype-sdk-tool-python.yml index efe8a50a604..a7229ff601c 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-tool-python.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-tool-python.yml @@ -27,8 +27,8 @@ stages: - job: 'Build' pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - template: /eng/pipelines/templates/steps/use-python-version.yml @@ -58,8 +58,8 @@ stages: - 'Build' pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - template: /eng/pipelines/templates/steps/use-python-version.yml @@ -76,8 +76,8 @@ stages: - job: PublishPackage displayName: 'Publish ${{ parameters.PackageName }} package to devops feed' pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - checkout: none - download: current diff --git a/eng/pipelines/tools-repo-versioning.yml b/eng/pipelines/tools-repo-versioning.yml index bacc69864ca..7576a4c4ce0 100644 --- a/eng/pipelines/tools-repo-versioning.yml +++ b/eng/pipelines/tools-repo-versioning.yml @@ -4,8 +4,8 @@ trigger: none pr: none pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 jobs: - job: TagToolsRepo diff --git a/packages/java-packages/codesnippet-maven-plugin/ci.yml b/packages/java-packages/codesnippet-maven-plugin/ci.yml index 8095f3f6495..6c787f3b3f7 100644 --- a/packages/java-packages/codesnippet-maven-plugin/ci.yml +++ b/packages/java-packages/codesnippet-maven-plugin/ci.yml @@ -22,7 +22,7 @@ stages: - template: /eng/pipelines/templates/variables/globals.yml pool: - name: azsdk-pool-mms-ubuntu-2004-general + name: azsdk-pool-mms-ubuntu-2204-general steps: - task: Maven@3 diff --git a/scripts/python/util/install_python_version.py b/scripts/python/util/install_python_version.py index f3c170c3186..948025e8839 100644 --- a/scripts/python/util/install_python_version.py +++ b/scripts/python/util/install_python_version.py @@ -19,7 +19,7 @@ MANIFEST_LOCATION = "https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json" MAX_INSTALLER_RETRY = 3 -CURRENT_UBUNTU_VERSION = "20.04" # full title is ubuntu-20.04 +CURRENT_UBUNTU_VERSION = "22.04" # full title is ubuntu-22.04 MAX_PRECACHED_VERSION = "3.9.0" UNIX_INSTALL_ARRAY = ["sh", "setup.sh"] diff --git a/tools/apiview/emitters/cadl-apiview/ci.yml b/tools/apiview/emitters/cadl-apiview/ci.yml index 79fdbc621b1..b35909715be 100644 --- a/tools/apiview/emitters/cadl-apiview/ci.yml +++ b/tools/apiview/emitters/cadl-apiview/ci.yml @@ -33,8 +33,8 @@ stages: - job: 'Build' pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - task: NodeTool@0 @@ -75,8 +75,8 @@ stages: - job: PublishPackage displayName: 'Publish cadl-apiview package to devops feed' pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - checkout: none - download: current diff --git a/tools/apiview/parsers/js-api-parser/ci.yml b/tools/apiview/parsers/js-api-parser/ci.yml index ca439a64a19..78d2c011346 100644 --- a/tools/apiview/parsers/js-api-parser/ci.yml +++ b/tools/apiview/parsers/js-api-parser/ci.yml @@ -33,8 +33,8 @@ stages: - job: 'Build' pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - task: NodeTool@0 @@ -74,8 +74,8 @@ stages: - job: PublishPackage displayName: 'Publish ts-genapi package to devops feed' pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - checkout: none - download: current diff --git a/tools/oav-traffic-converter/ci.yml b/tools/oav-traffic-converter/ci.yml index 348e68ea4d8..f2915c1eb3f 100644 --- a/tools/oav-traffic-converter/ci.yml +++ b/tools/oav-traffic-converter/ci.yml @@ -30,8 +30,8 @@ stages: - stage: InstallAndTest pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 jobs: - job: Test @@ -61,8 +61,8 @@ stages: dependsOn: InstallAndTest condition: succeeded() pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 jobs: - job: approve diff --git a/tools/perf-automation/tests.yml b/tools/perf-automation/tests.yml index a42bee554c3..586c205ac58 100644 --- a/tools/perf-automation/tests.yml +++ b/tools/perf-automation/tests.yml @@ -73,7 +73,7 @@ parameters: # Use general pools instead of perf pools for faster startup due to more warm agents - name: LinuxPool type: string - default: 'azsdk-pool-mms-ubuntu-2004-general' + default: azsdk-pool-mms-ubuntu-2204-general - name: WindowsPool type: string default: 'azsdk-pool-mms-win-2022-general' @@ -107,7 +107,7 @@ resources: ref: main variables: - LinuxVmImage: 'MMSUbuntu20.04' + LinuxVmImage: MMSUbuntu22.04 WindowsVmImage: 'MMS2022' ToolsRepoCommitish: $(Build.SourceVersion) @@ -263,8 +263,8 @@ stages: - stage: Print_Results displayName: Print Results pool: - name: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 condition: succeededOrFailed() variables: - template: /eng/pipelines/templates/variables/globals.yml diff --git a/tools/sdk-generation-pipeline/ci.yml b/tools/sdk-generation-pipeline/ci.yml index 9bb7eadd008..b278182bc29 100644 --- a/tools/sdk-generation-pipeline/ci.yml +++ b/tools/sdk-generation-pipeline/ci.yml @@ -42,8 +42,8 @@ variables: value: $(Build.ArtifactStagingDirectory) pool: - name: "azsdk-pool-mms-ubuntu-2004-general" - vmImage: "MMSUbuntu20.04" + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 stages: - stage: Build diff --git a/tools/sdk-generation-pipeline/documents/task-engine/README.md b/tools/sdk-generation-pipeline/documents/task-engine/README.md index ff15c484a3c..03f0c7ac3c3 100644 --- a/tools/sdk-generation-pipeline/documents/task-engine/README.md +++ b/tools/sdk-generation-pipeline/documents/task-engine/README.md @@ -20,7 +20,7 @@ SDK Automation is launched in azure pipeline. It runs tasks in the following ste ### CodegenToSdkConfig This is type of file `./codegen_to_sdk_config.json` in sdk repo. -The running environment of these scripts would be expected to be __Ubuntu 20.04__ on Azure Pipeline. This may change in the future. All the running script should be executable. +The running environment of these scripts would be expected to be __Ubuntu 22.04__ on Azure Pipeline. This may change in the future. All the running script should be executable. The working folder of all the scripts is the __root folder of sdk repo__. #### CodegenToSdkConfig Example diff --git a/tools/sdk-generation-pipeline/sdk-generation-pipeline.yml b/tools/sdk-generation-pipeline/sdk-generation-pipeline.yml index ef717a331b3..c0eb5f4c4a2 100644 --- a/tools/sdk-generation-pipeline/sdk-generation-pipeline.yml +++ b/tools/sdk-generation-pipeline/sdk-generation-pipeline.yml @@ -82,8 +82,8 @@ stages: jobs: - job: SdkGeneration pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 timeoutInMinutes: 180 displayName: ${{ parameters.sdkToGenerate }}-${{ parameters.serviceType }}-${{ parameters.service }} steps: diff --git a/tools/stress-cluster/chaos/README.md b/tools/stress-cluster/chaos/README.md index 0fd0d9e166f..c91bc4c6ea6 100644 --- a/tools/stress-cluster/chaos/README.md +++ b/tools/stress-cluster/chaos/README.md @@ -41,7 +41,7 @@ You will need the following tools to create and run tests: 1. [Kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) 1. [Helm](https://helm.sh/docs/intro/install/) 1. [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli) -1. [Powershell Core](https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1#ubuntu-2004) (if using Linux) +1. [Powershell Core](https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1) (if using Linux) ## Deploying a Stress Test @@ -50,7 +50,7 @@ script](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/scripts/st This script handles: cluster and container registry access, building the stress test helm package, installing helm package dependencies, and building and pushing docker images. The script must be run via powershell or powershell core. -If using bash or another linux terminal, a [powershell core](https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1#ubuntu-2004) shell can be invoked via `pwsh`. +If using bash or another linux terminal, a [powershell core](https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1) shell can be invoked via `pwsh`. The first invocation of the script must be run with the `-Login` flag to set up cluster and container registry access. diff --git a/tools/stress-cluster/ci.yml b/tools/stress-cluster/ci.yml index a5d2cf0a5a7..47f7525a4f9 100644 --- a/tools/stress-cluster/ci.yml +++ b/tools/stress-cluster/ci.yml @@ -19,8 +19,8 @@ pr: jobs: - job: Analyze pool: - name: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + name: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 steps: - template: /eng/common/pipelines/templates/steps/verify-links.yml parameters: diff --git a/tools/stress-cluster/cluster/README.md b/tools/stress-cluster/cluster/README.md index c327587f1d3..ce82ca84baa 100644 --- a/tools/stress-cluster/cluster/README.md +++ b/tools/stress-cluster/cluster/README.md @@ -34,7 +34,7 @@ easier to make and roll out config changes to tests across repos by using helm c # Dependencies -- [Powershell Core](https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1#ubuntu-2004) +- [Powershell Core](https://docs.microsoft.com/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7.1) - [Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli) - [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) - [helm](https://helm.sh) diff --git a/tools/test-proxy/ci.yml b/tools/test-proxy/ci.yml index ce1f22bddca..71640dc6002 100644 --- a/tools/test-proxy/ci.yml +++ b/tools/test-proxy/ci.yml @@ -29,16 +29,16 @@ extends: DockerTagPrefix: '1.0.0-dev.' DockerDeployments: - name: test_proxy_linux - pool: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + pool: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 dockerRepo: 'engsys/testproxy-lin' prepareScript: tools/test-proxy/docker/prepare.ps1 dockerFile: 'tools/test-proxy/docker/dockerfile' stableTags: - 'latest' - name: test_proxy_linux_arm64 - pool: 'azsdk-pool-mms-ubuntu-2004-general' - vmImage: 'MMSUbuntu20.04' + pool: azsdk-pool-mms-ubuntu-2204-general + vmImage: MMSUbuntu22.04 dockerRepo: 'engsys/testproxy-lin-arm64' prepareScript: 'tools/test-proxy/docker/prepare.ps1 -qemu' additionalDockerArgs: '--build-arg ARCH=-arm64v8 --platform linux/arm64' diff --git a/tools/test-proxy/tests.yml b/tools/test-proxy/tests.yml index 84b03fe6d3d..30f39f4b689 100644 --- a/tools/test-proxy/tests.yml +++ b/tools/test-proxy/tests.yml @@ -15,7 +15,7 @@ stages: Pool: 'azsdk-pool-mms-win-2022-general' OS: 'Windows' Linux: - Pool: 'azsdk-pool-mms-ubuntu-2004-general' + Pool: azsdk-pool-mms-ubuntu-2204-general OS: 'Linux' Mac: Pool: 'Azure Pipelines' @@ -56,7 +56,7 @@ stages: Pool: 'azsdk-pool-mms-win-2022-general' OS: 'Windows' Linux: - Pool: 'azsdk-pool-mms-ubuntu-2004-general' + Pool: azsdk-pool-mms-ubuntu-2204-general OS: 'Linux' Mac: Pool: 'Azure Pipelines' @@ -88,7 +88,7 @@ stages: - job: Docker_CLI_Integration_Test pool: - name: 'azsdk-pool-mms-ubuntu-2004-general' + name: azsdk-pool-mms-ubuntu-2204-general variables: CLI_TEST_DOCKER_TAG: localproxyinstance @@ -130,7 +130,7 @@ stages: Pool: 'azsdk-pool-mms-win-2022-general' OS: 'Windows' Linux: - Pool: 'azsdk-pool-mms-ubuntu-2004-general' + Pool: azsdk-pool-mms-ubuntu-2204-general OS: 'Linux' Mac: Pool: 'Azure Pipelines' @@ -187,7 +187,7 @@ stages: Pool: 'azsdk-pool-mms-win-2022-general' OS: 'Windows' Linux: - Pool: 'azsdk-pool-mms-ubuntu-2004-general' + Pool: azsdk-pool-mms-ubuntu-2204-general OS: 'Linux' Mac: Pool: 'Azure Pipelines'