After upgrading with MSI, Azure CLI's files become corrupted
- Dominant language
- Python
- Stars
- 4.6k
- Forks
- 3.5k
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 60
Description
## Symptom
We have seen multiple occurrences that after upgrading with MSI, Azure CLI's file structure or file contents become corrupted, leading to all kinds of failures:
- https://github.com/Azure/azure-cli/issues/20978
- https://github.com/Azure/azure-cli/issues/20379
- https://github.com/Azure/azure-cli/issues/18477
- https://github.com/Azure/azure-cli/issues/17986
- https://github.com/Azure/azure-cli/issues/18172
- https://github.com/Azure/azure-cli/issues/17982
- https://github.com/Azure/azure-cli/issues/19307
## Solution
Please try to re-install Azure CLI:
1. Go to **Control Panel > Uninstall a program** , uninstall **Microsoft Azure CLI**
2. Delete `C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2`
3. [Install the latest Azure CLI](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli) from scratch
## TODO
We should contact Windows MSI team to figure out why upgrading with MSI randomly fails.
Contributor guide
Assessment
This issue has not been assessed yet.