1. Packages
  2. Azure Classic
  3. API Docs
  4. media
  5. Job

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

azure.media.Job

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi

    Manages a Media Job.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "media-resources",
        location: "West Europe",
    });
    const exampleAccount = new azure.storage.Account("example", {
        name: "examplestoracc",
        resourceGroupName: example.name,
        location: example.location,
        accountTier: "Standard",
        accountReplicationType: "GRS",
    });
    const exampleServiceAccount = new azure.media.ServiceAccount("example", {
        name: "examplemediaacc",
        location: example.location,
        resourceGroupName: example.name,
        storageAccounts: [{
            id: exampleAccount.id,
            isPrimary: true,
        }],
    });
    const exampleTransform = new azure.media.Transform("example", {
        name: "transform1",
        resourceGroupName: example.name,
        mediaServicesAccountName: exampleServiceAccount.name,
        description: "My transform description",
        outputs: [{
            relativePriority: "Normal",
            onErrorAction: "ContinueJob",
            builtinPreset: {
                presetName: "AACGoodQualityAudio",
            },
        }],
    });
    const input = new azure.media.Asset("input", {
        name: "input",
        resourceGroupName: example.name,
        mediaServicesAccountName: exampleServiceAccount.name,
        description: "Input Asset description",
    });
    const output = new azure.media.Asset("output", {
        name: "output",
        resourceGroupName: example.name,
        mediaServicesAccountName: exampleServiceAccount.name,
        description: "Output Asset description",
    });
    const exampleJob = new azure.media.Job("example", {
        name: "job1",
        resourceGroupName: example.name,
        mediaServicesAccountName: exampleServiceAccount.name,
        transformName: exampleTransform.name,
        description: "My Job description",
        priority: "Normal",
        inputAsset: {
            name: input.name,
        },
        outputAssets: [{
            name: output.name,
        }],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="media-resources",
        location="West Europe")
    example_account = azure.storage.Account("example",
        name="examplestoracc",
        resource_group_name=example.name,
        location=example.location,
        account_tier="Standard",
        account_replication_type="GRS")
    example_service_account = azure.media.ServiceAccount("example",
        name="examplemediaacc",
        location=example.location,
        resource_group_name=example.name,
        storage_accounts=[azure.media.ServiceAccountStorageAccountArgs(
            id=example_account.id,
            is_primary=True,
        )])
    example_transform = azure.media.Transform("example",
        name="transform1",
        resource_group_name=example.name,
        media_services_account_name=example_service_account.name,
        description="My transform description",
        outputs=[azure.media.TransformOutputArgs(
            relative_priority="Normal",
            on_error_action="ContinueJob",
            builtin_preset=azure.media.TransformOutputBuiltinPresetArgs(
                preset_name="AACGoodQualityAudio",
            ),
        )])
    input = azure.media.Asset("input",
        name="input",
        resource_group_name=example.name,
        media_services_account_name=example_service_account.name,
        description="Input Asset description")
    output = azure.media.Asset("output",
        name="output",
        resource_group_name=example.name,
        media_services_account_name=example_service_account.name,
        description="Output Asset description")
    example_job = azure.media.Job("example",
        name="job1",
        resource_group_name=example.name,
        media_services_account_name=example_service_account.name,
        transform_name=example_transform.name,
        description="My Job description",
        priority="Normal",
        input_asset=azure.media.JobInputAssetArgs(
            name=input.name,
        ),
        output_assets=[azure.media.JobOutputAssetArgs(
            name=output.name,
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/media"
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("media-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "example", &storage.AccountArgs{
    			Name:                   pulumi.String("examplestoracc"),
    			ResourceGroupName:      example.Name,
    			Location:               example.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("GRS"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleServiceAccount, err := media.NewServiceAccount(ctx, "example", &media.ServiceAccountArgs{
    			Name:              pulumi.String("examplemediaacc"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			StorageAccounts: media.ServiceAccountStorageAccountArray{
    				&media.ServiceAccountStorageAccountArgs{
    					Id:        exampleAccount.ID(),
    					IsPrimary: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleTransform, err := media.NewTransform(ctx, "example", &media.TransformArgs{
    			Name:                     pulumi.String("transform1"),
    			ResourceGroupName:        example.Name,
    			MediaServicesAccountName: exampleServiceAccount.Name,
    			Description:              pulumi.String("My transform description"),
    			Outputs: media.TransformOutputTypeArray{
    				&media.TransformOutputTypeArgs{
    					RelativePriority: pulumi.String("Normal"),
    					OnErrorAction:    pulumi.String("ContinueJob"),
    					BuiltinPreset: &media.TransformOutputBuiltinPresetArgs{
    						PresetName: pulumi.String("AACGoodQualityAudio"),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		input, err := media.NewAsset(ctx, "input", &media.AssetArgs{
    			Name:                     pulumi.String("input"),
    			ResourceGroupName:        example.Name,
    			MediaServicesAccountName: exampleServiceAccount.Name,
    			Description:              pulumi.String("Input Asset description"),
    		})
    		if err != nil {
    			return err
    		}
    		output, err := media.NewAsset(ctx, "output", &media.AssetArgs{
    			Name:                     pulumi.String("output"),
    			ResourceGroupName:        example.Name,
    			MediaServicesAccountName: exampleServiceAccount.Name,
    			Description:              pulumi.String("Output Asset description"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = media.NewJob(ctx, "example", &media.JobArgs{
    			Name:                     pulumi.String("job1"),
    			ResourceGroupName:        example.Name,
    			MediaServicesAccountName: exampleServiceAccount.Name,
    			TransformName:            exampleTransform.Name,
    			Description:              pulumi.String("My Job description"),
    			Priority:                 pulumi.String("Normal"),
    			InputAsset: &media.JobInputAssetArgs{
    				Name: input.Name,
    			},
    			OutputAssets: media.JobOutputAssetArray{
    				&media.JobOutputAssetArgs{
    					Name: output.Name,
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "media-resources",
            Location = "West Europe",
        });
    
        var exampleAccount = new Azure.Storage.Account("example", new()
        {
            Name = "examplestoracc",
            ResourceGroupName = example.Name,
            Location = example.Location,
            AccountTier = "Standard",
            AccountReplicationType = "GRS",
        });
    
        var exampleServiceAccount = new Azure.Media.ServiceAccount("example", new()
        {
            Name = "examplemediaacc",
            Location = example.Location,
            ResourceGroupName = example.Name,
            StorageAccounts = new[]
            {
                new Azure.Media.Inputs.ServiceAccountStorageAccountArgs
                {
                    Id = exampleAccount.Id,
                    IsPrimary = true,
                },
            },
        });
    
        var exampleTransform = new Azure.Media.Transform("example", new()
        {
            Name = "transform1",
            ResourceGroupName = example.Name,
            MediaServicesAccountName = exampleServiceAccount.Name,
            Description = "My transform description",
            Outputs = new[]
            {
                new Azure.Media.Inputs.TransformOutputArgs
                {
                    RelativePriority = "Normal",
                    OnErrorAction = "ContinueJob",
                    BuiltinPreset = new Azure.Media.Inputs.TransformOutputBuiltinPresetArgs
                    {
                        PresetName = "AACGoodQualityAudio",
                    },
                },
            },
        });
    
        var input = new Azure.Media.Asset("input", new()
        {
            Name = "input",
            ResourceGroupName = example.Name,
            MediaServicesAccountName = exampleServiceAccount.Name,
            Description = "Input Asset description",
        });
    
        var output = new Azure.Media.Asset("output", new()
        {
            Name = "output",
            ResourceGroupName = example.Name,
            MediaServicesAccountName = exampleServiceAccount.Name,
            Description = "Output Asset description",
        });
    
        var exampleJob = new Azure.Media.Job("example", new()
        {
            Name = "job1",
            ResourceGroupName = example.Name,
            MediaServicesAccountName = exampleServiceAccount.Name,
            TransformName = exampleTransform.Name,
            Description = "My Job description",
            Priority = "Normal",
            InputAsset = new Azure.Media.Inputs.JobInputAssetArgs
            {
                Name = input.Name,
            },
            OutputAssets = new[]
            {
                new Azure.Media.Inputs.JobOutputAssetArgs
                {
                    Name = output.Name,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.storage.Account;
    import com.pulumi.azure.storage.AccountArgs;
    import com.pulumi.azure.media.ServiceAccount;
    import com.pulumi.azure.media.ServiceAccountArgs;
    import com.pulumi.azure.media.inputs.ServiceAccountStorageAccountArgs;
    import com.pulumi.azure.media.Transform;
    import com.pulumi.azure.media.TransformArgs;
    import com.pulumi.azure.media.inputs.TransformOutputArgs;
    import com.pulumi.azure.media.inputs.TransformOutputBuiltinPresetArgs;
    import com.pulumi.azure.media.Asset;
    import com.pulumi.azure.media.AssetArgs;
    import com.pulumi.azure.media.Job;
    import com.pulumi.azure.media.JobArgs;
    import com.pulumi.azure.media.inputs.JobInputAssetArgs;
    import com.pulumi.azure.media.inputs.JobOutputAssetArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new ResourceGroup("example", ResourceGroupArgs.builder()        
                .name("media-resources")
                .location("West Europe")
                .build());
    
            var exampleAccount = new Account("exampleAccount", AccountArgs.builder()        
                .name("examplestoracc")
                .resourceGroupName(example.name())
                .location(example.location())
                .accountTier("Standard")
                .accountReplicationType("GRS")
                .build());
    
            var exampleServiceAccount = new ServiceAccount("exampleServiceAccount", ServiceAccountArgs.builder()        
                .name("examplemediaacc")
                .location(example.location())
                .resourceGroupName(example.name())
                .storageAccounts(ServiceAccountStorageAccountArgs.builder()
                    .id(exampleAccount.id())
                    .isPrimary(true)
                    .build())
                .build());
    
            var exampleTransform = new Transform("exampleTransform", TransformArgs.builder()        
                .name("transform1")
                .resourceGroupName(example.name())
                .mediaServicesAccountName(exampleServiceAccount.name())
                .description("My transform description")
                .outputs(TransformOutputArgs.builder()
                    .relativePriority("Normal")
                    .onErrorAction("ContinueJob")
                    .builtinPreset(TransformOutputBuiltinPresetArgs.builder()
                        .presetName("AACGoodQualityAudio")
                        .build())
                    .build())
                .build());
    
            var input = new Asset("input", AssetArgs.builder()        
                .name("input")
                .resourceGroupName(example.name())
                .mediaServicesAccountName(exampleServiceAccount.name())
                .description("Input Asset description")
                .build());
    
            var output = new Asset("output", AssetArgs.builder()        
                .name("output")
                .resourceGroupName(example.name())
                .mediaServicesAccountName(exampleServiceAccount.name())
                .description("Output Asset description")
                .build());
    
            var exampleJob = new Job("exampleJob", JobArgs.builder()        
                .name("job1")
                .resourceGroupName(example.name())
                .mediaServicesAccountName(exampleServiceAccount.name())
                .transformName(exampleTransform.name())
                .description("My Job description")
                .priority("Normal")
                .inputAsset(JobInputAssetArgs.builder()
                    .name(input.name())
                    .build())
                .outputAssets(JobOutputAssetArgs.builder()
                    .name(output.name())
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: media-resources
          location: West Europe
      exampleAccount:
        type: azure:storage:Account
        name: example
        properties:
          name: examplestoracc
          resourceGroupName: ${example.name}
          location: ${example.location}
          accountTier: Standard
          accountReplicationType: GRS
      exampleServiceAccount:
        type: azure:media:ServiceAccount
        name: example
        properties:
          name: examplemediaacc
          location: ${example.location}
          resourceGroupName: ${example.name}
          storageAccounts:
            - id: ${exampleAccount.id}
              isPrimary: true
      exampleTransform:
        type: azure:media:Transform
        name: example
        properties:
          name: transform1
          resourceGroupName: ${example.name}
          mediaServicesAccountName: ${exampleServiceAccount.name}
          description: My transform description
          outputs:
            - relativePriority: Normal
              onErrorAction: ContinueJob
              builtinPreset:
                presetName: AACGoodQualityAudio
      input:
        type: azure:media:Asset
        properties:
          name: input
          resourceGroupName: ${example.name}
          mediaServicesAccountName: ${exampleServiceAccount.name}
          description: Input Asset description
      output:
        type: azure:media:Asset
        properties:
          name: output
          resourceGroupName: ${example.name}
          mediaServicesAccountName: ${exampleServiceAccount.name}
          description: Output Asset description
      exampleJob:
        type: azure:media:Job
        name: example
        properties:
          name: job1
          resourceGroupName: ${example.name}
          mediaServicesAccountName: ${exampleServiceAccount.name}
          transformName: ${exampleTransform.name}
          description: My Job description
          priority: Normal
          inputAsset:
            name: ${input.name}
          outputAssets:
            - name: ${output.name}
    

    Create Job Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Job(name: string, args: JobArgs, opts?: CustomResourceOptions);
    @overload
    def Job(resource_name: str,
            args: JobArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Job(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            input_asset: Optional[JobInputAssetArgs] = None,
            media_services_account_name: Optional[str] = None,
            output_assets: Optional[Sequence[JobOutputAssetArgs]] = None,
            resource_group_name: Optional[str] = None,
            transform_name: Optional[str] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            priority: Optional[str] = None)
    func NewJob(ctx *Context, name string, args JobArgs, opts ...ResourceOption) (*Job, error)
    public Job(string name, JobArgs args, CustomResourceOptions? opts = null)
    public Job(String name, JobArgs args)
    public Job(String name, JobArgs args, CustomResourceOptions options)
    
    type: azure:media:Job
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args JobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args JobArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args JobArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args JobArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args JobArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var azureJobResource = new Azure.Media.Job("azureJobResource", new()
    {
        InputAsset = new Azure.Media.Inputs.JobInputAssetArgs
        {
            Name = "string",
            Label = "string",
        },
        MediaServicesAccountName = "string",
        OutputAssets = new[]
        {
            new Azure.Media.Inputs.JobOutputAssetArgs
            {
                Name = "string",
                Label = "string",
            },
        },
        ResourceGroupName = "string",
        TransformName = "string",
        Description = "string",
        Name = "string",
        Priority = "string",
    });
    
    example, err := media.NewJob(ctx, "azureJobResource", &media.JobArgs{
    	InputAsset: &media.JobInputAssetArgs{
    		Name:  pulumi.String("string"),
    		Label: pulumi.String("string"),
    	},
    	MediaServicesAccountName: pulumi.String("string"),
    	OutputAssets: media.JobOutputAssetArray{
    		&media.JobOutputAssetArgs{
    			Name:  pulumi.String("string"),
    			Label: pulumi.String("string"),
    		},
    	},
    	ResourceGroupName: pulumi.String("string"),
    	TransformName:     pulumi.String("string"),
    	Description:       pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	Priority:          pulumi.String("string"),
    })
    
    var azureJobResource = new Job("azureJobResource", JobArgs.builder()        
        .inputAsset(JobInputAssetArgs.builder()
            .name("string")
            .label("string")
            .build())
        .mediaServicesAccountName("string")
        .outputAssets(JobOutputAssetArgs.builder()
            .name("string")
            .label("string")
            .build())
        .resourceGroupName("string")
        .transformName("string")
        .description("string")
        .name("string")
        .priority("string")
        .build());
    
    azure_job_resource = azure.media.Job("azureJobResource",
        input_asset=azure.media.JobInputAssetArgs(
            name="string",
            label="string",
        ),
        media_services_account_name="string",
        output_assets=[azure.media.JobOutputAssetArgs(
            name="string",
            label="string",
        )],
        resource_group_name="string",
        transform_name="string",
        description="string",
        name="string",
        priority="string")
    
    const azureJobResource = new azure.media.Job("azureJobResource", {
        inputAsset: {
            name: "string",
            label: "string",
        },
        mediaServicesAccountName: "string",
        outputAssets: [{
            name: "string",
            label: "string",
        }],
        resourceGroupName: "string",
        transformName: "string",
        description: "string",
        name: "string",
        priority: "string",
    });
    
    type: azure:media:Job
    properties:
        description: string
        inputAsset:
            label: string
            name: string
        mediaServicesAccountName: string
        name: string
        outputAssets:
            - label: string
              name: string
        priority: string
        resourceGroupName: string
        transformName: string
    

    Job Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Job resource accepts the following input properties:

    InputAsset JobInputAsset
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Transform to be created.
    OutputAssets List<JobOutputAsset>
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    ResourceGroupName string
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    TransformName string
    The Transform name. Changing this forces a new Media Job to be created.
    Description string
    Optional customer supplied description of the Job.
    Name string
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    Priority string
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    InputAsset JobInputAssetArgs
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Transform to be created.
    OutputAssets []JobOutputAssetArgs
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    ResourceGroupName string
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    TransformName string
    The Transform name. Changing this forces a new Media Job to be created.
    Description string
    Optional customer supplied description of the Job.
    Name string
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    Priority string
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    inputAsset JobInputAsset
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Transform to be created.
    outputAssets List<JobOutputAsset>
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    resourceGroupName String
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    transformName String
    The Transform name. Changing this forces a new Media Job to be created.
    description String
    Optional customer supplied description of the Job.
    name String
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    priority String
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    inputAsset JobInputAsset
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    mediaServicesAccountName string
    The Media Services account name. Changing this forces a new Transform to be created.
    outputAssets JobOutputAsset[]
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    resourceGroupName string
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    transformName string
    The Transform name. Changing this forces a new Media Job to be created.
    description string
    Optional customer supplied description of the Job.
    name string
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    priority string
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    input_asset JobInputAssetArgs
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    media_services_account_name str
    The Media Services account name. Changing this forces a new Transform to be created.
    output_assets Sequence[JobOutputAssetArgs]
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    resource_group_name str
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    transform_name str
    The Transform name. Changing this forces a new Media Job to be created.
    description str
    Optional customer supplied description of the Job.
    name str
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    priority str
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    inputAsset Property Map
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Transform to be created.
    outputAssets List<Property Map>
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    resourceGroupName String
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    transformName String
    The Transform name. Changing this forces a new Media Job to be created.
    description String
    Optional customer supplied description of the Job.
    name String
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    priority String
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Job resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Job Resource

    Get an existing Job resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: JobState, opts?: CustomResourceOptions): Job
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            input_asset: Optional[JobInputAssetArgs] = None,
            media_services_account_name: Optional[str] = None,
            name: Optional[str] = None,
            output_assets: Optional[Sequence[JobOutputAssetArgs]] = None,
            priority: Optional[str] = None,
            resource_group_name: Optional[str] = None,
            transform_name: Optional[str] = None) -> Job
    func GetJob(ctx *Context, name string, id IDInput, state *JobState, opts ...ResourceOption) (*Job, error)
    public static Job Get(string name, Input<string> id, JobState? state, CustomResourceOptions? opts = null)
    public static Job get(String name, Output<String> id, JobState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Description string
    Optional customer supplied description of the Job.
    InputAsset JobInputAsset
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Transform to be created.
    Name string
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    OutputAssets List<JobOutputAsset>
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    Priority string
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    ResourceGroupName string
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    TransformName string
    The Transform name. Changing this forces a new Media Job to be created.
    Description string
    Optional customer supplied description of the Job.
    InputAsset JobInputAssetArgs
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Transform to be created.
    Name string
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    OutputAssets []JobOutputAssetArgs
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    Priority string
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    ResourceGroupName string
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    TransformName string
    The Transform name. Changing this forces a new Media Job to be created.
    description String
    Optional customer supplied description of the Job.
    inputAsset JobInputAsset
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Transform to be created.
    name String
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    outputAssets List<JobOutputAsset>
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    priority String
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    resourceGroupName String
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    transformName String
    The Transform name. Changing this forces a new Media Job to be created.
    description string
    Optional customer supplied description of the Job.
    inputAsset JobInputAsset
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    mediaServicesAccountName string
    The Media Services account name. Changing this forces a new Transform to be created.
    name string
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    outputAssets JobOutputAsset[]
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    priority string
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    resourceGroupName string
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    transformName string
    The Transform name. Changing this forces a new Media Job to be created.
    description str
    Optional customer supplied description of the Job.
    input_asset JobInputAssetArgs
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    media_services_account_name str
    The Media Services account name. Changing this forces a new Transform to be created.
    name str
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    output_assets Sequence[JobOutputAssetArgs]
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    priority str
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    resource_group_name str
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    transform_name str
    The Transform name. Changing this forces a new Media Job to be created.
    description String
    Optional customer supplied description of the Job.
    inputAsset Property Map
    A input_asset block as defined below. Changing this forces a new Media Job to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Transform to be created.
    name String
    The name which should be used for this Media Job. Changing this forces a new Media Job to be created.
    outputAssets List<Property Map>
    One or more output_asset blocks as defined below. Changing this forces a new Media Job to be created.
    priority String
    Priority with which the job should be processed. Higher priority jobs are processed before lower priority jobs. Changing this forces a new Media Job to be created. Possible values are High, Normal and Low. Defaults to Normal.
    resourceGroupName String
    The name of the Resource Group where the Media Job should exist. Changing this forces a new Media Job to be created.
    transformName String
    The Transform name. Changing this forces a new Media Job to be created.

    Supporting Types

    JobInputAsset, JobInputAssetArgs

    Name string
    The name of the input Asset. Changing this forces a new Media Job to be created.
    Label string
    A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as 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'. Changing this forces a new resource to be created.
    Name string
    The name of the input Asset. Changing this forces a new Media Job to be created.
    Label string
    A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as 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'. Changing this forces a new resource to be created.
    name String
    The name of the input Asset. Changing this forces a new Media Job to be created.
    label String
    A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as 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'. Changing this forces a new resource to be created.
    name string
    The name of the input Asset. Changing this forces a new Media Job to be created.
    label string
    A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as 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'. Changing this forces a new resource to be created.
    name str
    The name of the input Asset. Changing this forces a new Media Job to be created.
    label str
    A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as 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'. Changing this forces a new resource to be created.
    name String
    The name of the input Asset. Changing this forces a new Media Job to be created.
    label String
    A label that is assigned to a JobInputClip, that is used to satisfy a reference used in the Transform. For example, a Transform can be authored so as 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'. Changing this forces a new resource to be created.

    JobOutputAsset, JobOutputAssetArgs

    Name string
    The name of the output Asset. Changing this forces a new Media Job to be created.
    Label string
    A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. Changing this forces a new resource to be created.
    Name string
    The name of the output Asset. Changing this forces a new Media Job to be created.
    Label string
    A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. Changing this forces a new resource to be created.
    name String
    The name of the output Asset. Changing this forces a new Media Job to be created.
    label String
    A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. Changing this forces a new resource to be created.
    name string
    The name of the output Asset. Changing this forces a new Media Job to be created.
    label string
    A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. Changing this forces a new resource to be created.
    name str
    The name of the output Asset. Changing this forces a new Media Job to be created.
    label str
    A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. Changing this forces a new resource to be created.
    name String
    The name of the output Asset. Changing this forces a new Media Job to be created.
    label String
    A label that is assigned to a JobOutput in order to help uniquely identify it. This is useful when your Transform has more than one TransformOutput, whereby your Job has more than one JobOutput. In such cases, when you submit the Job, you will add two or more JobOutputs, in the same order as TransformOutputs in the Transform. Subsequently, when you retrieve the Job, either through events or on a GET request, you can use the label to easily identify the JobOutput. If a label is not provided, a default value of '{presetName}_{outputIndex}' will be used, where the preset name is the name of the preset in the corresponding TransformOutput and the output index is the relative index of the this JobOutput within the Job. Note that this index is the same as the relative index of the corresponding TransformOutput within its Transform. Changing this forces a new resource to be created.

    Import

    Media Jobs can be imported using the resource id, e.g.

    $ pulumi import azure:media/job:Job example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Media/mediaServices/account1/transforms/transform1/jobs/job1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.72.0 published on Monday, Apr 15, 2024 by Pulumi