nerdexam
Microsoft

AZ-104 · Question #334

You have an Azure subscription that contains the resources shown in the following table. The Not allowed resource types Azure policy is assigned to RG1 and uses the following parameters…

The correct answer is A. Remove Microsoft.Compute/virtualMachines from the policy. The Not allowed resource types Azure policy prohibits the deployment of specified resource types. You specify an array of the resource types to block. Virtual Networks and Virtual Machines are prohibited…

Submitted by skyler.x· Mar 4, 2026Manage identities and governance

Question

You have an Azure subscription that contains the resources shown in the following table. The Not allowed resource types Azure policy is assigned to RG1 and uses the following parameters: Microsoft.Network/virtualNetworks Microsoft.Compute/virtualMachines In RG1, you need to create a new virtual machine named VM2, and then connect VM2 to VNET1. What should you do first?

Options

  • ARemove Microsoft.Compute/virtualMachines from the policy.
  • BCreate an Azure Resource Manager template
  • CAdd a subnet to VNET1.
  • DRemove Microsoft.Network/virtualNetworks from the policy.

How the community answered

(48 responses)
  • A
    56% (27)
  • B
    25% (12)
  • C
    6% (3)
  • D
    13% (6)

Explanation

The Not allowed resource types Azure policy prohibits the deployment of specified resource types. You specify an array of the resource types to block. Virtual Networks and Virtual Machines are prohibited. https://docs.microsoft.com/en-us/azure/governance/policy/samples/not-allowed-resource-types

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice