An organization is designing a governance strategy for Azure resources. You need to recommend Azure Policy configurations to meet the following requirements:
* Block the deployment of any virtual machine that does not use an approved SKU.
* Automatically deploy a diagnostics extension if a virtual machine is created without one.
Which two Azure Policy effects should you recommend?
- DenyAnswer
- DeployIfNotExistsAnswer
- CAudit
- DModify
Answer
The correct policy effects are Deny and DeployIfNotExists.
The correct policy effects are Deny and DeployIfNotExists. The Deny effect blocks the creation of resources that violate the policy rules, making it perfect for enforcing SKU restrictions. The DeployIfNotExists effect evaluates the resource configuration and, if a specified child resource (such as a diagnostics extension) is missing, deploys the resource via an ARM template deployment.
Step-by-Step Solution
Key Concept
Azure Policy effects determine how resources are evaluated and remediated to maintain governance standards.
Estimated Time:1m 0s