DevTestLab - Issue with Chrome artifact installation

Wiszowaty, Sebastian 20 Reputation points
2024-03-07T10:40:51.77+00:00

Details I am trying to install the Chrome artifact in a Windows 10 DevTestLab. However, I am getting an error message. The extension 'CustomScriptExtension' is failing with a non-zero exit code of '1'. This seems to be due to the package having an SHA mismatch. Nothing I can do from my side to fix I think.

Here is the error message I received:

{"status":"Failed","error":{"code":"ResourceDeploymentFailure","message":"The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'.","details":[{"code":"VMExtensionProvisioningError","message":"VM has reported a failure when processing extension 'CustomScriptExtension' (publisher 'Microsoft.Compute' and type 'CustomScriptExtension'). Error message: 'Command execution finished, but failed because it returned a non-zero exit code of: '1''. More information on troubleshooting is available at https://aka.ms/VMExtensionCSEWindowsTroubleshoot. "}]}}

The 'Chrome' artifact failed to install. See artifact result for details.


Validating parameters.
Configuring PowerShell session.
Ensuring Chocolatey is installed.
Preparing to install Chocolatey packages: googlechrome.
Chocolatey v2.2.2
Installing the following packages:
googlechrome
By installing, you accept licenses for the packages.
GoogleChrome v122.0.6261.57 already installed. Forcing reinstall of version '122.0.6261.57'.
 Please use upgrade if you meant to upgrade to a new version.
Unable to connect to source 'https://www.myget.org/F/fireeye/api/v2':
 Failed to fetch results from V2 feed at 'https://www.myget.org/F/fireeye/api/v2/FindPackagesById()?id='googlechrome'&semVerLevel=2.0.0' with following message : Response status code does not indicate success: 404 (Not Found).
Failed to fetch results from V2 feed at 'https://www.myget.org/F/fireeye/api/v2/FindPackagesById()?id='GoogleChrome'&semVerLevel=2.0.0' with following message : Response status code does not indicate success: 404 (Not Found).
[NuGet] Skipping 'C:\ProgramData\chocolatey\lib\GoogleChrome\GoogleChrome.nuspec' because it was modified.

GoogleChrome v122.0.6261.57 (forced) [Approved]
GoogleChrome package files install completed. Performing other installation steps.
Downloading googlechrome 64 bit
  from 'https://dl.google.com/dl/chrome/install/googlechromestandaloneenterprise64.msi'

Download of googlechromestandaloneenterprise64.msi (111.05 MB) completed.
Error - hashes do not match. Actual value was '23E21B36938AA79F0D03087338ADEA2DA7331F9B525ED8AD45E1A1C19935F424'.
ERROR: Checksum for 'C:\Users\user_swos\AppData\Local\ChocoCache\GoogleChrome\122.0.6261.57\googlechromestandaloneenterprise64.msi' did not meet '915ed33474b5094cffd45050a35004c6caa0e71b491fb98482d896670724094d' for checksum type 'sha256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary.
The install of GoogleChrome was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\GoogleChrome\tools\chocolateyInstall.ps1'.
 See log for details.
GoogleChrome not installed. An error occurred during installation:
 Stopping further execution as GoogleChrome has failed install.
GoogleChrome package files install failed with exit code -1. Performing other installation steps.
The install of GoogleChrome was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\GoogleChrome\tools\chocolateyInstall.ps1'.
 See log for details.
GoogleChrome not installed. An error occurred during installation:
 Stopping further execution as GoogleChrome has failed install.

Chocolatey installed 0/0 packages. 
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
Stopping further execution as GoogleChrome has failed install.

ERROR: Installation failed (-1). Please see the Chocolatey logs in %ALLUSERSPROFILE%\chocolatey\logs folder for details.

The artifact failed to apply.



Could you please update the artifact to be valid?

Azure DevTest Labs
Azure DevTest Labs
An Azure service that is used for provisioning development and test environments.
256 questions
{count} votes

Accepted answer
  1. deherman-MSFT 33,466 Reputation points Microsoft Employee
    2024-03-12T19:14:38.05+00:00

    @Wiszowaty, Sebastian

    Thanks for clarifying. After investigating this issue I can see this is a common error when installing Chrome. You can review the page here for more information about this.

    "This package always installs the latest version of Google Chrome, regardless of the version specified in the package. Google does not officially offer older versions of Chrome for download. Because of this you may get checksum mismatch between the time Google releases a new installer, and the package is automatically updated."

    To work around this issue, you can use the Install Chocolatey Packages artifact which allows you to Ignore the mismatch in checksums.

    User's image

    Hope this helps! Let me know if you are still facing issues or have further questions.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image

    0 comments No comments

0 additional answers

Sort by: Most helpful