SwitchHunt / catalog
Azure CLI - Silent Install Switch
The hand-curated silent install command for Azure CLI on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.
Silent install command
msiexec /i "installer.msi" /qn Silent uninstall command
msiexec /x "installer.msi" /qn Replace installer.msi with the actual installer filename (or its full path).
Notes & gotchas
Use the -x64 MSI. The aka.ms/installazurecliwindows link Microsoft's quick-start uses is the 32-bit build, which lands in Program Files (x86). Installing the 64-bit MSI over it removes the 32-bit one, but CLI extensions then need reinstalling. Open a new shell before az is on PATH.
Lab-tested
On 2026-10-12 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against Azure CLI 2.91.0, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.
Detection path
A file whose presence proves Azure CLI is installed - handy as an Intune / RMM detection rule:
C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd FAQ
What is the silent install command for Azure CLI?
Run: msiexec /i "installer.msi" /qn
How do I silently uninstall Azure CLI?
Run: msiexec /x "installer.msi" /qn
Any gotchas installing Azure CLI unattended?
Use the -x64 MSI. The aka.ms/installazurecliwindows link Microsoft's quick-start uses is the 32-bit build, which lands in Program Files (x86). Installing the 64-bit MSI over it removes the 32-bit one, but CLI extensions then need reinstalling. Open a new shell before az is on PATH.
Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.