'Get non-compliance reason for azure policy

I am able to get compliance reason code but unable to get "non-compliance reason" form azure policy->compliance details section,the type is diagnostic settings but using kusto query (kql) too unable to get compliance reason, in comment section added reference link about compliance details for reference https://techcommunity.microsoft.com/t5/azure-paas-blog/how-to-debug-unexpected-azure-policy-compliance-status-for-azure/ba-p/2111068?lightbox-message-images-2111068=251341i9770DC676B6B99E0



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source