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