Built-in Policy "Deploy - Configure diagnostic settings for SQL Databases to Log Analytics workspace" is not working for "Dedicated SQL pool" resources

Vik 45 Reputation points
2023-08-24T18:26:43.4433333+00:00

Built-in policy "Deploy - Configure diagnostic settings for SQL Databases to Log Analytics workspace" applies to all the resources of type "Microsoft.Sql/servers/databases".

Although it has been working fine for the actual SQL databases as provided below

User's image

but keep failing for databases "Dedicated SQL pool" which also shares the same type as Microsoft.Sql/servers/databases but has a completely different log categories.User's image

The error I am getting with Remediation is "Category 'SQLInsights' is not supported. (Code: BadRequest)". Which makes sense as it's actually a different a resource but sharing the same resource type "Microsoft.Sql/servers/databases" 🙂

How can I resolve this compliance issue?

Azure SQL Database
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
922 questions
{count} votes

Accepted answer
  1. ShaikMaheer-MSFT 38,456 Reputation points Microsoft Employee
    2023-08-28T15:39:30.9566667+00:00

    Hi Vik,

    Thank you for posting query in Microsoft Q&A Platform.

    Great analysis. Appreciating your efforts. Please note, Dedicated SQL Pools are actual Data warehouse systems. Azure SQL DB's are not Data warehouse Systems. By design there are differences between Databases and Data warehouses. Hence you see different logs and they mapped to different resource types.

    Thank you for sharing your findings. This helps community as well.

    Hope this helps. Please let me know if any further queries.


    Please consider hitting Accept Answer button. Accepted answers help community as well.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.