You have an Azure subscription that contains a resource group named RG1. RG1 contains 100 virtual machines.
Your company has three cost centers named Manufacturing, Sales, and Finance.
You need to associate each virtual machine to a specific cost center.
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D.C
You apply tags to your Azure resources to logically organize them into a taxonomy. Each tag consists of a name and a value pair. After you apply tags, you can retrieve all the resources in your subscription with that tag name and value.
Tags enable you to retrieve related resources from different resource groups.
This approach is helpful when you need to organize resources for billing or management.
https://docs.microsoft.com/en-us/azure/billing/billing-getting-started https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-using-tagsThe correct answer is C. Assign tags to the virtual machines.
Tags are name-value pairs that enable you to categorize Azure resources, such as virtual machines, and logically organize them into a taxonomy. By applying tags to your resources, you can retrieve, sort, and filter them for billing purposes or to identify resources that require additional configuration or maintenance.
To associate each virtual machine with a specific cost center, you can create a tag named "CostCenter" and assign it a value of "Manufacturing," "Sales," or "Finance" depending on the cost center associated with the virtual machine. You can then apply this tag to each virtual machine in the resource group.
To apply a tag to a virtual machine in the Azure portal, follow these steps:
You can repeat these steps for each virtual machine in the resource group to associate them with the appropriate cost center.
Option A, "Add an extension to the virtual machines," is incorrect because extensions are used to install software or run scripts on virtual machines, not to associate them with cost centers.
Option B, "Modify the inventory settings of the virtual machine," is not a valid option in Azure.
Option D, "Configure locks for the virtual machine," is used to prevent accidental deletion or modification of resources, but it does not enable you to associate virtual machines with cost centers.