@Madhu Rao Thanks for reaching out. The compliance reason differs based on the evaluation done on the resources. Here are some articles which can help you to figure out why your policy state is non-compliant.
- https://techcommunity.microsoft.com/t5/azure-paas-blog/how-to-debug-unexpected-azure-policy-compliance-status-for-azure/ba-p/2111068
- https://learn.microsoft.com/en-us/azure/governance/policy/troubleshoot/general#scenario-compliance-isnt-as-expected
If you are still facing issue, do revert and comment here. We will assist you accordingly.