Azure PowerShell Overview

Azure PowerShell is a set of cmdlets that you can use to manage Azure resources from the command line. It's built on top of the .NET Framework and can be used in interactive mode, or to write scripts for automating Azure deployments and management tasks.

Note: Azure PowerShell is also available as a cross-platform module that can be installed on Windows, macOS, and Linux.

Key Features

Getting Started with Azure PowerShell

To start using Azure PowerShell, you'll typically need to install it. The installation process varies slightly depending on your operating system.

Installation Steps (Brief)

For detailed installation instructions, please refer to the Installation Guide.

  1. Install PowerShell (if not already present).
  2. Install the Azure PowerShell module using the PowerShellGet command: Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
  3. Connect to your Azure account: Connect-AzAccount

Common Scenarios

Azure PowerShell is used for a wide variety of tasks, including:

Example Cmdlets

Here are some commonly used cmdlets:

  • Get-AzVM: Lists virtual machines in a resource group.
  • New-AzResourceGroup: Creates a new resource group.
  • Set-AzStorageAccount: Updates a storage account.
  • Remove-AzWebApp: Deletes an Azure Web App.

You can find a comprehensive list and detailed documentation for all cmdlets in the Cmdlets Overview.

Learn More

Explore the following sections to deepen your understanding of Azure PowerShell: