ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 324 - AZ-104 discussion

Report
Export

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/virtualNetwork

- 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?

A.
Remove Microsoft.Network/virtualNetworks from the policy
Answers
A.
Remove Microsoft.Network/virtualNetworks from the policy
B.
Create an Azure Resource Manager template
Answers
B.
Create an Azure Resource Manager template
C.
Remove Microsoft.Compute/virtualMachines from the policy
Answers
C.
Remove Microsoft.Compute/virtualMachines from the policy
D.
Add a subnet to VNET1
Answers
D.
Add a subnet to VNET1
Suggested answer: A

Explanation:

To create a new virtual machine named VM2 which is connected to VNET1 in RG1, you need to remove Microsoft.Network/virtualNetworks from the policy. This is because the Not allowed resource types Azure policy denies the deployment of the specified resource types in the scope of the assignment. In this case, the policy is assigned to RG1 and uses the parameters Microsoft.Network/virtualNetworks and Microsoft.Compute/virtualMachines. This means that you cannot create or update any virtual networks or virtual machines in RG1. Therefore, to create VM2 and connect it to VNET1, you need to remove Microsoft.Network/virtualNetworks from the policy parameters. This will allow you to create or update virtual networks in RG1, but still prevent you from creating or updating virtual machines. Alternatively, you can also exclude VNET1 from the policy assignment scope, but this will affect the compliance of the policy for the entire virtual network.

Not allowed resource types (Deny)

Create and manage policies to enforce compliance


asked 26/09/2024
Kamran Kamran
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first