An organization has an Azure resource hierarchy consisting of a Management Group named Corp-MG, a subscription named Sub-Production under Corp-MG, and three resource groups under Sub-Production: RG-App-Prod, RG-Database-Prod, and RG-Shared-Services.
The following policy assignments are active in the environment:
- Assignment 1: An Azure Policy definition that restricts allowed virtual machine SKUs to 'Standard_D2s_v3' and 'Standard_D4s_v3'. The policy effect is set to Deny. This policy is assigned at the Sub-Production subscription level with an exclusion configured for RG-Shared-Services.
- Assignment 2: A custom policy definition that denies the deployment of any resource if it does not have the 'Environment' tag with the value 'Production'. This policy is assigned at the Corp-MG Management Group level with no exclusions.
An administrator attempts to perform the following actions:
- Action 1: Deploy a virtual machine with SKU 'Standard_F4s' and the tag 'Environment: Production' in RG-Shared-Services.
- Action 2: Deploy a virtual machine with SKU 'Standard_D2s_v3' and no tags in RG-Database-Prod.
Which of the deployments will succeed?
- ABoth Action 1 and Action 2 are blocked.
- BAction 2 succeeds, but Action 1 is blocked.
- Action 1 succeeds, but Action 2 is blocked.Answer
- DBoth Action 1 and Action 2 succeed.