< Back

Get-AzureRmAutomationDscCompilationJobOutput

Tue Jan 29, 2019 9:32 pm

NAME Get-AzureRmAutomationDscCompilationJobOutput



SYNOPSIS

Gets the logging streams of an Automation DSC compilation job.





SYNTAX

Get-AzureRmAutomationDscCompilationJobOutput [-ResourceGroupName] <String> [-AutomationAccountName] <String> [-Id] <Guid> [-DefaultProfile

<IAzureContextContainer>] [-StartTime <DateTimeOffset>] [-Stream {Warning | Error | Verbose | Any}] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmAutomationDscCompilationJobOutput cmdlet gets the stream records of an APS Desired State Configuration (DSC) compilation job in

Azure Automation.





PARAMETERS

-AutomationAccountName <String>

Specifies the name of the Automation account that contains the DSC compilation job.



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



-Id <Guid>

Specifies the unique ID of the DSC compilation job for which this cmdlet gets output.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of the resource group that contains the DSC compilation job for which this cmdlet gets stream records.



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 stream records that the DSC compilation job outputs after this time.



Required? false

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Stream <CompilationJobStreamType>

Specifies the type of stream for the output that this cmdlet gets. Valid values are:



- Any



- Warning



- Error



- Verbose



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.JobStream







NOTES









Example 1: Get the logs for a DSC compilation job



PS C:\\>$Jobs = Get-AzureRmAutomationDscCompilationJob -ResourceGroupName "ResourceGroup01" -AutomationAccountName "Contoso17"

PS C:\\> $Jobs[0] | Get-AzureRmAutomationDscCompilationJobOutput -Stream "Any"



The first command gets the compilation jobs in the Automation account named Contoso17 by using the Get-AzureRmAutomationDscCompilationJob cmdlet.

The command stores those objects in the $Jobs variable.



The second command gets the compilation job output for any stream for the first member of the $Jobs array.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... njoboutput

Get-AzureRmAutomationDscCompilationJob

Start-AzureRmAutomationDscCompilationJob