Hi Naresh,
Let me share you a graph query to get the resources that are not compliant and also you can export to csv.
policyresources
| where ['kind'] == 'policystates'
| extend compliant = properties.complianceState
| extend timestamp = properties.timestamp
| extend resourceType = properties.resourceType
| extend resourceId = properties.resourceId
| extend policyDefinitionId = properties.policyDefinitionId
| project name, policyDefinitionId, compliant, timestamp, resourceType, resourceId
| where compliant == 'NonCompliant'
To use to go to Azure portal > Azure Graph Explorer and run the query
If the information helped address your question, please Accept the answer.
Luis