To use Azure PowerShell, you need to:
- Update to Windows PowerShell 5.1 if needed. If you’re on Windows 10, you already have PowerShell 5.1 installed.
- Install .NET Framework 4.7.2 or later.
The MSI package for Azure PowerShell is available from GitHub. If you have installed earlier versions of Azure PowerShell using the MSI, the installer automatically removes them. The MSI package installs modules in:
${env:ProgramFiles}\WindowsPowerShell\Modules.
To start working with Azure PowerShell, sign in with your Azure credentials.
# Connect to Azure with an interactive dialog for sign-in
Connect-AzAccount
Note:
If you’ve disabled module autoloading, you need to manually import the module with Import-Module Az
. Because of the way the module is structured, this can take up to a minute.