How to fix Audit Diagnostic Setting recommendation (Security Center/Microsoft Defender for cloud)

Mateusz Kulpa 16 Reputation points

The title of recommendation is Audit diagnostic Setting and the description: Audit diagnostic setting for selected resource types.

There is no automatic "Fix" button.

For most resources like Storage Accounts and App Services I opened the Diagonostic Settings on the resources and configured it to send the logs/metrics to Log Analytics workspace. But it complains for some resources that do not have "Diagnostic Settings" in the menu like:

  • Virtual Network Gateway (VPN)
  • SQL "master" Database (regular databases have this option and it worked fine for them)
  • Virtual machine scale set for Azure Kubernetes Service

I tried to set it on "parent" resources (e.g. Virtual Network, SQL Server, Azure Kubernetes Service) but it did not help.

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,019 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,777 questions
Microsoft Defender for Cloud
Microsoft Defender for Cloud
An Azure service that provides threat protection for workloads running in Azure, on-premises, and in other clouds. Previously known as Azure Security Center and Azure Defender.
1,117 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
332 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hollish Tnoops 1 Reputation point

    Same issue here on hundreds of VMs, only difference is that ours are already sending diagnostics to Log Analytics so I'm really not sure what it's complaining about.