Share via

How to stop auto instance creation?

Prathamesh Padosakar 0 Reputation points
2023-05-24T06:47:16.0533333+00:00

Hi Team,

Greetings for the day.

I would like to know, how we can stop auto provisioning of VM instances in azure cloud, like some people create 500 servers at a time using technologies like terraform etc.

We do not want user to create resources using such technologies.

Also, Can we put cap on VM instance creation here in azure cloud?

Thank you in advance for your help.

Best Regards,
Prathamesh Padosakar

Azure Cloud Services
Azure Cloud Services

An Azure platform as a service offer that is used to deploy web and cloud applications.

Azure VMware Solution

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,861 Reputation points Microsoft Employee Moderator
    2023-05-24T07:33:18.3833333+00:00

    Hello, @Prathamesh Padosakar !

    How do I limit the number of VMs that are created?

    First, there is a default subscription limit for the number of vCPUs available by VM size as well as by region:

    You can check your current usage quickly using CLI or PowerShell (CLI shown below):

    az vm list-usage --location "East US" -o table

    Strict limits to the number of VMs are managed through RBAC, where only authorized individuals or entities responsible for maintaining the VM quota would be allowed to create VMs (either manually or through automation):

    https://learn.microsoft.com/en-us/azure/role-based-access-control/overview

    For additional monitoring, you can create budgets and alerts to ensure that you don't exceed budgets or project scope when deploying resources:

    https://learn.microsoft.com/en-us/azure/well-architected/cost/monitor-alert

    https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-overview

    I hope this helps, Prathamesh!


    If this has been useful, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. If you still have questions, let us know in the comments. Thank you for helping to improve Microsoft Q&A!

    User's image

    Was this answer helpful?

    0 comments No comments

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.