Enable-​Azure​Batch​Job

Enables a Batch job.

Syntax

Enable-AzureBatchJob
      [-Id] <String>
      -BatchContext <BatchAccountContext>
      [<CommonParameters>]

Description

The Enable-AzureBatchJob cmdlet enables an Azure Batch job. After you enable a job, new tasks can run.

Examples

Example 1: Enable a Batch job

PS C:\>Enable-AzureBatchJob -Id "Job-000001" -BatchContext $Context

This command enables the job that has the ID Job-000001. Use the Get-AzureRmBatchAccountKeys cmdlet to assign a context to the $Context variable.

Required Parameters

-BatchContext

Specifies the BatchAccountContext instance that this cmdlet uses to interact with the Batch service. To obtain a BatchAccountContext object that contains access keys for your subscription, use the Get-AzureRmBatchAccountKeys cmdlet.

Type:BatchAccountContext
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-Id

Specifies the ID of the job that this cmdlet enables.

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