No match was found for the specified search criteria and module names ‘AzTable’

In this azure tutorial, we will discuss how to fix the error, No match was found for the specified search criteria and module names ‘AzTable’. which I got while trying to uninstall the Azure PowerShell AzTable module using PowerShell ISE in Azure.

No match was found for the specified search criteria and module names ‘AzTable’

Recently, I was trying to execute PowerShell command to uninstall the AzTable module. I was executing the below command to uninstall the Azure PowerShell AzTable module.

PS C:\WINDOWS\system32> UnInstall-Module AzTable -Force
No match was found for the specified search criteria and module names 'AzTable'

The exact error message was as below

PackageManagement\Uninstall-Package: No match was found for the specified search criteria and
module names ‘AzTable’.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:2194 char:21

  • $null = PackageManagement\Uninstall-Package @PSBoundParameters
  • ~~~~~~~~~~~~~~
    • CategoryInfo : ObjectNotFound: (Microsoft.Power…ninstallPackage:UninstallPacka
      ge) [Uninstall-Package], Exception
    • FullyQualifiedErrorId : NoMatchFound,Microsoft.PowerShell.PackageManagement.Cmdlets.Unins
      tallPackage

No match was found for the specified search criteria and module names ‘AzTable’ [Solved]

To fix, this issue you can follow the below steps.

Open the PowerShell ISE or Windows PowerShell as Run as Administrator mode.

Uninstall-Package No match was found for the specified search criteria and
module names 'AzTable'.

Now to make sure that the ‘AzTable’ module is already installed for you, You can check the availability of all the installed module using the below PowerShell cmdlet. You can able to see that the AzTable module was actually not present in my case and this is the reason I got this error No match was found for the specified search criteria and module names ‘AzTable’.

PS C:\WINDOWS\system32> Get-InstalledModule
unable to find module repositories.

To check that, Let’s try to install the ‘AzTable’ module using the below PowerShell cmdlet. You can able to see that the AzTable module installed successfully with out any issue.

PS C:\WINDOWS\system32> Install-Module -Name AzTable -Force

Or, You can also use the below PowerShell cmdlet

PS C:\WINDOWS\system32> Install-Module -Name AzTable -RequiredVersion 2.0.2 -Scope CurrentUser -AllowClobber -Force 
uninstall-package : no match was found for the specified search criteria and module names

Now if you will run the below PowerShell cmdlet again, you can able to see, the AzTable module installed successfully.

PS C:\WINDOWS\system32> Get-InstalledModule

You can see the below screen shot

No match was found for the specified search criteria and module names

Now if you will try executing the below PowerShell cmdlet to uninstall the AzTable module, It will uninstall the AzTable module successfully with out any issue.

PS C:\WINDOWS\system32> UnInstall-Module AzTable -Force
Uninstall  AzTable module PowerShell

Now to make sure that the AzTable module is uninstalled successfully, you can run the Get-InstalledModule PowerShell cmdlet again. You can able to see the AzTable module is not present in the installed module list.

Error while uninstalling the AzTable PowerShell Module

This is how we can fix the error No match was found for the specified search criteria and module names ‘AzTable’.

You may also like following the below articles

Wrapping Up

Well, in this article we discussed how to fix the error No match was found for the specified search criteria and module names ‘AzTable’ error that i got while trying to uninstall the Azure PowerShell AzTable module using PowerShell ISE.

Leave a Comment