question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`az acs create` fails on empty subscription due to QuotaExceeded

See original GitHub issue

When provisioning a Kubernetes cluster in westus in a newly created subscription (MSDN linked) via

az acs create -g ${project_id} -n ${cluster_name} --orchestrator-type Kubernetes \
  --ssh-key-value ~/.ssh/kube_rsa.pub

The error is the following:

{
  "status": "Failed",
  "error": {
    "code": "ResourceDeploymentFailure",
    "message": "The resource operation completed with terminal provisioning state 'Failed'.",
    "details": [
      {
        "code": "QuotaExceeded",
        "message": "Provisioning of resource(s) for container service 'k8s-cluster' in resource group 'habitat-k8s' failed with 1 error(s): \\n Resource target: , code: QuotaExceeded, message: \\n Operation results in exceeding quota limits of Core. Maximum allowed: 10, Current in use: 0, Additional requested: 12.\r\n"
      }
    ]
  }
}

I would expect the default command to provision and not exceed the quota possibly with less resources (if possible). If not possible, we should provide guidance on using a different region or requesting a higher quota.

@brendandburns what would you want to happen in this situation?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
murphyecommented, Oct 14, 2017

This should be properly documented. I am a new Azure user and I was a bit flummoxed by this one due to the lack of docs. The initial error message (via a URL) told me to file a Customer Support ticket to get my quota level raised; I was shocked.

I am on the Free Trial which maybe is giving me a limited quota. I finally ended up doing to get the k8s cluster to deploy:

az acs create --orchestrator-type kubernetes --resource-group sample --name sample-cluster --agent-vm-size Standard_DS1_v2 --agent-count 2

As a new Azure user, I had to research even what VM size to put. Please make it more clear for new Azure users how to deploy a basic k8s cluster given limited quota.

1reaction
murphyecommented, Oct 16, 2017

@devigned Thanks for reaching out. I am using edge CLI (due to recent defects) and running on Python 3 (as a workaround to a defect). To be honest, I have had an extremely rough experience so far using Azure CLI with the Container Services, such as this issue, and:

https://github.com/Azure/azure-cli/issues/4678 https://github.com/Azure/azure-cli/issues/4587 https://github.com/Azure/azure-cli/pull/4646

I ran into another quota issue today where I deleted my k8s cluster and tried to start a new one, but the fact that the cluster was deleted didn’t register with the quota limit. I finally had to upgrade to Pay as You Go because I was blocked and couldn’t do anything with Container Service. Now I am under the impression that I am being charged even though I had plenty of credits left on my Free Trial, which is unfortunate.

At the time I received the quota error, I did not have anything else running in Azure which could have been reducing my quota. I wish Azure just worked like the Google Cloud free trial where there are no quotas put in place (as far as I know) simply because I am on a trial account.

I really hope you guys get things ironed out with the CLI and Container Service in Azure. It’s promising but it seems like I have had Murphy’s Law so far in using it. I even had to upgrade my Mac OS to High Sierra just to be able to build the edge CLI project due to Python dependency issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure Kubernetes - 'az acs create' and exceeding free account ...
Message: Operation results in exceeding quota limits of Core. Maximum allowed: 4, Current in use: 0, Additional requested: 5.. Details: \"\n }.
Read more >
Resource quota errors - Azure - Microsoft Learn
Symptom. If your template creates resources that exceed your Azure quotas, you might get the following error: Output
Read more >
azure-cli-acs - PyPI
BREAKING CHANGE: 'show' commands log error message and fail with exit code of 3 upon a missing resource. az aks create will error...
Read more >
Azure CLI Archives - Please Release Me
If you only have one Azure subscription you can delete the lines that set a ... The az acs create command in particular...
Read more >
Template: Deploy a Kubernetes Cluster on Azure
Microsoft Azure has a Free Trial subscription (at the time of writing), ... az acs create --name <a made-up cluster name> \ --resource-group...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found