你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzStorageMoverJobRun

获取作业运行资源。

语法

Get-AzStorageMoverJobRun
   -JobDefinitionName <String>
   -ProjectName <String>
   -ResourceGroupName <String>
   -StorageMoverName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStorageMoverJobRun
   -JobDefinitionName <String>
   -Name <String>
   -ProjectName <String>
   -ResourceGroupName <String>
   -StorageMoverName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzStorageMoverJobRun
   -InputObject <IStorageMoverIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

说明

获取作业运行资源。

示例

示例 1:使用作业定义获取所有作业运行

Get-AzStorageMoverJobRun -JobDefinitionName myJobDefinition -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -ProjectName myProject

AgentName                    : myAgent
AgentResourceId              : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/agents/myAgent
BytesExcluded                : 0
BytesFailed                  : 0
BytesNoTransferNeeded        : 0
BytesScanned                 : 0
BytesTransferred             : 0
BytesUnsupported             : 0
ErrorCode                    :
ErrorMessage                 :
ExecutionEndTime             :
ExecutionStartTime           : 2/24/2023 12:27:58 AM
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/projects/myProject/jobDefinitions/myJob/
                               jobRuns/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
ItemsExcluded                : 0
ItemsFailed                  : 0
ItemsNoTransferNeeded        : 0
ItemsScanned                 : 0
ItemsTransferred             : 0
ItemsUnsupported             : 0
JobDefinitionProperty        : {
                               }
LastStatusUpdate             : 2/24/2023 12:27:39 AM
Name                         : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
ProvisioningState            : Succeeded
ScanStatus                   : NotStarted
SourceName                   : sourceendpoint
SourceProperty               : {
                               }
SourceResourceId             : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/endpoints/sourceendpoint
Status                       : Started
SystemDataCreatedAt          : 2/24/2023 12:27:39 AM
SystemDataCreatedBy          : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 2/24/2023 12:36:01 AM
SystemDataLastModifiedBy     : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataLastModifiedByType : Application
Target                       :
TargetName                   : targetendpoint
TargetProperty               : {
                               }
TargetResourceId             : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/endpoints/targetendpoint
Type                         : microsoft.storagemover/storagemovers/projects/jobdefinitions/jobruns

此命令获取特定作业定义下的所有作业运行

示例 2:获取特定作业运行

Get-AzStorageMoverJobRun -Name myJobRun -JobDefinitionName myJobDefinition -ResourceGroupName myResourceGroup -StorageMoverName myStorageMover -ProjectName myProject

AgentName                    : myAgent
AgentResourceId              : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/agents/myAgent
BytesExcluded                : 0
BytesFailed                  : 0
BytesNoTransferNeeded        : 0
BytesScanned                 : 0
BytesTransferred             : 0
BytesUnsupported             : 0
ErrorCode                    :
ErrorMessage                 :
ExecutionEndTime             :
ExecutionStartTime           : 2/24/2023 12:27:58 AM
Id                           : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/projects/myProject/jobDefinitions/myJob/
                               jobRuns/aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
ItemsExcluded                : 0
ItemsFailed                  : 0
ItemsNoTransferNeeded        : 0
ItemsScanned                 : 0
ItemsTransferred             : 0
ItemsUnsupported             : 0
JobDefinitionProperty        : {
                               }
LastStatusUpdate             : 2/24/2023 12:27:39 AM
Name                         : aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa
ProvisioningState            : Succeeded
ScanStatus                   : NotStarted
SourceName                   : sourceendpoint
SourceProperty               : {
                               }
SourceResourceId             : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/endpoints/sourceendpoint
Status                       : Started
SystemDataCreatedAt          : 2/24/2023 12:27:39 AM
SystemDataCreatedBy          : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataCreatedByType      : Application
SystemDataLastModifiedAt     : 2/24/2023 12:36:01 AM
SystemDataLastModifiedBy     : yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
SystemDataLastModifiedByType : Application
Target                       :
TargetName                   : targetendpoint
TargetProperty               : {
                               }
TargetResourceId             : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup/providers/Microsoft.StorageMover/storageMovers/myStorageMover/endpoints/targetendpoint
Type                         : microsoft.storagemover/storagemovers/projects/jobdefinitions/jobruns

此命令获取特定的作业运行。

参数

-DefaultProfile

DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。

类型:PSObject
别名:AzureRMContext, AzureCredential
Position:Named
默认值:None
必需:False
接受管道输入:False
接受通配符:False

-InputObject

要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。

类型:IStorageMoverIdentity
Position:Named
默认值:None
必需:True
接受管道输入:True
接受通配符:False

-JobDefinitionName

作业定义资源的名称。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-Name

作业运行资源的名称。

类型:String
别名:JobRunName
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-ProjectName

Project 资源的名称。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-ResourceGroupName

资源组的名称。 此名称不区分大小写。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-StorageMoverName

存储移动器资源的名称。

类型:String
Position:Named
默认值:None
必需:True
接受管道输入:False
接受通配符:False

-SubscriptionId

目标订阅的 ID。

类型:String[]
Position:Named
默认值:(Get-AzContext).Subscription.Id
必需:False
接受管道输入:False
接受通配符:False

输入

IStorageMoverIdentity

输出

IJobRun