Azure / azure-policy

Repository for Azure Resource Policy built-in definitions and samples
MIT License
1.5k stars 1.09k forks source link

Allow to define the name of the diagnostic settings #1339

Closed HaikoHertes closed 3 months ago

HaikoHertes commented 3 months ago

Allow to define the name of the diagnostic settings that will be created but still providing the original name as default value.

The original policy definition has a static name being used for the diagnostic settings using "subscriptionToLa".

HaikoHertes commented 3 months ago

Hi @cemheren, @robga, @calecarter, @gokmen-msft - would you please review this PR and approve if you are ok with it? Thanks!

robga commented 3 months ago

The built-in policies are read-only in this repo for referencing purpose. I think you can create a custom policy for the need of different resource name to deploy.