A financial organization is designing a governance and monitoring solution for its Azure environment. The security team requires that all newly deployed virtual machines and Azure SQL databases automatically route their diagnostic logs to a central Azure Event Hubs namespace for ingestion into a third-party SIEM. The solution must ensure that resource deployments by application teams are never blocked, and any resource deployed without a diagnostic setting is automatically corrected to comply with the logging requirement.
Which configuration should you recommend?
- An Azure Policy definition with the DeployIfNotExists effect that deploys diagnostic settings pointing to the Event Hubs namespace, assigned at the subscription level.Cevap
- BAn Azure Policy definition with the Deny effect that blocks resource deployment if the diagnostic setting pointing to the Event Hubs namespace is not present in the deployment template.
- CAn Azure Policy definition with the Audit effect to flag missing diagnostic settings, with the remediation task running under a custom contributor role assigned directly to individual administrator user accounts.
- DAn Azure Policy definition with the DeployIfNotExists effect configured to route all VM and database logs to a single centralized Log Analytics workspace across all production and non-production subscriptions, ignoring regulatory segregation requirements.
Cevap
An Azure Policy definition with the DeployIfNotExists effect that deploys diagnostic settings pointing to the Event Hubs namespace, assigned at the subscription level.
The correct configuration uses Azure Policy with the DeployIfNotExists effect assigned at the subscription level. This effect allows the resource deployment to proceed normally and automatically deploys diagnostic settings to route logs to the Event Hubs namespace if they are missing, satisfying the non-blocking and automated remediation requirements.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy DeployIfNotExists effect for automatic diagnostic setting deployment and log routing compliance.