Edit

Share via


Get-AzAutomationJobOutputRecord

Gets the full output of an Automation job output record.

Syntax

Default (Default)

Get-AzAutomationJobOutputRecord
    [-JobId] <Guid>
    [-Id] <String>
    [-ResourceGroupName] <String>
    [-AutomationAccountName] <String>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

Description

The Get-AzAutomationJobOutputRecord cmdlet gets the full output of an Automation job output record. Although the Get-AzAutomationJobOutput cmdlet lists one or more job output records, it returns only a summary, as a string, of the value of any output record. It does not return the full value of an output record's outputted value in its original type. In addition, the summary has a maximum length, which the full value that this cmdlet outputs may exceed.

Examples

Example 1: Get the full output of an Automation job

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

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

Parameters

-AutomationAccountName

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

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 ID of a job output record for this cmdlet to retrieve.

Parameter properties

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

Parameter sets

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

-JobId

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

Parameter properties

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

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 a resource group for which this cmdlet gets a job output record.

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

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

String

Outputs

JobStreamRecord