Open magodo opened 2 years ago
@jiasli for awareness
az upgrade
currently doesn't support WSL. Please follow the official doc to update: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt
sudo apt-get update && sudo apt-get install --only-upgrade -y azure-cli
@yonzhan Why do you just close this issue given it is not resolved?
@magodo I thought Jiashuo provided you solution/workaround. I can reopen it and add it as feature request in our backlog.
az upgrade
currently doesn't support WSL. Please follow the official doc to update: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=aptsudo apt-get update && sudo apt-get install --only-upgrade -y azure-cli
This didn't work for me. I didn't have azure-cli
installed on WSL2 OS, instead it was using the one from Windows. I didn't recall about this. So first check:
which az
In my case: /mnt/c/Program Files (x86)/Microsoft SDKs/Azure/CLI2/wbin/az
.
If the Azure CLI is from Windows, run az upgrade
from PowerShell in Windows instead.
Tried the above solution, but az upgrade did not upgrade the cli. So, problem is still not resolved.
Related command
Additional context
I'm running this under WSL2, Ubuntu distribution: