Edit

Share via


Get-AzAutomationDscCompilationJobOutput

Gets the logging streams of an Automation DSC compilation job.

Syntax

Default (Default)

Get-AzAutomationDscCompilationJobOutput
    [-Id] <Guid>
    [-Stream <CompilationJobStreamType>]
    [-StartTime <DateTimeOffset>]
    [-ResourceGroupName] <String>
    [-AutomationAccountName] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

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

Examples

Example 1: Get the logs for a DSC compilation job

$Jobs = Get-AzAutomationDscCompilationJob -ResourceGroupName "ResourceGroup01" -AutomationAccountName "Contoso17"
$Jobs[0] | Get-AzAutomationDscCompilationJobOutput -Stream "Any"

The first command gets the compilation jobs in the Automation account named Contoso17 by using the Get-AzAutomationDscCompilationJob 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.

Parameters

-AutomationAccountName

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Id

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

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False
Aliases:JobId

Parameter sets

(All)
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-ResourceGroupName

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-StartTime

Specifies a start time. This cmdlet gets stream records that the DSC compilation job outputs after this time.

Parameter properties

Type:

Nullable<T>[DateTimeOffset]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-Stream

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

  • Any
  • Warning
  • Error
  • Verbose

Parameter properties

Type:CompilationJobStreamType
Default value:None
Accepted values:Warning, Error, Verbose, Any
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Guid

CompilationJobStreamType

Nullable<T>

String

Outputs

JobStream