nerdexam
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)
  • A
    4% (2)
  • B
    9% (5)
  • C
    2% (1)
  • D
    85% (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.

Full AZ-500 Practice