Azure Documentation

Azure PowerShell Reference

The Azure PowerShell module provides a set of cmdlets that connect to your Azure account and manage Azure resources. This reference provides comprehensive documentation for all available cmdlets.

Getting Started

To get started with Azure PowerShell, you'll need to install the module and connect to your Azure account. For detailed instructions, please refer to the Install the Azure PowerShell module documentation.

Common Cmdlets

Here are some commonly used Azure PowerShell cmdlets:

Managing Resource Groups

Get-AzResourceGroup

Lists all resource groups in your subscription.

New-AzResourceGroup -Name "MyResourceGroup" -Location "East US"

Creates a new resource group.

Remove-AzResourceGroup -Name "MyResourceGroup"

Deletes a resource group and all its resources.

Managing Virtual Machines

Get-AzVM -ResourceGroupName "MyResourceGroup"

Lists virtual machines in a specific resource group.

Start-AzVM -Name "MyVM" -ResourceGroupName "MyResourceGroup"

Starts a virtual machine.

Stop-AzVM -Name "MyVM" -ResourceGroupName "MyResourceGroup" -Force

Stops a virtual machine.

Browse All Cmdlets

For a complete list of all available Azure PowerShell cmdlets and their detailed parameters, you can use the following commands:

Get-Command -Module "Az"

This command will list all cmdlets from the Az module. You can then pipe the output to filter for specific cmdlets or resources.

Example: Filtering for Storage cmdlets

Get-Command -Module "Az.Storage"

Learn More