Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support allLog diagnostic settings category group in Azure Policies #64

Closed
SenthuranSivananthan opened this issue Nov 14, 2021 · 4 comments
Assignees

Comments

@SenthuranSivananthan
Copy link
Contributor

Category groups are a collection of different logs to help you achieve different monitoring goals. These groups are defined dynamically and Microsoft may add or remove categories as the product evolves, resulting in new charges.

Instead of specifying each log category separately, use the allLogs to ensure new categories added to diagnostic settings are automatically included.

Option in Azure Portal:

image

@SenthuranSivananthan SenthuranSivananthan added this to the v0.5.0 milestone Nov 14, 2021
@SenthuranSivananthan SenthuranSivananthan self-assigned this Nov 14, 2021
@SenthuranSivananthan SenthuranSivananthan changed the title Support allLog diagnostic settings category group Support allLog diagnostic settings category group in Azure Policies Nov 14, 2021
@SenthuranSivananthan
Copy link
Contributor Author

Will use updated diagnostic script from Jim Britt. Waiting for PR to merge: JimGBritt/AzurePolicy#40

@SenthuranSivananthan
Copy link
Contributor Author

Looks like with Category Groups, all categories need to be selected for a policy to be considered compliant.

Steps to reproduce:

  1. Created an Automation Account, generated policy via Create-AzDiagPolicy.ps1 and deployed.
  2. Create a new Automation Account and wait for DINE effect
  3. Run a compliance scan via az policy state trigger-scan --subscription sub_id

Observations:

For Automation Account, both allLogs and audit needs to be selected.

Automation Account Diagnostic Settings
image

Policy compliance failure reason
image

image


Policy is only compliant when both category groups are selected.

image

image

@SenthuranSivananthan SenthuranSivananthan removed this from the v0.5.0 milestone Nov 15, 2021
@SenthuranSivananthan
Copy link
Contributor Author

Cleared milestone until this feature is formally released.

@SenthuranSivananthan
Copy link
Contributor Author

We will revisit this issue if there's a need to support allLogs category and there's a consistent way to enable using built-in policies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant