Microsoft
AZ-500 · Question #323
Your company's Azure subscription includes Windows Server 2016 Azure virtual machines. You are informed that every virtual machine must have a custom antimalware virtual machine extension installed…
The correct answer is D. DeployIfNotExists. DeployIfNotExists executes a template deployment when the condition is met. https://docs.microsoft.com/en-us/azure/governance/policy/concepts/effects
Submitted by javi_es· Mar 6, 2026Secure compute, storage, and databases
Question
Your company's Azure subscription includes Windows Server 2016 Azure virtual machines. You are informed that every virtual machine must have a custom antimalware virtual machine extension installed. You are writing the necessary code for a policy that will help you achieve this. Which of the following is an effect that must be included in your code?
Options
- ADisabled
- BModify
- CAuditIfNotExists
- DDeployIfNotExists
How the community answered
(54 responses)- A4% (2)
- B9% (5)
- C2% (1)
- D85% (46)
Explanation
DeployIfNotExists executes a template deployment when the condition is met. https://docs.microsoft.com/en-us/azure/governance/policy/concepts/effects
Community Discussion
No community discussion yet for this question.