Microsoft Azure PowerShell Silent Install (How-To Guide)

Microsoft Azure PowerShell provides a set of cmdlets that use the Azure Resource Manager model for managing your Azure resources.  This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Microsoft Azure PowerShell from the command line using the MSI installer.

How to Install Microsoft Azure PowerShell Silently

Microsoft Azure PowerShell 32-bit Silent Install (MSI)

  1. Navigate to: https://github.com/Azure/azure-powershell/releases/latest
  2. Download the Az-Cmdlets-w.x.y.z-x86.msi to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following command: MsiExec.exe /i Az-Cmdlets-w.x.y.z-x86.msi /qn
  6. Press Enter

After a few moments you should see Microsoft Azure PowerShell in the Installation Directory and Programs and Features in the Control Panel.

Software Title:Microsoft Azure PowerShell
Vendor:Microsoft Corporation
Architecture:x86
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i Az-Cmdlets-w.x.y.z-x86.msi /qn
Silent Uninstall Switch:MsiExec.exe /x Az-Cmdlets-w.x.y.z-x86.msi /qn
Repair Command:MsiExec.exe /fa Az-Cmdlets-w.x.y.z-x86.msi /qn
Download Link:https://github.com/Azure/azure-powershell/releases/latest
PowerShell Script:https://silentinstallhq.com/microsoft-azure-powershell-install-and-uninstall-powershell/

Microsoft Azure PowerShell 64-bit Silent Install (MSI)

  1. Navigate to: https://github.com/Azure/azure-powershell/releases/latest
  2. Download the Az-Cmdlets-w.x.y.z-x64.msi to a folder created at (C:\Downloads)
  3. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  4. Navigate to the C:\Downloads folder
  5. Enter the following command: MsiExec.exe /i Az-Cmdlets-w.x.y.z-x64.msi /qn
  6. Press Enter

After a few moments you should see Microsoft Azure PowerShell in the Installation Directory and Programs and Features in the Control Panel.

Software Title:Microsoft Azure PowerShell
Vendor:Microsoft Corporation
Architecture:x64
Installer Type:MSI
Silent Install Switch:MsiExec.exe /i Az-Cmdlets-w.x.y.z-x64.msi /qn
Silent Uninstall Switch:MsiExec.exe /x Az-Cmdlets-w.x.y.z-x64.msi /qn
Repair Command:MsiExec.exe /fa Az-Cmdlets-w.x.y.z-x64.msi /qn
Download Link:https://github.com/Azure/azure-powershell/releases/latest
PowerShell Script:https://silentinstallhq.com/microsoft-azure-powershell-install-and-uninstall-powershell/

The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.


Additional Configurations

Create an Installation Log File

The Microsoft Azure PowerShell installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.

Microsoft Azure PowerShell 32-bit Silent Install (MSI) with Logging

MsiExec.exe /i Az-Cmdlets-w.x.y.z-x86.msi /qn /L*v "%WINDIR%\Temp\AzCmdletsx86-Install.log"

Microsoft Azure PowerShell 64-bit Silent Install (MSI) with Logging

MsiExec.exe /i Az-Cmdlets-w.x.y.z-x64.msi /qn /L*v "%WINDIR%\Temp\AzCmdletsx64-Install.log"

How to Uninstall Microsoft Azure PowerShell Silently

Check out the Microsoft Azure PowerShell Install and Uninstall (PowerShell) post for a scripted solution.

  1. Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
  2. Enter one of the following commands:

Microsoft Azure PowerShell 32-bit Silent Uninstall (MSI)

MsiExec.exe /x Az-Cmdlets-w.x.y.z-x86.msi /qn

Microsoft Azure PowerShell 64-bit Silent Uninstall (MSI)

MsiExec.exe /x Az-Cmdlets-w.x.y.z-x64.msi /qn

Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.