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 up 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, and I got the above error. I was executing the following command to install the AzureRM module using PowerShell.
PS C:windowssystem32> Install-Module AzureRM -AllowClobber
Below is the exact error message.
PackageManagementInstall-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 FilesWindowsPowerShellModulesPowerShellGet1.0.0.1PSModule.psm1:1809 char:21
- … $null = PackageManagementInstall-Package @PSBoundParameters
~~~~~~~~~~~~- CategoryInfo : ObjectNotFound: (Microsoft. Power….InstallPackage: InstallPackage) [Install-Package], Exception
- FullyQualifiedErrorId: NoMatchFoundForCriteria, Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
Solution
Now, to fix this error, follow the steps below
1. Run the below command first using PowerShell ISE or Windows PowerShell.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12See here

2. Now run the below command to install the AzureRM module. It will install the AzureRM module without any issues.
PS C:windowssystem32> Install-Module -Name AzureRM -RequiredVersion 5.0.1
3. Now, you can see the below pop-up. Click the Yes button.

4. You can see it’s started progressing with installing the AzureRM module.

You may like the following Azure tutorials:
Wrapping Up
In this Azure tutorial, we discussed how to fix the error, No match was found for the specified search criteria and module name ‘AzureRM’. I hope it helped you to fix your issue.
I am Bijay, a Microsoft MVP (10 times) having more than 17 years of experience in the software industry. During my IT career, I got a chance to share my expertise in SharePoint and Microsoft Azure, like Azure VM, Azure Active Directory, Azure PowerShell, etc. I hope you will learn from these Azure tutorials. Read more
