简体   繁体   中英

Microsoft Azure - Limit resource group elements - custom policy

my goal is to limit the creation of resource type per owner/collaborator of a specific Resource Group. Example: User_Group_XXX accessed by account YYY:

  • MAX 2 VM - Standard D2s v3
  • MAX 1 Kubernetes Cluster with 2 node - Standard DS2 v2

NO more than that and NO other type of resources.

How can I include those limits?

this is not possible by definition. Azure Policy looks at individual resource properties, so there is no way to have it do something like that (so check other resources and apply policy based on those resource to a the resource in question).

although, you could easily create a policy to only allow virtual machines\\aks clusters.

again, policies cannot be scoped to users

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM