Cmdlets

Choose a cmdlet from the list on the left or search for a specific cmdlet. Choose a cmdlet from the list or search for a specific cmdlet.
About Help  Providers
 

Get-AzureStorSimpleJob

Get-AzureStorSimpleJob

microsoft.windowsazure.commands.storsimple.dll

Synopsis

Gets StorSimple jobs.

Syntax

Get-AzureStorSimpleJob [-DeviceName] [-From] [-To] [-Profile] [<CommonParameters>]

Get-AzureStorSimpleJob [-InstanceId] [-From] [-To] [-Profile] [<CommonParameters>]

Get-AzureStorSimpleJob [-Status] [-From] [-To] [-Profile] [<CommonParameters>]

Get-AzureStorSimpleJob [-Type] [-From] [-To] [-Profile] [<CommonParameters>]

Detailed Description

The Get-AzureStorSimpleJob cmdlet gets Azure StorSimple jobs. Specify an instance ID to get a specific job. Specify other parameters to limit the jobs that this cmdlet gets.

This cmdlet can return a maximum of 200 jobs. If more than 200 jobs exist, get the remaining jobs by using the First and Skip parameters. If you specify a value of 100 for Skip and 50 for First, this cmdlet does not return the first 100 results. It returns the next 50 results after the 100 that it skips.

Parameters

-DeviceName <String>

Specifies the name of StorSimple device for which the cmdlet gets jobs.

Aliases

none

Required?

true

Position

1

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-From <DateTime>

Specifies the start date and time for the jobs that this cmdlet gets. This cmdlet gets completed jobs based on their end times.

Aliases

none

Required?

false

Position

2

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-InstanceId <String>

Specifies the ID of a job to get.

Aliases

none

Required?

true

Position

1

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-Profile <AzureProfile>

Specifies an Azure profile.

Aliases

none

Required?

false

Position

named

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-Status <String>

Specifies the status of the jobs that this cmdlet gets. Valid values are: -- Running -- Completed -- Cancelled -- Failed -- Cancelling -- CompletedWithErrors

Aliases

none

Required?

true

Position

1

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-To <DateTime>

Specifies the end date and time for the jobs that this cmdlet gets. This cmdlet gets completed jobs based on their end times.

Aliases

none

Required?

false

Position

3

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

-Type <String>

Specifies the type of the jobs that this cmdlet gets. Valid values are: -- Backup -- ManualBackup -- Restore -- CloneWorkflow -- DeviceRestore -- Update -- SupportPackage -- VirtualApplianceProvisioning

Aliases

none

Required?

true

Position

1

Default value

none

Accept pipeline input?

false

Accept wildcard characters?

false

Input Type

None

Return Type

IList<DeviceJobDetails>, DeviceJobDetails

Notes

None

Examples

Example 1: Get a job by using an ID

This command gets information for the job that has the specified ID.

PS C:\>Get-AzureStorSimpleJob -InstanceId "574f47e0-44e9-495c-b8a5-0203c57ebf6d"
BackupPolicy             : 
BackupTimeStamp          : 1/1/0001 12:00:00 AM
BackupType               : CloudSnapshot
DataStats                : Microsoft.WindowsAzure.Management.StorSimple.Models.DataStatistics
Device                   : Microsoft.WindowsAzure.Management.StorSimple.Models.CisBaseObject
Entity                   : Microsoft.WindowsAzure.Management.StorSimple.Models.CisBaseObject
ErrorDetails             : {}
HideProgressDetails      : False
InstanceId               : 574f47e0-44e9-495c-b8a5-0203c57ebf6d
IsInstantRestoreComplete : False
IsJobCancellable         : True
JobDetails               : Microsoft.WindowsAzure.Management.StorSimple.Models.JobStatusInfo
Name                     : 26447caf-59bb-41c9-a028-3224d296c7dc
Progress                 : 100
SourceDevice             : Microsoft.WindowsAzure.Management.StorSimple.Models.CisBaseObject
SourceEntity             : Microsoft.WindowsAzure.Management.StorSimple.Models.CisBaseObject
SourceVolume             : Microsoft.WindowsAzure.Management.StorSimple.Models.CisBaseObject
Status                   : Completed
TimeStats                : Microsoft.WindowsAzure.Management.StorSimple.Models.TimeStatistics
Type                     : Backup
Volume                   : Microsoft.WindowsAzure.Management.StorSimple.Models.CisBaseObject                        

Example 2: Get jobs by using a device name

This command gets information for the jobs for the device named 8600-Bravo 001. The command gets the first two jobs for the device.

PS C:\>Get-AzureStorSimpleJob -DeviceName "8600-Bravo 001" -First 2
InstanceId                           Type                         Status                                          DeviceName                                      StartTime                                       Progress                                       
----------                           ----                         ------                                          ----------                                      ---------                                       --------                                       
1997c33f-bfcc-4d08-9aba-28068340a1f9 Backup                       Running                                         8600-Bravo 001                                  4/15/2015 1:30:02 PM                            92                                             
85074062-ef6a-408a-b6c9-2a0904bb99ca Backup                       Completed                                       8600-Bravo 001                                  4/15/2015 1:30:02 PM                            100                                            

Example 3: Get completed jobs

This command gets completed jobs. The command gets only the first two jobs after it skips the first ten jobs.

PS C:\>Get-AzureStorSimpleJob -Status Completed -Skip 10 -First 2

Example 4: Get manual backup jobs

This command gets jobs of the manual backup type.

PS C:\>Get-AzureStorSimpleJob -Type ManualBackup 

Example 5: Get jobs between specified times

The first two commands create DateTime objects by using the Get-Date cmdlet. The commands store the new times in the $StartTime and $EndTime variables. For more information, type Get-Help Get-Date.

The final command gets jobs for the device named Device07 between the times stored in $StartTime and $EndTime.

PS C:\>$StartTime = Get-Date -Year 2015 -Month 3 -Day 10
PS C:\> $EndTime = Get-Date -Year 2015 -Month 3 -Day 11 -Hour 12 -Minute 15
PS C:\>Get-AzureStorSimpleJob -DeviceName "Device07" -From $StartTime -To $EndTime

Stop-AzureStorSimpleJob