Azure PowerShell
Installation et utilisation du PowerShell pour Azure.
Requirements
PowerShell 7.x and later is the recommended version of PowerShell for use with Azure PowerShell on all platforms.
Download le msi
https://github.com/PowerShell/PowerShell/releases
Procédure officielle
https://docs.microsoft.com/en-us/powershell/azure/?view=azps-4.2.0
Installer 'Azure PowerShell' dans le PowerShell que vous venez d'installer avec :
if ($PSVersionTable.PSEdition -eq 'Desktop' -and (Get-Module -Name AzureRM -ListAvailable)) {
Write-Warning -Message ('Az module not installed. Having both the AzureRM and ' +
'Az modules installed at the same time is not supported.')
} else {
Install-Module -Name Az -AllowClobber -Scope AllUsers
}
Sign in
To start working with Azure PowerShell, sign in with your Azure credentials. Try It
# Connect to Azure with a browser sign in token
Connect-AzAccount
Note
If you've disabled module autoloading, manually import the module with Import-Module -Name Az.
Because of the way the module is structured, this can take a few seconds.
You'll need to repeat these steps for every new PowerShell session you start.
To learn how to persist your Azure sign in across PowerShell sessions, see Persist user credentials across PowerShell sessions.