< Back
Get-AzureRmAutomationDscNodeReport
Post
NAME Get-AzureRmAutomationDscNodeReport
SYNOPSIS
Gets reports sent from a DSC node to Automation.
SYNTAX
Get-AzureRmAutomationDscNodeReport [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile <IAzureContextContainer>]
[-EndTime <DateTimeOffset>] -NodeId <Guid> [-StartTime <DateTimeOffset>] [<CommonParameters>]
Get-AzureRmAutomationDscNodeReport [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile <IAzureContextContainer>] -Id
<Guid> -NodeId <Guid> [<CommonParameters>]
Get-AzureRmAutomationDscNodeReport [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile <IAzureContextContainer>]
[-Latest] -NodeId <Guid> [<CommonParameters>]
DESCRIPTION
The Get-AzureRmAutomationDscNodeReport cmdlet gets reports sent from an APS Desired State Configuration (DSC) node to Azure Automation.
PARAMETERS
-AutomationAccountName <String>
Specifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the 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
-EndTime <DateTimeOffset>
Specifies an end time. This cmdlet gets reports that Automation received before this time.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Id <Guid>
Specifies the unique ID of the DSC node report for this cmdlet to get.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Latest [<SwitchParameter>]
Indicates that this cmdlet gets the latest DSC report for the specified node only.
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 gets reports.
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 that contains the DSC node for which this cmdlet gets reports.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-StartTime <DateTimeOffset>
Specifies a start time. This cmdlet gets reports that Automation received after this time.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
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
Microsoft.Azure.Commands.Automation.Model.DscNode
NOTES
Example 1: Get all reports for a DSC node
PS C:\\>$Node = Get-AzureRmAutomationDscNode -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -Name "Computer14"
PS C:\\> Get-AzureRmAutomationDscNodeReport -ResourceGroupName "ResourceGroup14" -AutomationAccountName "Contoso17" -NodeId $Node.Id
The first command gets the DSC node for the computer named Computer14 in the Automation account named Contoso17. The command stores this object in
the $Node variable.
The second command gets metadata for all reports sent from the DSC node named Computer14 to the Automation account named Contoso17. The command
specifies the node by using the Id property of the $Node object.
Example 2: Get a report for a DSC node by report ID
PS C:\\>$Node = Get-AzureRmAutomationDscNode -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -Name "Computer14"
PS C:\\> Get-AzureRmAutomationDscNodeReport -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -NodeId $Node.Id -Id
c0a1718e-d8be-4fa3-91b6-82e1d3a36298
The first command gets the DSC node for the computer named Computer14 in the Automation account named Contoso17. The command stores this object in
the $Node variable.
The second command gets metadata for the report identified by the specified ID sent from the DSC node named Computer14 to the Automation account
named Contoso17.
Example 3: Get the latest report for a DSC node
PS C:\\>$Node = Get-AzureRmAutomationDscNode -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -Name "Computer14"
PS C:\\> Get-AzureRmAutomationDscNodeReport -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -NodeId $Node.Id -Latest
The first command gets the DSC node for the computer named Computer14 in the Automation account named Contoso17. The command stores this object in
the $Node variable.
The second command gets metadata for the latest report sent from the DSC node named Computer14 to the Automation account named Contoso17.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... nodereport
Get-AzureRmAutomationDscNode
Export-AzureRmAutomationDscNodeReportContent
SYNOPSIS
Gets reports sent from a DSC node to Automation.
SYNTAX
Get-AzureRmAutomationDscNodeReport [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile <IAzureContextContainer>]
[-EndTime <DateTimeOffset>] -NodeId <Guid> [-StartTime <DateTimeOffset>] [<CommonParameters>]
Get-AzureRmAutomationDscNodeReport [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile <IAzureContextContainer>] -Id
<Guid> -NodeId <Guid> [<CommonParameters>]
Get-AzureRmAutomationDscNodeReport [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-DefaultProfile <IAzureContextContainer>]
[-Latest] -NodeId <Guid> [<CommonParameters>]
DESCRIPTION
The Get-AzureRmAutomationDscNodeReport cmdlet gets reports sent from an APS Desired State Configuration (DSC) node to Azure Automation.
PARAMETERS
-AutomationAccountName <String>
Specifies the name of an Automation account. This cmdlet exports reports for a DSC node that belongs to the 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
-EndTime <DateTimeOffset>
Specifies an end time. This cmdlet gets reports that Automation received before this time.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Id <Guid>
Specifies the unique ID of the DSC node report for this cmdlet to get.
Required? true
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-Latest [<SwitchParameter>]
Indicates that this cmdlet gets the latest DSC report for the specified node only.
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 gets reports.
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 that contains the DSC node for which this cmdlet gets reports.
Required? true
Position? 0
Default value None
Accept pipeline input? True (ByPropertyName)
Accept wildcard characters? false
-StartTime <DateTimeOffset>
Specifies a start time. This cmdlet gets reports that Automation received after this time.
Required? false
Position? named
Default value None
Accept pipeline input? True (ByPropertyName)
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
Microsoft.Azure.Commands.Automation.Model.DscNode
NOTES
Example 1: Get all reports for a DSC node
PS C:\\>$Node = Get-AzureRmAutomationDscNode -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -Name "Computer14"
PS C:\\> Get-AzureRmAutomationDscNodeReport -ResourceGroupName "ResourceGroup14" -AutomationAccountName "Contoso17" -NodeId $Node.Id
The first command gets the DSC node for the computer named Computer14 in the Automation account named Contoso17. The command stores this object in
the $Node variable.
The second command gets metadata for all reports sent from the DSC node named Computer14 to the Automation account named Contoso17. The command
specifies the node by using the Id property of the $Node object.
Example 2: Get a report for a DSC node by report ID
PS C:\\>$Node = Get-AzureRmAutomationDscNode -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -Name "Computer14"
PS C:\\> Get-AzureRmAutomationDscNodeReport -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -NodeId $Node.Id -Id
c0a1718e-d8be-4fa3-91b6-82e1d3a36298
The first command gets the DSC node for the computer named Computer14 in the Automation account named Contoso17. The command stores this object in
the $Node variable.
The second command gets metadata for the report identified by the specified ID sent from the DSC node named Computer14 to the Automation account
named Contoso17.
Example 3: Get the latest report for a DSC node
PS C:\\>$Node = Get-AzureRmAutomationDscNode -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -Name "Computer14"
PS C:\\> Get-AzureRmAutomationDscNodeReport -ResourceGroupName "ResourceGroup03" -AutomationAccountName "Contoso17" -NodeId $Node.Id -Latest
The first command gets the DSC node for the computer named Computer14 in the Automation account named Contoso17. The command stores this object in
the $Node variable.
The second command gets metadata for the latest report sent from the DSC node named Computer14 to the Automation account named Contoso17.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... nodereport
Get-AzureRmAutomationDscNode
Export-AzureRmAutomationDscNodeReportContent