Lab 06 -Another issue with cores in VM

marouf 145 Reputation points
2025-05-05T14:50:48.55+00:00

Hello,

In this lab 06,

https://microsoftlearning.github.io/AZ-104-MicrosoftAzureAdministrator/Instructions/Labs/LAB_06-Implement_Network_Traffic_Management.html

when I am trying to build a custom template, I can't because for all the VMs, Nics and a NSG, it says that 'cores exceeded' as it has 11 resources.

Error description:

{
  "code": "InvalidTemplateDeployment",
  "details": [
    {
      "code": "QuotaExceeded",
      "message": "Operation could not be completed as it results in exceeding approved Total Regional Cores quota. Additional details - Deployment Model: Resource Manager, Location: eastus, Current Limit: 4, Current Usage: 0, Additional Required: 6, (Minimum) New Limit Required: 6. Setup Alerts when Quota reaches threshold. Learn more at https://aka.ms/quotamonitoringalerting . Submit a request for Quota increase at https://aka.ms/ProdportalCRP/#blade/Microsoft_Azure_Capacity/UsageAndQuota.ReactView/Parameters/%7B%22subscriptionId%22:%22735993e7-97c6-4771-9bbd-37da1dcd6de9%22,%22command%22:%22openQuotaApprovalBlade%22,%22quotas%22:[%7B%22location%22:%22eastus%22,%22providerId%22:%22Microsoft.Compute%22,%22resourceName%22:%22cores%22,%22quotaRequest%22:%7B%22properties%22:%7B%22limit%22:6,%22unit%22:%22Count%22,%22name%22:%7B%22value%22:%22cores%22%7D%7D%7D%7D]%7D by specifying parameters listed in the ‘Details’ section for deployment to succeed. Please read more about quota limits at https://docs.microsoft.com/en-us/azure/azure-supportability/regional-quota-requests"
    }
  ],
  "message": "The template deployment 'Microsoft.Template-20250505174739' is not valid according to the validation procedure. The tracking id is '0e4a75e6-a5a9-4848-ae2f-37144eff69aa'. See inner errors for details."
}

I tried to request for an increase in the quotas, but because it's my free subscription, it's not allowing to upgrade or make a request. I tried to cut down the VMs from the template / parameters, but then I realized that it will have a knock-on effect on the rest of the JSON code.

Kindly, please assist.

Best

Marouf

Azure | Azure Training
0 comments No comments

Answer accepted by question author
VarunTha 15,095 Reputation points Microsoft External Staff Moderator
2025-05-05T19:42:01.14+00:00

Hi marouf,

We understand that you are encountering a limitation with your current subscription, which allows for a maximum of 4 cores in the East US region. The error message indicates that your deployment attempts to exceed this limit, resulting in the failure of the template deployment.

Here are some suggestions to help you resolve this issue:

1.Reduce Resource Count:

  • Since you are on a free subscription and unable to request a quota increase, consider modifying your template to deploy fewer virtual machines (VMs) or reducing the number of cores per VM. This adjustment will help you stay within the allowed limits.

2.Select Available VM Sizes:

  • As mentioned in the exercise, if you receive an error indicating that the VM size is unavailable, please ensure you select a SKU that is available in your subscription and has at least 2 cores. This will help you avoid further deployment issues.

3.Check Current Quotas:

  • You can use the Azure CLI to check your current quotas and available VM sizes. The following command will list the available VM sizes in the East US region:
      
      az vm list-skus --location eastus --size Standard_D
    

This command will provide you with a list of VM sizes and their respective core counts, allowing you to choose sizes that fit within your quota.

4.Free Trial Limitations:

  • While the free trial provides access to a wide range of Azure resources, it does come with certain limitations, including quotas on the number of cores and other resources. If you find that you need more resources than the free trial allows, you can consider upgrading to a Pay-As-You-Go subscription, which offers greater flexibility and higher resource limits.

If you have any further questions or need additional assistance, please feel free to reach out. We're here to help!

If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.