How to add a limit for the number of VMs that can be created in a specific resource group?

Sabrina 41 Reputation points

Can I do this programmatically while creating the resource group?

Can I also limit the Size of the VM available to only be Standard_B1Is?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
4,585 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,083 questions
No comments
{count} votes

Accepted answer
  1. Pradeep Kommaraju 2,521 Reputation points

    Hi @Sabrina

    Thank you for reaching out to Microsoft Q & A Platform

    The number of VM's per resource group parameter is fixed and cant be changed :

    You can try out creating Azure policy for the second use case of only creating certain types of VM's in a resource group .

    Request you to please accept the answer if this was helpful in implementing your use case .

    Thanks & Regards,

    No comments

1 additional answer

Sort by: Most helpful
  1. Sabrina 41 Reputation points

    @Pradeep Kommaraju , thanks for you response. What is the fixed number per resource group? Reading the chart, I see a number per subscription per region but not specifically a resource group.