I have the following GuestConfiguration with several compliance status':

I want to be able to view these records in the log analytics workspace or something similar and eventually, output the results as a CSV for auditing.
I tried to use the policy assignment. However, this only gives me the overall "is the VM compliant": YES/NO. I'm trying to keep the compliance granularity per VM.
As there is no feature in
Log Analyticsto export query results to Excel, you can achieve the same scenario by using aLogic App.Here is the steps to send Log Analytics query result to CSV using Logic Apps.
KQL queryinLog AnalyticsLogic App3.After running the
Logic Appflow, theCSVfile generated by theKQL queryhas been uploaded to theStorage accountas shown below.CSV File
Reference: Connect to Log Analytics or Application Insights from workflows in Azure Logic Apps