Azure PowerShell
less than a minute
Azure PowerShell is a set of cmdlets for managing Azure resources directly from PowerShell. Azure PowerShell is designed to make it easy to learn and get started with, but provides powerful features for automation.
Be aware that older versions of Azure PowerShell (<5) do not support PowerShell ISE and the recommended tool is Visual Studio Code. This is important if you wish to call AZ modules as they require the latest version of PowerShell.
Install Azure PowerShell
The Azure Az PowerShell module is a rollup module. Installing it downloads the generally available Az PowerShell modules, and makes their cmdlets available for use.
It is best practice to install the latest version of PowerShell before using the Azure PowerShell
Check the current version
$PSVersionTable.PSVersion
PowerShell script execution policy must be set to remote signed or less restrictive
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Install the Az module for the current user only. This is the recommended installation scope. This method works the same on Windows, macOS, and Linux platforms. Run the following command from a PowerShell session:
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
Install modules
Az.NetAppFiles
Install-Module -Name Az.NetAppFiles
References
https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-8.0.0 https://www.powershellgallery.com/packages/Az.NetAppFiles/0.1.0