The term ‘Get-AzQuota’ is not recognized as the name of a cmdlet

In this Azure PowerShell article, we will discuss how to fix the error: “The term ‘Get-AzQuota’ is not recognized as the name of a cmdlet”. This error I got while executing the ‘Get-AzQuota’ PowerShell command.

The term ‘Get-AzQuota’ is not recognized as the name of a cmdlet

I was executing the below PowerShell cmdlet

Import-Module Az.Quota
Get-AzQuota -Scope "subscriptions/1cdf4300-dee5-4518-8c8c-feaa72a5ght1/providers/Microsoft.Network/locations/eastus"

The moment, I executed the above PowerShell script, I got the below complete error message.

Get-AzQuota : The term 'Get-AzQuota' is not recognized as the name of a cmdlet, 
function, script file, or operable program. Check the spelling of the name, or if a 
path was included, verify that the path is correct and try again.
At line:3 char:1
+ Get-AzQuota
+ ~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Get-AzQuota:String) [], CommandNotFoun 
   dException
    + FullyQualifiedErrorId : CommandNotFoundException

You can see the same output below

The term 'Get-AzQuota' is not recognized as the name of a cmdlet

The term ‘Get-AzQuota’ is not recognized as the name of a cmdlet [Solution]

Now, to solve this issue, I have done the below steps

  1. Open PowerShell ISE with Run as administrator mode.
  2. Ran the below PowerShell command to install the Az.Quota PowerShell module.
Install-Module -Name Az.Quota -AllowClobber -Scope CurrentUser
Install-Module -Name Az.Quota -AllowClobber -Scope CurrentUser

3. After installing the Az.Quota module, I re-ran the below PowerShell script, and this time I got the expected output successfully without any issue.

Import-Module Az.Quota
Get-AzQuota -Scope "subscriptions/1cdf4300-dee5-4518-8c8c-feaa72a5ght1/providers/Microsoft.Network/locations/eastus"

You can see the same output in the below screenshot.

Get-AzQuota PowerShell

Wrapping Up

In this Azure PowerShell article, we discussed fixing the error “The term ‘Get-AzQuota’ is not recognized as the name of a cmdlet.” I hope this information will help you to fix your issue. Thanks for reading this article !!!