Enable-​Azure​Batch​Job​Schedule

Enables a Batch job schedule.

Syntax

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

Description

The Enable-AzureBatchJobSchedule cmdlet enables an Azure Batch job schedule. After you enable a job schedule, jobs can be created according to that schedule.

Examples

Example 1: Enable a job schedule

PS C:\>Enable-AzureBatchJobSchedule -Id "JobSchedule17" -BatchContext $Context

This command enables the job schedule that has the ID JobSchedule17. 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 schedule that this cmdlet enables.

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