Since upgrade device agent version on devops, my CI/CD scripts failed

David M 55 Reputation points
2023-02-18T12:31:30.83+00:00

On Windows azure devOps, my CI/CD scripts in powershell work fine since many years.

But recently, Microsoft upgrade on DeveOps service agent update the Azure CLI version from 2.44.1 to 2.45.0.

ANd my calls for list return errors:

	$appPlan = az appservice plan list --subscription $account.id --resource-group $group.name --query "[?name=='$($appPlanName)']" | ConvertFrom-Json;

Make appears log:

D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\paramiko/transport.py:236: CryptographyDeprecationWarning: Blowfish has been deprecated

I tried to downgrade CLI:

choco install azure-cli --version 2.44.1-y

But i have this error:

WARNING: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself -

it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed).

Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\azure-cli_msi_install.log'"'.

Then search the MSI Log for "Return Value 3" and look above that for the error.

ERROR: Running ["C:\Windows\System32\msiexec.exe" /i "C:\Users\VssAdministrator\AppData\Local\Temp\chocolatey\azure-cli\2.44.1\azure-cli-2.44.1.msi"

/qn /norestart /l*v "C:\Users\VssAdministrator\AppData\Local\Temp\chocolatey\azure-cli.2.44.1.MsiInstall.log" ] was not successful. Exit code was '1603'.

Exit code indicates the following: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself -

it could mean a pending reboot is necessary prior to install or something else (like the same version is already installed).

Please see MSI log if available. If not, try again adding '--install-arguments="'/l*v c:\azure-cli_msi_install.log'"'.

Then search the MSI Log for "Return Value 3" and look above that for the error..

What can i make ?

Windows for business Windows Client for IT Pros Devices and deployment Set up, install, or upgrade
Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.