Learn the best approach to associate Azure virtual machines with their respective departments. Detailed explanation of Azure resource tagging for the Microsoft AZ-104 certification exam.
Table of Contents
Question
Your company has serval departments. Each department has a number of virtual machines (VMs).
The company has an Azure subscription that contains a resource group named RG1.
All VMs are located in RG1.
You want to associate each VM with its respective department.
What should you do?
A. Create Azure Management Groups for each department.
B. Create a resource group for each department.
C. Assign tags to the virtual machines.
D. Modify the settings of the virtual machines.
Answer
C. Assign tags to the virtual machines.
Explanation
In Azure, tags provide a way to logically organize and categorize resources within a subscription. Tags consist of key-value pairs that can be assigned to resources like virtual machines. By assigning tags to the VMs, you can associate each VM with its respective department without modifying the resource group structure or creating additional management groups.
Here’s why the other options are not the best fit:
A. Azure Management Groups are used for organizing subscriptions and applying governance policies at a higher level. They are not directly used for categorizing individual resources like VMs within a resource group.
B. Creating a separate resource group for each department would unnecessarily complicate the resource organization and management. Resource groups are primarily used for grouping related resources that share the same lifecycle and management requirements.
D. Modifying the settings of the virtual machines would not provide a standardized way to associate them with departments. VM settings are used for configuring the virtual machine itself, not for categorization purposes.
By leveraging Azure tags, you can easily assign department information to each VM, making it simple to filter, manage, and report on VMs based on their associated department. This approach provides flexibility and scalability without altering the existing resource group structure.
Microsoft AZ-104 certification exam practice question and answer (Q&A) dump with detail explanation and reference available free, helpful to pass the Microsoft AZ-104 exam and earn Microsoft AZ-104 certification.