Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-AzAutomationJobOutput

Gets the output of an Automation job.

Syntax

Default (Default)

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

Description

The Get-AzAutomationJobOutput cmdlet gets the output of an Azure Automation job.

Examples

Example 1: Get the output of an Automation job

Get-AzAutomationJobOutput -AutomationAccountName "Contoso17" -Id 2989b069-24fe-40b9-b3bd-cb7e5eac4b64 -ResourceGroupName "ResourceGroup01" -Stream "Any"

This command gets all of the output of the job that has the specified ID.

Parameters

-AutomationAccountName

Specifies the name of an Automation account for which this cmdlet gets job output.

Parameter properties

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

Parameter sets

-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

-Id

Specifies the ID of a job for which this cmdlet gets output.

Parameter properties

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

Parameter sets

-ResourceGroupName

Specifies the name of a resource group for which this cmdlet gets job output.

Parameter properties

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

Parameter sets

-StartTime

Specifies a start time as a DateTimeOffset object. You can specify a string that can be converted to a valid DateTimeOffset. The cmdlet retrieves output created after this time.

Parameter properties

Type:

Nullable<T>[DateTimeOffset]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Stream

Specifies the type of output. Valid values are:

  • Any
  • Debug
  • Error
  • Output
  • Progress
  • Verbose
  • Warning

Parameter properties

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

Parameter sets

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

StreamType

Nullable<T>

String

Outputs

JobStream

Related Links


Feedback

Was this page helpful?