是否有PowerShell脚本来解析Azure Automation DSC的原始报告输出 [英] Is there a PowerShell script to parse the raw report output from Azure Automation DSC
问题描述
你好
如果我查看Azure Automation DSC中节点的合规性,则可以看到报告.我还可以打开RAW报告并将其导出到文本文件(因为它包含的信息比您在GUI报告中看到的信息还多).
if I look at the compliance of a Node in Azure Automation DSC, I can see a Report. I can also low a the RAW report and export this RAW report to a text file (as it contains more information than you see in the GUI report).
乍一看,它看起来像一个Json文件,但没有通过Json解析器测试.
At first glance this looks like a Json file but it does not pass the Json parser test.
因此,我想知道是否有人已经编写了一个PowerShell脚本(无法通过搜索找到脚本)来解析此原始内容并将其转换为PowerShell对象以便于处理?
Therefore I wondered if someone was already written a PowerShell script (cannot find one by searching) to parse this raw content and turn it into PowerShell objects for easier handling ?
谢谢
CXMelga
推荐答案
function GetReport { param (
AgentId =AgentId = "
((glcm).AgentId)",((glcm).AgentId)",
这篇关于是否有PowerShell脚本来解析Azure Automation DSC的原始报告输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!