Get-AzSqlElasticJobStepExecution

Gets one or more job step executions

Syntax

Get-AzSqlElasticJobStepExecution
   [-ResourceGroupName] <String>
   [-ServerName] <String>
   [-AgentName] <String>
   [-JobName] <String>
   -JobExecutionId <String>
   [-CreateTimeMin <DateTime>]
   [-CreateTimeMax <DateTime>]
   [-EndTimeMin <DateTime>]
   [-EndTimeMax <DateTime>]
   [-Active]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSqlElasticJobStepExecution
   [-ResourceGroupName] <String>
   [-ServerName] <String>
   [-AgentName] <String>
   [-JobName] <String>
   -JobExecutionId <String>
   -StepName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSqlElasticJobStepExecution
   [-ParentObject] <AzureSqlElasticJobExecutionModel>
   [-CreateTimeMin <DateTime>]
   [-CreateTimeMax <DateTime>]
   [-EndTimeMin <DateTime>]
   [-EndTimeMax <DateTime>]
   [-Active]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSqlElasticJobStepExecution
   [-ParentObject] <AzureSqlElasticJobExecutionModel>
   -StepName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSqlElasticJobStepExecution
   [-ParentResourceId] <String>
   [-CreateTimeMin <DateTime>]
   [-CreateTimeMax <DateTime>]
   [-EndTimeMin <DateTime>]
   [-EndTimeMax <DateTime>]
   [-Active]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzSqlElasticJobStepExecution
   [-ParentResourceId] <String>
   -StepName <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzSqlElasticJobStepExecution cmdlet gets one or more job step executions from a job execution

Examples

Example 1 - Gets one or more job step executions from a job executions

PS C:\> $je = Get-AzSqlElasticJobExecution -ResourceGroupName rg -ServerName elasticjobserver -AgentName agent -JobName job1 -JobExecutionId 3bcfc912-20b2-411d-a2b7-6265d13fe272
$je | Get-AzSqlElasticJobStepExecution

JobName JobVersion StepName StepId JobExecutionId                       Lifecycle StartTime            EndTime
------- ---------- -------- ------ --------------                       --------- ---------            -------
job1    1          step1    1      3bcfc912-20b2-411d-a2b7-6265d13fe272 Succeeded 6/1/2018 10:11:44 PM 6/1/2018 10:11:47 PM

Example 2 - Gets one or more job step executions from a job execution, filtering by step name

PS C:\> $je = Get-AzSqlElasticJobExecution -ResourceGroupName rg -ServerName elasticjobserver -AgentName agent -JobName job1 -JobExecutionId 3bcfc912-20b2-411d-a2b7-6265d13fe272
$je | Get-AzSqlElasticJobStepExecution -StepName step1

JobName JobVersion StepName StepId JobExecutionId                       Lifecycle StartTime            EndTime
------- ---------- -------- ------ --------------                       --------- ---------            -------
job1    1          step1    1      3bcfc912-20b2-411d-a2b7-6265d13fe272 Succeeded 6/1/2018 10:11:44 PM 6/1/2018 10:11:47 PM

Gets one or more job step executions

Parameters

-Active

Flag to filter by active executions.

Type:SwitchParameter
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-AgentName

The agent name.

Type:String
Position:2
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CreateTimeMax

Filter by create time max

Type:System.Nullable`1[System.DateTime]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CreateTimeMin

Filter by create time min

Type:System.Nullable`1[System.DateTime]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EndTimeMax

Filter by end time max.

Type:System.Nullable`1[System.DateTime]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EndTimeMin

Filter by end time min.

Type:System.Nullable`1[System.DateTime]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobExecutionId

The job execution id.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobName

The job name.

Type:String
Position:3
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ParentObject

The agent object.

Type:Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ParentResourceId

The job execution resource id.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

The resource group name.

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServerName

The server name.

Type:String
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StepName

The job step name.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel

Outputs

Microsoft.Azure.Commands.Sql.ElasticJobs.Model.AzureSqlElasticJobExecutionModel