Skip to content

[Feature Request]: Enable 'Null' on DiagnosticLogs setting to support Azure US Government #3449

Description

Description

Based on PR #3448, this issue aims to enable setting an empty value for diagnosticLogs on all modules.

Original description:

Azure US Government does not support any log collection with Diagnostic Logs (i.e., AllLogs is not supported). Allow selection of " '' " for the diagnosticLogCategoriesToEnable.

Example

For Virtual Networks, no logs can be collected via diagnostic settings, so we need to set this to allow '' (blank) or use other logic. I don't think that this is equally applied across all other diagnostic settings/modules (i.e., For Storage Accounts, we can collect logs of Type 'StorageRead', 'StorageWrite', and 'StorageDelete', but we cannot set this value to 'allLogs'.). Therefore, the CARML Storage Accounts module works, we just have to set the parameter appropriately (cannot use default) for AzureUSGovernment. I have yet to find another module that has the same problem as VirtualNetwork.

A reference implementation can be found in the linked original PR.

Metadata

Metadata

Labels

[cat] modulesenhancement

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions