Stop-​Azure​Stor​Simple​Job

Stops a StorSimple job.

Syntax

Stop-AzureStorSimpleJob
    [-Force]
    -InstanceId <String>
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]

Description

The Stop-AzureStorSimpleJob cmdlet stops an on-going StorSimple job. You can specify a jobs by supplying an instance ID or a job name.

Examples

Example 1: Stop jobs for a device

PS C:\>Get-AzureStorSimpleJob -DeviceName "Device07" | Stop-AzureStorSimpleJob -Force

This command gets the jobs for the device named Device07, by using the Get-AzureStorSimpleJob cmdlet. The command passes the jobs to the current cmdlet by using the pipeline operator. The current cmdlet stops any jobs that the command passes to it. The command specifies the Force parameter, and, so, it does not prompt you for confirmation before it stops a job.

Example 2: Stop a specific job

PS C:\>Stop-AzureStorSimpleJob -InstanceId "574f47e0-44e9-495c-b8a5-0203c57ebf6d" -Force

This command stops the job that has the specified instance ID.

Required Parameters

-InstanceId

Specifies the ID of the device job to stop.

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

Optional Parameters

-Force

Forces the command to run without asking for user confirmation.

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

Specifies an Azure profile.

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

Inputs

None

Outputs

DeviceJobDetails

This cmdlet gets details of the DeviceJob that this cmdlet stops.