azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az upgrade under Windows waits for end of msiexec which wants to update python.exe

Open lgiuliani80 opened this issue 3 years ago • 1 comments

Related command az upgrade

Describe the bug az upgrade under Windows downloads and runs the MSI installer. The call to msiexec.exe is synchronous (i.e. it waits for its termination), but during the installation process the MSI wants to update python.exe, which is in use.

To Reproduce az upgrade [under Windows]

Expected behavior Under Windows EXIT PROCESS after calling msiexec: the upgrade will involve UI, so there is no need to keep the console blocked. This way this bug is prevented.

lgiuliani80 avatar Sep 20 '22 09:09 lgiuliani80

@jiasli for awareness

yonzhan avatar Sep 20 '22 09:09 yonzhan

👍🏻 same here. I assume it's because Azure CLI is waiting for installer to finish - so the python.exe is still running. So either az cli installer should not require python to exit or the cli after starting installer should exit and hope that user will complete installation.

miqm avatar Oct 23 '22 19:10 miqm

The previous time I tried upgrading this recent install, I tried letting the installer shut down the Python process but it failed to do so. So I continued with the reboot option. This time I tried to stop the process with Ctrl-C, but the process was unresponsive. Then I killed the Python process through Task Manager, and only then "Terminate batch job (Y/N)?" appeared.

I'd expect anyone on Windows running az upgrade is running into this issue, including the people who developed/tested this feature. Does this only occur under a specific environment? I'm using PowerShell Core in Windows Terminal.


cli after starting installer should exit and hope that user will complete installation

@miqm Does it matter to the CLI whether or not the user completes the installation?

stijnherreman avatar Mar 13 '23 16:03 stijnherreman

bump still a thing...

KLuuKer avatar Aug 29 '23 11:08 KLuuKer