Application installation failing in VMSS machine

Subrahmanyam Chilakamarthi 1 Reputation point
2022-11-15T13:09:41.007+00:00

Hi,

I create new VMSS and integrated with my Azure pipeline. When I run the pipeline, it is able to download all the required artifacts successfully. But next step is to install the latest software downloaded (in artifacts), it is failing with error

[error]Cmd.exe exited with code '1601'

I have tested same in my local agents and it is working good. Not sure what is causing this failure. Any help?

In failing task (which is cmd), I set the working directory properly and I could see the setup.exe is there in that location

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,128 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
347 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bjoern Peters 8,781 Reputation points
    2022-11-15T17:27:01.057+00:00

    Hi @Subrahmanyam Chilakamarthi

    you didn't tell us a lot about your scenario ;-)
    What are the steps performed a.) within your pipeline and b.) within your script, so the answer just might be a "general" one.

    Just on cmd.exe and error 1601... maybe your script installs some kind of service/dll/application before the error, that needs to have a reboot (eg changing system runtimes or DLLs)

    1601 mains (in the majority of cases) that you have to installaer is unavailable due to a required reboot... maybe try to reboot the system before applying this step!