< Back
Export-AzureRmAutomationDscNodeReportContent
Post
NAME Export-AzureRmAutomationDscNodeReportContent
SYNOPSIS
Exports the raw content of a DSC report sent from a DSC node to Automation.
SYNTAX
Export-AzureRmAutomationDscNodeReportContent [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile
<IAzureContextContainer>] [-Force] -NodeId <Guid> [-OutputFolder <String>] -ReportId <Guid> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Export-AzureRmAutomationDscNodeReportContent cmdlet exports the raw contents of an APS Desired State Configuration (DSC) report. A DSC node
sends a DSC report to Azure Automation.
PARAMETERS
-AutomationAccountName <String>
Specifies the name of an Automation account. This cmdlet exports report content for a DSC node that belongs to the Automation account that
this parameter specifies.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
Indicates that this cmdlet replaces an existing local file with a new file that has the same name.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-NodeId <Guid>
Specifies the unique ID of the DSC node for which this cmdlet exports report contents.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-OutputFolder <String>
Specifies the output folder where this cmdlet exports report contents.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ReportId <Guid>
Specifies the unique ID of the DSC node report that this cmdlet exports.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of a resource group. This cmdlet exports the contents of a report for the DSC node that belongs to the resource group that
this cmdlet specifies.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
System.IO.DirectoryInfo
NOTES
Example 1: Export a report from a DSC node
PS C:\\>$Node = Get-AzureRmAutomationDscNode -ResourceGroupName "ResourceGroup03" -AutomationAccountName "AutomationAccount01" -Name "Computer14"
PS C:\\> $Report = Get-AzureRmAutomationDscNodeReport -ResourceGroupName "ResourceGroup03" -AutomationAccountName "ContosoAutomationAccount"
-NodeId $Node.Id -Latest
PS C:\\> $Report | Export-AzureRmAutomationDscNodeReportContent -OutputFolder "C:\\Users\\PattiFuller\\Desktop"
This set of commands exports the latest report from the DSC node named Computer14 to the desktop.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ortcontent
Export-AzureRmAutomationDscNodeReportContent
Get-AzureRmAutomationDscNode
Get-AzureRmAutomationDscNodeReport
SYNOPSIS
Exports the raw content of a DSC report sent from a DSC node to Automation.
SYNTAX
Export-AzureRmAutomationDscNodeReportContent [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile
<IAzureContextContainer>] [-Force] -NodeId <Guid> [-OutputFolder <String>] -ReportId <Guid> [-Confirm] [-WhatIf] [<CommonParameters>]
DESCRIPTION
The Export-AzureRmAutomationDscNodeReportContent cmdlet exports the raw contents of an APS Desired State Configuration (DSC) report. A DSC node
sends a DSC report to Azure Automation.
PARAMETERS
-AutomationAccountName <String>
Specifies the name of an Automation account. This cmdlet exports report content for a DSC node that belongs to the Automation account that
this parameter specifies.
Required? true
Position? 1
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-DefaultProfile <IAzureContextContainer>
The credentials, account, tenant, and subscription used for communication with azure
Required? false
Position? named
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Force [<SwitchParameter>]
Indicates that this cmdlet replaces an existing local file with a new file that has the same name.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-NodeId <Guid>
Specifies the unique ID of the DSC node for which this cmdlet exports report contents.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-OutputFolder <String>
Specifies the output folder where this cmdlet exports report contents.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ReportId <Guid>
Specifies the unique ID of the DSC node report that this cmdlet exports.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-ResourceGroupName <String>
Specifies the name of a resource group. This cmdlet exports the contents of a report for the DSC node that belongs to the resource group that
this cmdlet specifies.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Confirm [<SwitchParameter>]
Prompts you for confirmation before running the cmdlet.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
-WhatIf [<SwitchParameter>]
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Required? false
Position? named
Default value False
Accept pipeline input? False
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
None
This cmdlet does not accept any input.
OUTPUTS
System.IO.DirectoryInfo
NOTES
Example 1: Export a report from a DSC node
PS C:\\>$Node = Get-AzureRmAutomationDscNode -ResourceGroupName "ResourceGroup03" -AutomationAccountName "AutomationAccount01" -Name "Computer14"
PS C:\\> $Report = Get-AzureRmAutomationDscNodeReport -ResourceGroupName "ResourceGroup03" -AutomationAccountName "ContosoAutomationAccount"
-NodeId $Node.Id -Latest
PS C:\\> $Report | Export-AzureRmAutomationDscNodeReportContent -OutputFolder "C:\\Users\\PattiFuller\\Desktop"
This set of commands exports the latest report from the DSC node named Computer14 to the desktop.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ortcontent
Export-AzureRmAutomationDscNodeReportContent
Get-AzureRmAutomationDscNode
Get-AzureRmAutomationDscNodeReport