Install Azure PowerShell on Windows
# Install NuGet
Install-PackageProvider -Name NuGet -Force
# Install PowerShellGet
Install-Module -Name PowerShellGet -Force
# Set execution policy to remote signed
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
# Install Azure module
Install-Module -Name Az -Repository PSGallery -Force
# Sign into Azure
Connect-AzAccount
# Update Azure module
Update-Module -Name Az -Force
Install Azure PowerShell on Windows
https://learn.microsoft.com/en-us/powershell/azure/install-azps-windows