How to Install Azure PowerShell
Azure PowerShell is a powerful tool that you can use to manage your Azure resources. It's a cross-platform tool, so you can use it on Windows, macOS, or Linux.
What do you need to install Azure PowerShell?
You need to install two components to use Azure PowerShell:
- The base PowerShell product: This comes in two variants: Windows PowerShell and PowerShell 7.x, which can be installed on Windows, macOS, and Linux.
- The Azure Az PowerShell module: This extra module must be installed to add the Azure-specific commands to PowerShell.
How to install the base PowerShell product:
- On Windows, you can install PowerShell from the Microsoft Store.
- On macOS, you can install PowerShell from the PowerShell website: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-macos.
- On Linux, you can install PowerShell from the PowerShell website: https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-linux.
How to install the Azure Az PowerShell module:
Once you have installed the base PowerShell product, you can install the Azure Az PowerShell module using the following command:
Install-Module Az
Tips for installing Azure PowerShell:
- PowerShell 7.0.6 LTS, PowerShell 7.1.3, or higher is the recommended version of PowerShell for use with the Azure Az PowerShell module on all platforms.
- If you are installing PowerShell on Windows, you may need to run the command as an administrator.
- If you are installing PowerShell on macOS, you may need to open a Terminal window with administrator privileges.
Once you have installed the Azure Az PowerShell module, you can start using it to manage your Azure resources. For more information, see the Azure PowerShell documentation: https://docs.microsoft.com/en-us/powershell/scripting/.
No comments:
Post a Comment