azure-cli: az quota list giving an error

Following the instructions for az quota list, I get an error: Command:

az quota list --scope "subscriptions/${CUSTOMER_SUBSCRIPTION_ID}/providers/Microsoft.Compute/locations/australiaeast"

Error:

Command group 'quota' is experimental and under development. Reference and support levels: https://aka.ms/CLI_refstatus
(InvalidResourceType) The resource type could not be found in the namespace 'Microsoft.Compute' for api version '2021-03-15-preview'.
Code: InvalidResourceType
Message: The resource type could not be found in the namespace 'Microsoft.Compute' for api version '2021-03-15-preview'.

[Enter feedback here]

Version of az cli:

az version
{
  "azure-cli": "2.36.0",
  "azure-cli-core": "2.36.0",
  "azure-cli-telemetry": "1.0.6",
  "extensions": {
    "account": "0.2.2",
    "ad": "0.1.0",
    "aks-preview": "0.5.56",
    "azure-cli-ml": "1.37.0",
    "azure-devops": "0.23.0",
    "dataprotection": "0.2.0",
    "quota": "0.1.0"
  }
}

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 30 (9 by maintainers)

Most upvoted comments

@rahuls-microsoft @ZengTaoxu @yonzhan

I think people are coming to this github issue since the docs doesn’t exactly state with resource providers are currently supported with az quota

the docs even use az quota with the compute resource provider even though it’s not supported yet.

clarifying the docs with exactly which resource providers are supported along with working examples of supported ones i think would go a long way

The Microsoft.Compute Resource provider is not supported yet, only Microsoft.Network Resource provider is supported through this Api. We will notify when more RPs are onboarded. Currently QuotaRP is in private preview, so all the subscriptions will not have access to the APIs. We will notify, when it’s public preview starts.

the docs show compute examples, so there was expectation that they would work (in preview)

https://docs.microsoft.com/en-us/cli/azure/quota?view=azure-cli-latest#az-quota-list-examples