To install Az from the PowerShell Gallery, run the following command:
Az
Install-Module -Name Az -Repository PSGallery -Force
To update from an older version of Az, run the following command:
Update-Module -Name Az