An organization has an Azure management group named MG-Finance. A child subscription named Sub-Analytics is under MG-Finance. Within Sub-Analytics, there is a resource group named RG-Reporting.
An administrator configures the following Azure Policy settings:
1. A policy definition that requires a cost-center tag on resources is assigned to MG-Finance with the effect set to Deny. An exclusion is configured on this assignment for RG-Reporting.
2. A policy definition that audits missing cost-center tags on resources is assigned to Sub-Analytics with the effect set to Audit. There are no exclusions configured for this assignment.
An administrator attempts to deploy an Azure SQL database without a cost-center tag into RG-Reporting.
Which of the following describes the outcome of this deployment?
- AThe deployment is blocked, and the Azure SQL database creation fails.
- BThe deployment succeeds, and the missing cost-center tag is automatically appended to the Azure SQL database.
- The deployment succeeds, and the Azure SQL database is flagged as non-compliant in Azure Policy compliance reporting.Answer
- DThe deployment is blocked, and a policy remediation task is automatically initiated to apply the tag.