你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzStorageMoverJobRun
Gets a Job Run resource.
Syntax
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>]
Description
Gets a Job Run resource.
Examples
Example 1: Get all job runs with a job definition
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
This command gets all the job runs under a specific job definition
Example 2: Get a specific job run
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
This command gets a specific job run.
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IStorageMoverIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-JobDefinitionName
The name of the Job Definition resource.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the Job Run resource.
Type: | String |
Aliases: | JobRunName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ProjectName
The name of the Project resource.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group. The name is case insensitive.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageMoverName
The name of the Storage Mover resource.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The ID of the target subscription.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |