You can try specifying the PowerShell Gallery as a repository:
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
If that doesn't work, you can also download the .MSI package and install that like any other MSI package.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have an Azure SQL VM with having a 2008 R2 server and I want to install the Az module in it. but while trying I am getting the below error.
PS C:\Windows\system32> Install-Module -Name Az -AllowClobber
PackageManagement\Install-Package : No match was found for the specified search criteria and module name 'Az'. Try Get-PSRepository to see all available registered
module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1772 char:21
You can try specifying the PowerShell Gallery as a repository:
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
If that doesn't work, you can also download the .MSI package and install that like any other MSI package.