question

himanshuk avatar image
0 Votes"
himanshuk asked MayankBargali-MSFT edited

DSC node have report details can't fetch using script

I have added node in power shell DSC and node have report details -script-resource-contains names

I want to retrieve the names info using cmd or powershell or az cli but won't get it or found it
I have used
export-azautomationdscnodereportcontent but the cmdlet have bugs https://GitHub.com/Azure/azure-powershell/issues/9663

windows-server-powershellazure-automation
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello @himanshuk

The Export-AzAutomationDscNodeReportContent cmdlet exports the raw contents of an APS Desired State Configuration (DSC) report. A DSC node sends a DSC report to Azure Automation.

If you find errors using it then better try Troubleshooting Azure Automation State Configuration issues.

https://docs.microsoft.com/en-us/azure/automation/troubleshoot/desired-state-configuration


--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.