Azure PowerShell is a powerful tool for managing and administering Azure resources directly from
PowerShell. It's ideal for building automated workflows and managing resources using the Azure
Resource Manager model. You can try it out in your browser using Azure Cloud Shell or
install it locally on your machine.
This article helps you get started with Azure PowerShell and teaches its core concepts.
Install or run in Azure Cloud Shell
The easiest way to try Azure PowerShell is through Azure Cloud Shell, a browser-based environment
that requires no installation. To get started, see
Get started with Azure Cloud Shell. Cloud Shell runs PowerShell on a Linux
container, so Windows-specific features aren't available.
To sign in, use the Connect-AzAccount cmdlet. If you're using Cloud Shell, you can skip this step
since you're already authenticated for your environment, subscription, and tenant.
For regional environments that require specific compliance, for example, Azure China 21Vianet, use
the Environment parameter:
Azure PowerShell
Connect-AzAccount -Environment AzureChinaCloud
Azure PowerShell defaults to Web Account Manager (WAM) for authentication on Windows systems, while
other platforms use browser-based login. For more information, see
Web Account Manager (WAM).
If you have access to multiple subscriptions, you're prompted to select one upon login. Learn more
about this process in Login experience.
Once signed in, you can use Azure PowerShell cmdlets to manage your resources. For more information
on authentication, see Sign in with Azure PowerShell.
Find commands
Azure PowerShell cmdlets follow the standard PowerShell naming convention of Verb-Noun. The verb
describes the action, for instance, New, Get, Set, and Remove, while the noun represents the
resource type, for example, AzVM, AzKeyVaultCertificate, AzFirewall, and
AzVirtualNetworkGateway. Nouns in Azure PowerShell start with the prefix Az.
To discover commands, use the Get-Command cmdlet. For instance, to list all commands related to
virtual machines:
PowerShell
Get-Command -Verb Get -Noun AzVM* -Module Az.Compute
Here's a quick reference table of common resources and their associated modules:
By default, Azure PowerShell collects telemetry data to improve user experience by identifying usage
patterns and issues. No private or personal data is collected. However, you can opt out using the
Disable-AzDataCollection cmdlet if you prefer. For more information, see our
privacy statement.
Quickstarts and tutorials
Get hands-on with Azure PowerShell through our guided tutorials:
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure PowerShell-feedback
Azure PowerShell is een open source project. Selecteer een koppeling om feedback te geven: