164k views
4 votes
How can you prevent the creation of virtual machines only in a specific resource group?

a) Use Azure Policies
b) Utilize Virtual Machine Encryption
c) Configure Network Security Groups
d) Apply Azure Resource Locks

1 Answer

1 vote

Final answer:

To prevent the creation of virtual machines in a specific resource group, you can apply Azure Resource Locks, use Azure Policies, or configure Network Security Groups (NSGs).

Step-by-step explanation:

To prevent the creation of virtual machines only in a specific resource group, you can apply Azure Resource Locks. Azure Resource Locks allow you to lock resources in a particular resource group, preventing any modifications or deletions. By applying a lock at the resource group level, you can prevent the creation of new virtual machines in that specific resource group.

Another option to prevent the creation of virtual machines in a specific resource group is to use Azure Policies. Azure Policies allow you to define rules and constraints on resources within your Azure environment. By creating a policy specifically for virtual machines and assigning it to the desired resource group, you can restrict the creation of virtual machines in that resource group.

Configuring Network Security Groups (NSGs) is a third option to prevent the creation of virtual machines in a specific resource group. NSGs are a firewall that can be applied to a virtual network or subnet. By creating a custom NSG and associating it with the desired resource group, you can define inbound and outbound rules that control network traffic, including blocking the creation of new virtual machines.

User Minsk
by
7.7k points