You have an Azure subscription named Sub1 that contains a resource group named RG1.
You configure the following user role assignments in Sub1:
- User1 is assigned the Contributor role for Sub1.
- User2 is assigned the Contributor role for RG1 only.
You create an Azure Monitor action group named ActionGroup1 in RG1. You add an action to ActionGroup1 that uses the Email Azure Resource Manager Role configuration to notify the Contributor role.
You configure a metric alert rule for a virtual machine in RG1 and associate the rule with ActionGroup1.
When the metric alert triggers, which of the users will receive the email notification?
- ABoth User1 and User2
- Only User1Cevap
- COnly User2
- DNeither User1 nor User2
Cevap
Only User1
The Email Azure Resource Manager Role action in Azure Monitor action groups only sends emails to users who are assigned the selected role at the subscription scope. Since User1 has the Contributor role assigned for the entire subscription (Sub1), User1 will receive the email notification. User2's assignment is restricted to the resource group (RG1) scope and is not evaluated by this action, so User2 will not be notified.
Adım Adım Çözüm
Anahtar Kavram
Azure Monitor Action Groups support notifying users based on subscription-level Azure Resource Manager (ARM) roles. When using the 'Email Azure Resource Manager Role' action, emails are only sent to users who have the specified role explicitly assigned at the subscription scope. Inherited assignments or assignments made at the resource group or resource level are not evaluated.