Azure Cmdlet Reference
The Azure Cmdlet Reference provides information about Azure PowerShell modules that help you to automate your Microsoft Azure tasks. This reference includes information about the Azure PowerShell 1.0 and Azure PowerShell 0.9.8, including system requirements, download links, and configurations tasks. This reference also includes cmdlet help for the cmdlets and functions in Azure PowerShell modules.
Azure PowerShell Modules
To learn about the cmdlets in the Azure modules, see the following topics:
Azure Active Directory Cmdlets
Azure PowerShell 3.0
Azure PowerShell 2.0
Azure PowerShell 1.0
Azure PowerShell 0.9.8
Azure Service Fabric Cmdlets
Azure Elastic Database Jobs Cmdlets
Azure Rights Management Cmdlets
RMS Protection Cmdlets
Azure PowerShell modules are not included in the Windows operating system. Before you can use the cmdlets in the modules, download the modules you want to use and set up your environment so you can connect to Azure by using the Azure PowerShell console. For instructions, see the page for each module.
Azure modules are updated frequently. If you notice that the online cmdlet help includes cmdlets or parameters that are not in your module, download and install the latest version of the module. To find the version of your module, type:
For sample scripts that can help you automate some of the common tasks in Azure, see the Windows Azure Script Center.
For general information about installing, learning, using, and customizing Windows PowerShell, see Scripting with Windows PowerShell.
Azure PowerShell 1.0 Preview Modules
To use Azure Resource Manager and Azure Service Manager in Azure PowerShell 1.0 Preview, install the modules as described in the following topics:
Azure PowerShell 0.9.8 Modules
To use Azure Resource Manager and Azure Service Manager in Azure PowerShell 0.9.8, install the modules as described in the following topics:
Several of the Azure modules for Windows PowerShell are included in a single installation package known as Azure PowerShell. For information about installing Azure PowerShell, see How to install and configure Windows Azure PowerShell.
Beginning in version 0.8.0, the Azure PowerShell installation includes three modules:
Azure. Includes the traditional cmdlets for managing individual resources, such as storage accounts, websites, databases, virtual machines, and media services. For information about the cmdlets in the Azure module, see Azure Service Management Cmdlets.
AzureProfile. Includes cmdlets common to both modules, such as Add-AzureAccount, Get-AzureSubscription, and Switch-AzureMode. For information about the cmdlets in the AzureProfile module, see Azure Profile Cmdlets.
AzureResourceManager. Includes cmdlets for creating, managing, and deploying the Azure resources for a complex service as a logical unit. Use this module to create resource groups that support web portals, photo galleries, blogs, wikis, and more. For information about the cmdlets in the AzureResourceManager module, see Azure Resource Manage Cmdlets.
The Azure and Azure Resource Management modules are not designed to be used in the same Azure PowerShell session. To switch between them, use the Switch-AzureMode cmdlet.
When you use Azure PowerShell, the cmdlets in the Azure module are imported by default. To switch to the AzureResourceManager module, use Switch-AzureMode. It removes the Azure module from your session and imports the Azure Resource Manager and Azure Profile modules.
PS C:\> Switch-AzureMode -Name AzureResourceManager
To switch to the Azure module, use Switch-AzureMode again.
PS C:\> Switch-AzureMode -Name AzureServiceManagement
For information about Switch-AzureMode, type:
Get-Help Switch-AzureMode or see Switch-AzureModule.
The Switch-AzureMode cmdlet is deprecated. For more information, see Deprecation of Switch AzureMode in Azure PowerShell (https://github.com/Azure/azure-powershell/wiki/Deprecation-of-Switch-AzureMode-in-Azure-PowerShell).
This deprecation is a breaking change. You may need to revise scripts that operate in Azure Resource Manager.