Using Azure Policy, can you disable creating virtual machines in all resource groups but one?

Experience Level: Junior
Tags: Azure CloudAzure Policy

Answer

Yes.

  • Set the scope of a policy to a whole subscription
  • Set Exclusions to exclude one resource group in which you want to allow creating virtual machines 
  • Set Not allowed resource types to Virtual Machine
Related Azure Cloud job interview questions

Comments

No Comments Yet.
Be the first to tell us what you think.
Azure Policy
Azure Policy

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself
AZ-104 Microsoft Azure Administrator Preparation
AZ-104 Microsoft Azure Administrator Preparation

Are you learning Azure Cloud ? Try our test we designed to help you progress faster.

Test yourself