Stop-AzureStorSimpleJob

Stops a StorSimple job.

Note

The cmdlets referenced in this documentation are for managing legacy Azure resources that use Service Management APIs. See the Az PowerShell module for cmdlets to manage Azure Resource Manager resources.

Syntax

Stop-AzureStorSimpleJob
    -InstanceId <String>
    [-Force]
    [-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.

Parameters

-Force

Forces the command to run without asking for user confirmation.

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

-InstanceId

Specifies the ID of the device job to stop.

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

-Profile

Specifies an Azure profile.

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

Inputs

None

Outputs

DeviceJobDetails

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