An enterprise organizes its Azure subscriptions under a management group hierarchy. Under the root management group, there is a production management group named `MG-Prod`. You are designing a governance strategy to enforce security standards on Azure Storage accounts deployed under `MG-Prod` with the following requirements:
- If a storage account is deployed with secure transfer (HTTPS) disabled, it must be automatically configured to enable secure transfer during deployment.
- If a storage account is deployed with public blob access enabled, the deployment must be blocked.
- A resource group named `RG-Legacy-Shares` under a production subscription must be allowed to deploy storage accounts with public blob access enabled, but must still have secure transfer enforced.
Which policy design should you recommend?
- Assign a policy that uses the `Modify` effect to enable secure transfer on storage accounts to `MG-Prod`. Assign a second policy that uses the `Deny` effect to block public blob access to `MG-Prod`, and add `RG-Legacy-Shares` to the `notScopes` property of the second policy's assignment.Answer
- BAssign a policy that uses the `DeployIfNotExists` effect to enable secure transfer on storage accounts to `MG-Prod`. Assign a second policy that uses the `Deny` effect to block public blob access to `MG-Prod`, and add `RG-Legacy-Shares` to the `notScopes` property of both assignments.
- CGroup both policies into a single policy initiative. Assign the initiative to `MG-Prod`, and add `RG-Legacy-Shares` to the `notScopes` property of the initiative assignment.
- DAssign a policy that uses the `Modify` effect to enable secure transfer on storage accounts to `MG-Prod`. Assign a second policy that uses the `Audit` effect to monitor public blob access to `MG-Prod`, and configure an Azure Automation runbook to delete public storage accounts unless they are in `RG-Legacy-Shares`.