In this azure tutorial, we will discuss how to fix the error, No match was found for the specified search criteria and module name ‘AzureRM’. which comes while trying to install the AzureRM module in PowerShell in Azure.
Table of Contents
No match was found for the specified search criteria and module name ‘AzureRM’
I was trying to install the AzureRM module in PowerShell, I got the above error. I was executing the below command to install the AzureRM module using PowerShell.
PS C:\windows\system32> Install-Module AzureRM -AllowClobber

Below is the exact error message.
PackageManagement\Install-Package: No match was found for the specified search criteria and module name ‘AzureRM’. Try Get-PSRepository to see all available registered module repositories.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
- … $null = PackageManagement\Install-Package @PSBoundParameters
~~~~~~~~~~~~- CategoryInfo : ObjectNotFound: (Microsoft.Power….InstallPackage:InstallPackage) [Install-Package], Exception
- FullyQualifiedErrorId : NoMatchFoundForCriteria,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
No match was found for the specified search criteria and module name ‘AzureRM’ [Solution]
Now to fix this error, follow the below steps
Step-1:
Run the below command first using PowerShell ISE or Windows PowerShell.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
See here

Step-2:
Now run the below command to install the AzureRM module. It will install the AzureRM module without any issue.
PS C:\windows\system32> Install-Module -Name AzureRM -RequiredVersion 5.0.1

Step-3:
Now you can see the below popup. Click the Yes button.

Step-4:
You can see it’s started progressing installing the AzureRM module.

You may like following Azure tutorials:
- How to create SQL managed instance in azure
- The ‘New-AzSqlServer’ command was found in the module ‘Az.Sql’, but the module could not be loaded
- The remote name could not be resolved: ‘eastus.api.cognitive.microsoft.com’
- New-AzResourceGroup: A positional parameter cannot be found that accepts argument
- Error CS012 The call is ambiguous between the following methods or properties
Wrapping Up
In this Azure tutorial, we discussed how to fix error, No match was found for the specified search criteria and module name ‘AzureRM’. I hope it helped you to fix your issue.