To install modules at a global scope, you need elevated privileges to install modules from the PowerShell Gallery. To install Azure PowerShell, run the following command in an elevated session (“Run as Administrator” on Windows, or with superuser privileges on macOS or Linux):
: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps

