You manage the following Azure resource hierarchy:
* A management group named `MG-Production`
* A subscription named `Sub-App` that is a child of `MG-Production`
* Two resource groups in `Sub-App` named `RG-Web` and `RG-Data`
You assign an Azure Policy definition named `Allow-SKUs` (which uses a `Deny` effect to restrict VM SKUs to `Standard_D2s_v5` or `Standard_D4s_v5`) to `MG-Production`. You configure the assignment with an exclusion for `RG-Data`.
You also assign an Azure Policy initiative named `Audit-Compliance` (which contains a policy definition that audits resources missing the `Project` tag using the `Audit` effect) to `Sub-App`.
You attempt to deploy the following virtual machines:
* `VM1`: A `Standard_D8s_v5` VM without the `Project` tag in `RG-Web`
* `VM2`: A `Standard_D8s_v5` VM without the `Project` tag in `RG-Data`
What is the outcome of these deployment attempts?
- VM1 deployment is blocked by the policy definition. VM2 is deployed successfully but marked as non-compliant.Cevap
- BBoth VM1 and VM2 deployments are blocked by the policy definition.
- CVM1 is deployed successfully but marked as non-compliant. VM2 deployment is blocked by the policy initiative.
- DBoth VM1 and VM2 are deployed successfully, and both are marked as non-compliant.