An enterprise is designing an Azure governance solution. The security team mandates that all Azure Key Vaults in the production subscriptions must have diagnostic settings configured to send logs to a central Log Analytics workspace. The solution must ensure that when developers create new Key Vaults, the diagnostic settings are automatically created if they are missing, without preventing the creation of the Key Vaults. Which Azure Policy effect should you recommend in the policy design to meet these requirements?
- DeployIfNotExistsCevap
- BModify
- CDeny
- DAudit
Cevap
DeployIfNotExists
The DeployIfNotExists effect is the correct choice because diagnostic settings are distinct child resources (Microsoft.Insights/diagnosticSettings) associated with the Key Vault. DeployIfNotExists enables Azure Policy to automatically deploy these missing child resources without preventing developers from creating the Key Vaults.
Adım Adım Çözüm
Anahtar Kavram
Azure Policy effects dictate what action Azure takes when a resource is evaluated. DeployIfNotExists is used to remediate non-compliant resources by deploying nested or child resources, whereas Modify alters properties on the resource itself.
Tahmini Süre:1m 30s