Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AZ-104 topic 2 question 57 discussion

Actual exam question from Microsoft's AZ-104
Question #: 57
Topic #: 2
[All AZ-104 Questions]

HOTSPOT -
You have an Azure subscription that contains the hierarchy shown in the following exhibit.

You create an Azure Policy definition named Policy1.
To which Azure resources can you assign Policy1 and which Azure resources can you specify as exclusions from Policy1? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Tenant Root Group, ManagementGroup1, Subscription1, RG1, and VM1
Once your business rules have been formed, the policy definition or initiative is assigned to any scope of resources that Azure supports, such as management groups, subscriptions, resource groups, or individual resources.
Note: Azure provides four levels of scope: management groups, subscriptions, resource groups, and resources. The following image shows an example of these layers.

Box 2: ManagementGroup1, Subscription1, RG1, and VM1
You can exclude a subscope from the assignment.
Reference:
https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/overview

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Ntinsky
Highly Voted 1 year, 2 months ago
Since the discussion added a lot of confusion cause a lot of people in here just drop random facts without any proof,misleading people, i tested it at an Azure lab. In the scope field at the "Basics" tab i was able to select "Tenant Root Group" or "Management Group1" with the optional entries of Subscription and Resource group So ""you can assign policy to Tenant Root Group,ManagementGroup1,Subscription1 and RG1"" As for the second answer about the exclusions, i was able to select all the items in the scope EXCEPT the Tenant Root Group Therefore the correct answer would be ""ManagementGroup1,Subscription1,RG11 and VM1"" I hope that helps
upvoted 196 times
Mohd1899
10 months, 3 weeks ago
I have tested this and got same , your answer 100% correct. thanks
upvoted 20 times
...
AK4U
9 months, 2 weeks ago
for the exclusions, the Subscription dropdown menu is grayed out as well as the Resource Group drop down menu.
upvoted 1 times
...
XristophD
1 year ago
Since your answer added a lot of confusion, cause you drop random answers: The Azure Portal only allows to select scopes down to Resource Groups. That is correct. BUT: With Azure CLI or Azure PowerShell, a Policy Assignment can be done at a specific resource. The Azure Portal UI is limited in many ways, so always check the possibilities with Azure CLI or PowerShell, before assuming something is not there or doesn't work.
upvoted 12 times
...
gpCert
10 months, 2 weeks ago
Why you could not assign policy to VM1 (for the first answer?)
upvoted 3 times
...
...
RichardBill
Highly Voted 1 year, 3 months ago
Wrong! You can assign a policy to the Root, Management Group, Subscription and Ressource Group BUT NOT A RESSOUCE ITSELF! Test it in Portal! 2nd part of answer seems to be correct. You can not Exclude the highest scope that you can assign to. I tried it in portal as well and it wont save the exclusion Tenant Root Group
upvoted 33 times
Traian
1 year, 3 months ago
I believe you are wrong. You can assign a policy to a resource :"An assignment is a policy definition or initiative that has been assigned to a specific scope. This scope could range from a management group to an individual resource." https://docs.microsoft.com/en-us/azure/governance/policy/overview - check assignments In my opinion the provided answer is correct
upvoted 20 times
RichardBill
1 year, 3 months ago
So I checked again and the portal doesnt let you do it! Thats what I based my assumption! But via Azure CLI it says that a ressource is a vaild scope for assignment: https://docs.microsoft.com/en-us/cli/azure/policy/assignment?view=azure-cli-latest#az-policy-assignment-create So yeah I think that you are right and my comment is wrong but I can not delete it. But looks like this is just a portal restriction. Sorry for the confusion!
upvoted 31 times
meeko86
1 year ago
Valid scopes are management group, subscription, resource group, and resource https://learn.microsoft.com/en-us/cli/azure/policy/assignment?view=azure-cli-latest#az-policy-assignment-create
upvoted 4 times
...
...
...
buzzerboy
11 months, 3 weeks ago
I couldnt assign a policy at Tenant Root Management Group. There is no blade for policy.
upvoted 2 times
...
XristophD
1 year ago
you CAN assign policies down to the resource, BUT not via the Azure Portal - you need to use Azure CLI or PowerShell. Only because the Portal UI is limited, doesn't say you can't do it via CLI or PowerShell. therefore, answer is
upvoted 2 times
...
northstar88
1 year, 3 months ago
Tried in portal as well. You cannot select resources as scope.
upvoted 4 times
...
...
Batiste2023
Most Recent 1 month ago
It turns out that you can assign an Azure Police to an individual resource, too: https://learn.microsoft.com/en-us/azure/governance/policy/concepts/scope
upvoted 3 times
...
mattpaul
1 month, 2 weeks ago
I passed with these questions and many friends passed too, all questions appeared in the real exam a great study resource, contact me on [email protected]
upvoted 1 times
...
TedM2
2 months ago
You cannot exclude the policy from the root management group because doing so would effectively mean that the policy wouldn't be effective ANYWHERE and would therefore be moot & useless.
upvoted 1 times
...
geekcu
2 months, 4 weeks ago
Answer should be as : 1. Tenant Root Group,ManagementGroup1,Subscription1 and RG1 2. ManagementGroup1,Subscription1,RG11 and VM1
upvoted 4 times
...
rodrigo2186
3 months, 1 week ago
Wrong. Answer in this video: https://www.youtube.com/watch?v=CKsTvwTezqA
upvoted 4 times
...
DimsumDestroyer
3 months, 3 weeks ago
The answer is most probably correct. Says here you can assign it to a resource. https://learn.microsoft.com/en-us/azure/governance/policy/overview "To simplify management, several business rules can be grouped together to form a policy initiative (sometimes called a policySet). Once your business rules have been formed, the policy definition or initiative is assigned to any scope of resources that Azure supports, such as management groups, subscriptions, resource groups, or individual resources. "
upvoted 2 times
...
kamalpur
4 months ago
Above answer is incorrect. explained in Part-46 in MS Administrator playlist of on @azurewala Youtube Channel
upvoted 2 times
fjreoi
3 months, 4 weeks ago
What is the correct ?
upvoted 1 times
fateman17
3 months, 2 weeks ago
check on his channel.
upvoted 1 times
...
...
...
MGJG
4 months, 1 week ago
1. Tenant Root Group, ManagementGroup1, Subscription1 and RG1 https://learn.microsoft.com/en-us/answers/questions/1086208/assign-policy-to-specific-resource-in-azure 2. ManagementGroup1, Subscription1, RG1, and VM1
upvoted 2 times
...
mariaazure
5 months, 2 weeks ago
"An assignment is a policy definition or initiative that has been assigned to a specific scope. This scope could range from a management group to an individual resource." You can assign a policy to a single resource. https://learn.microsoft.com/en-us/azure/governance/policy/overview#azure-policy-objects
upvoted 1 times
...
RandomNickname
6 months, 3 weeks ago
Given answer look correct to me. #1 You can assign to all, global pol from root to policy on resources, see; https://learn.microsoft.com/en-us/azure/governance/management-groups/overview https://learn.microsoft.com/en-us/cli/azure/policy/assignment?view=azure-cli-latest#az-policy-assignment-create #2 Exclusions in effect on all except global at root level; https://learn.microsoft.com/en-us/azure/governance/policy/concepts/scope https://learn.microsoft.com/en-us/azure/governance/policy/tutorials/create-and-manage
upvoted 2 times
...
ppolychron
7 months ago
1. Tenant Root Group, ManagementGroup1, Subscription1, RG1, and VM1 2. ManagementGroup1, Subscription1, RG1, and VM1 First elevate the access of your global admin or else the Root Group cannot be used as scope: https://learn.microsoft.com/en-us/azure/role-based-access-control/elevate-access-global-admin
upvoted 1 times
...
vinsom
7 months, 1 week ago
Got this question - Passed the exam today, 1/May/23 - scored 930. I am still digesting the fact that 95% of the questions are from here, though it is tough to believe before you take the exam.
upvoted 6 times
...
Slimus
8 months ago
https://learn.microsoft.com/en-us/azure/governance/policy/assign-policy-portal A - On the Assign Policy page, set the Scope by selecting the ellipsis and then selecting either a management group or subscription. Optionally, select a resource group. A scope determines what resources or grouping of resources the policy assignment gets enforced on. B - Resources can be excluded based on the Scope. Exclusions start at one level lower than the level of the Scope. So based on documentation and my Azure portal lab work: A - You can assign policy to: Root Tenant Group , MGMT Group, Subscriptions and resource group only. (No assignment to resource itself as VM1) B - You can exclude policy: MGMT Group, Subscriptions and resource group and VM1 - you can't exclude the Root mgmt group as needs to be at one level lower then root to make exclusion working.
upvoted 1 times
...
er101q
10 months, 1 week ago
You can assign Policy1 to: Tenant Root Group, ManagementGroup1, Subscription1, RG1, and VM1. You can exclude Policy1 from: ManagementGroup1, Subscription1, RG1, and VM1 only.
upvoted 4 times
er101q
10 months, 1 week ago
Azure Policies can be assigned at the management group, subscription, or resource group level and can be applied to all resources within those scopes. Exclusions can also be defined at the management group, subscription, or resource group level, so that specific resources can be excluded from the policy enforcement. Since the hierarchy in the question includes a Tenant Root Group, Management Group 1, Subscription 1, Resource Group 1, and VM 1, Policy1 can be assigned to all of these levels, including the individual virtual machine (VM1). However, exclusions can only be applied to the levels of Management Group 1, Subscription 1, Resource Group 1, and VM1, as the Tenant Root Group is the highest level and cannot have exclusions defined for it.
upvoted 4 times
...
...
zellck
10 months, 1 week ago
1. Tenant Root Group, ManagementGroup1, Subscription1, RG1, and VM1 2. ManagementGroup1, Subscription1, RG1, and VM1 https://learn.microsoft.com/en-us/azure/governance/policy/overview#overview Once your business rules have been formed, the policy definition or initiative is assigned to any scope of resources that Azure supports, such as management groups, subscriptions, resource groups, or individual resources. https://learn.microsoft.com/en-us/azure/governance/policy/tutorials/create-and-manage Resources can be excluded based on the Scope. Exclusions start at one level lower than the level of the Scope.
upvoted 12 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...