Resume-SmaJob

Resumes a SMA job.

Syntax

Resume-SmaJob
      -Id <String>
      -WebServiceEndpoint <String>
      [-Port <Int32>]
      [-AuthenticationType <String>]
      [-Credential <PSCredential>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Resume-SmaJob cmdlet resumes a suspended Service Management Automation (SMA) job. Specify the suspended job and the web service endpoint.

To suspend a job, use the Suspend-SmaJob cmdlet.

Examples

Example 1: Resume a suspended Service Management Automation job

PS C:\> $Job = Get-SmaJob -WebServiceEndpoint "https://localhost" -JobId "2989b069-24fe-40b9-b3bd-cb7e5eac4b64"
PS C:\> Resume-SmaJob -WebServiceEndpoint "https://localhost" -JobId $Job.JobId

The first command gets the job object with the specified GUID and stores the object in the $Job variable.

The second command resumes the job.

Required Parameters

-Id

Specifies a job ID.

Type:String
Aliases:JobId
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-WebServiceEndpoint

Specifies the endpoint, as a URL, of the SMA web service. You must include the protocol, for example, http:// or https://.

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

Optional Parameters

-AuthenticationType

Specifies the authentication type. Valid values are:

  • Basic
  • Windows

The default value for this parameter is Windows. If you use Basic authentication, you must provide credentials by using the Credential parameter.

Type:String
Parameter Sets:Basic, Windows
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Credential

Specifies a PSCredential object for the connection to the SMA web service. To obtain a credential object, use the Get-Credential cmdlet. For more information, type Get-Help Get-Credential.

Type:PSCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Port

Specifies the port number of the SMA Web service.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False