Azure PowerShell Documentation

Install Azure PowerShell

Table of Contents

Overview

Azure PowerShell is a set of modules that provide cmdlets to manage Azure resources directly from the PowerShell command line. The recommended way to install Azure PowerShell is using PowerShellGet, which ensures you receive updates automatically.

Prerequisites

Install via PowerShellGet

Open an elevated PowerShell session and run the following commands:

Install-Module -Name Az -Repository PSGallery -Force

After installation, import the module:

Import-Module Az

To keep the module up‑to‑date:

Update-Module -Name Az

Install via MSI Installer (Windows only)

Download the latest MSI package from the official releases page and run the installer.

Download MSI

After installation, open PowerShell and verify the module is available:

Get-Module -ListAvailable -Name Az

Verify the Installation

Run the following command to sign in to Azure:

Connect-AzAccount

If the sign‑in dialog appears and you can list subscriptions, the installation succeeded:

Get-AzSubscription

Uninstall Azure PowerShell

To remove the Az module:

Uninstall-Module -Name Az -AllVersions -Force

If you installed via MSI, use "Add or Remove Programs" in Windows Settings.

Additional Resources