An administrator wants to prevent users from creating virtual machines in an Azure subscription unless they specify a business unit tag. The administrator also wants to ensure that any existing virtual machines that do not have this tag are identified without being altered. Which Azure service should be used to meet these requirements?
- Azure PolicyAnswer
- BAzure Role-Based Access Control (RBAC)
- CAzure Resource Locks
- DAzure Service Health
Answer
Azure Policy
Azure Policy is the correct service because it allows administrators to define rules that enforce resource properties, such as requiring tags. It evaluates resources at deployment time (blocking non-compliant deployments) and audits existing resources to flag them as non-compliant without altering them.
Step-by-Step Solution
Key Concept
Azure Policy is used to enforce resource properties and evaluate compliance of resources.