In this Azure tutorial, we will discuss how to fix the error. packagemanagement\install-package : no match was found for the specified search criteria and module name ‘azuread’. which came up while trying to install the AzureAD module in PowerShell in Azure.
Table of Contents
No match was found for the specified search criteria and module name ‘AzureAD’
I was trying to install the AzureAD module in PowerShell. I got the above error. I was executing the below command to install the AzureAD module in PowerShell.
Install-Module -Name AzureAD
Below is the exact error message.
PackageManagement\Install-Package: No match was found for the specified search criteria and module name ‘AzureAD’. 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 ‘AzureAD’ [Solved]
Now, to fix this error, follow the below steps
1. Run the below command first using PowerShell ISE or Windows PowerShell.
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12Check out the screenshot below.

2. Now run the below command to install the AzureAD module. It will install the AzureAD module without any issues.
Install-Module -Name AzureAD
3. Now, you can see the below popup. Click the Yes button.

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

You may like the following Azure tutorials:
- Create a user in the Azure active directory.
- How to add bulk guest users in Azure AD B2B from Azure Portal and PowerShell
- What is Azure Active Directory B2B collaboration (Azure AD B2B)
- The term ‘get-aduser’ is not recognized as the name of a cmdlet in Windows PowerShell.
- The term ‘connect-azuread’ is not recognized as the name of a cmdlet function Azure
In this Azure tutorial, we discussed how to fix the error, install-module AzureAD no match was found. 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
