az ams job

Manage jobs for a transform.

Commands

az ams job cancel

Cancel a job.

az ams job delete

Delete a job.

az ams job list

List all the jobs of a transform within an Azure Media Services account.

az ams job show

Show the details of a job.

az ams job start

Start a job.

az ams job update

Update an existing job.

az ams job cancel

Cancel a job.

az ams job cancel [--account-name]
                  [--delete]
                  [--ids]
                  [--name]
                  [--resource-group]
                  [--transform-name]

Optional Parameters

--account-name -a

The name of the Azure Media Services account.

--delete

Delete the job being cancelled.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

The name of the job.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--transform-name -t

The name of the transform.

az ams job delete

Delete a job.

az ams job delete [--account-name]
                  [--ids]
                  [--name]
                  [--resource-group]
                  [--transform-name]

Optional Parameters

--account-name -a

The name of the Azure Media Services account.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

The name of the job.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--transform-name -t

The name of the transform.

az ams job list

List all the jobs of a transform within an Azure Media Services account.

az ams job list --account-name
                --resource-group
                --transform-name
                [--filter]
                [--orderby]

Examples

List all the jobs of a transform with 'Normal' priority by name.

az ams job list -a amsAccount -g resourceGroup -t transformName --query [?priority=='Normal'].{jobName:name}

List all the jobs of a transform by name and input.

az ams job list -a amsAccount -g resourceGroup -t transformName --query [].{jobName:name,jobInput:input}

Required Parameters

--account-name -a

The name of the Azure Media Services account.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--transform-name -t

The name of the transform.

Optional Parameters

--filter

Restricts the set of items returned.

--orderby

Specifies the key by which the result collection should be ordered.

az ams job show

Show the details of a job.

az ams job show [--account-name]
                [--ids]
                [--name]
                [--resource-group]
                [--transform-name]

Optional Parameters

--account-name -a

The name of the Azure Media Services account.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

The name of the job.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--transform-name -t

The name of the transform.

az ams job start

Start a job.

az ams job start --output-assets
                 [--account-name]
                 [--base-uri]
                 [--correlation-data]
                 [--description]
                 [--files]
                 [--ids]
                 [--input-asset-name]
                 [--label]
                 [--name]
                 [--priority {High, Low, Normal}]
                 [--resource-group]
                 [--transform-name]

Required Parameters

--output-assets

Space-separated assets in 'assetName=label' format. An asset without label can be sent like this: 'assetName='.

Optional Parameters

--account-name -a

The name of the Azure Media Services account.

--base-uri

Base uri for http job input. It will be concatenated with provided file names. If no base uri is given, then the provided file list is assumed to be fully qualified uris.

--correlation-data

Space-separated correlation data in 'key[=value]' format. This customer provided data will be returned in Job and JobOutput state events.

--description

The job description.

--files

Space-separated list of files. It can be used to tell the service to only use the files specified from the input asset.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--input-asset-name

The name of the input asset.

--label

A label that is assigned to a Job Input that is used to satisfy a reference used in the Transform. For example, a Transform can be authored to take an image file with the label 'xyz' and apply it as an overlay onto the input video before it is encoded. When submitting a Job, exactly one of the JobInputs should be the image file, and it should have the label 'xyz'.

--name -n

The name of the job.

--priority

The priority with which the job should be processed.

accepted values: High, Low, Normal
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--transform-name -t

The name of the transform.

az ams job update

Update an existing job.

az ams job update [--account-name]
                  [--add]
                  [--description]
                  [--force-string]
                  [--ids]
                  [--name]
                  [--priority {High, Low, Normal}]
                  [--remove]
                  [--resource-group]
                  [--set]
                  [--transform-name]

Optional Parameters

--account-name -a

The name of the Azure Media Services account.

--add

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--description

The job description.

--force-string

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

--ids

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n

The name of the job.

--priority

The priority with which the job should be processed.

accepted values: High, Low, Normal
--remove

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--set

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--transform-name -t

The name of the transform.