actions / runner-images

GitHub Actions runner images
MIT License
9.17k stars 2.84k forks source link

Azure CLI installer certificate thumbprint is outdated due to new release #9771

Closed Ami-007 closed 2 weeks ago

Ami-007 commented 2 weeks ago

Description

Attempted to build a Windows 2019 image based on the current repo, but it failed with the error below.

==> azure-arm: Provisioning with powershell script: /agent/_work/1/s/runner-images/images/windows/scripts/build/Install-AzureCli.ps1 azure-arm: Install the latest Azure CLI release azure-arm: Downloading package from https://aka.ms/installazurecliwindowsx64 to C:\Users\packer\AppData\Local\Temp\kbhjzvvz.msi... azure-arm: Package downloaded in 2.84 seconds ==> azure-arm: Signature thumbprint do not match expected. ==> azure-arm: At C:\Program Files\WindowsPowerShell\Modules\ImageHelpers\InstallHelpers.ps1:972 char:9 ==> azure-arm: + throw "Signature thumbprint do not match expected." ==> azure-arm: + ~~~~~~~~~~~ ==> azure-arm: + CategoryInfo : OperationStopped: (Signature thumb...match expected.:String) [], RuntimeException ==> azure-arm: + FullyQualifiedErrorId : Signature thumbprint do not match expected.

Platforms affected

Runner images affected

Image version and build link

Private build of Azure DevOps agent based on Windows Server 2019 from this repo

Is it regression?

Yes

Expected behavior

Thumbprint should match and build of new Windows 2019 runner image built successfully

Actual behavior

Building the image fails due to: ==> azure-arm: Signature thumbprint do not match expected. ==> azure-arm: At C:\Program Files\WindowsPowerShell\Modules\ImageHelpers\InstallHelpers.ps1:972 char:9 ==> azure-arm: + throw "Signature thumbprint do not match expected." ==> azure-arm: + ~~~~~~~~~~~ ==> azure-arm: + CategoryInfo : OperationStopped: (Signature thumb...match expected.:String) [], RuntimeException ==> azure-arm: + FullyQualifiedErrorId : Signature thumbprint do not match expected.

Repro steps

Build the Windows Server 2019 image using the code in runner images

sergei-pyshnoi commented 2 weeks ago

Hello @Ami-007 . Thanks for your report, we are working on it.

mikhailkoliada commented 2 weeks ago

should be fixed now in main!