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

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a Streaming Policy.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleAccount = new Azure.Storage.Account("exampleAccount", new Azure.Storage.AccountArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
                AccountTier = "Standard",
                AccountReplicationType = "GRS",
            });
            var exampleServiceAccount = new Azure.Media.ServiceAccount("exampleServiceAccount", new Azure.Media.ServiceAccountArgs
            {
                Location = exampleResourceGroup.Location,
                ResourceGroupName = exampleResourceGroup.Name,
                StorageAccounts = 
                {
                    new Azure.Media.Inputs.ServiceAccountStorageAccountArgs
                    {
                        Id = exampleAccount.Id,
                        IsPrimary = true,
                    },
                },
            });
            var exampleStreamingPolicy = new Azure.Media.StreamingPolicy("exampleStreamingPolicy", new Azure.Media.StreamingPolicyArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                MediaServicesAccountName = exampleServiceAccount.Name,
                CommonEncryptionCenc = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencArgs
                {
                    EnabledProtocols = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs
                    {
                        Download = false,
                        Dash = true,
                        Hls = false,
                        SmoothStreaming = false,
                    },
                    DrmPlayready = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs
                    {
                        CustomLicenseAcquisitionUrlTemplate = "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
                        CustomAttributes = "PlayReady CustomAttributes",
                    },
                    DrmWidevineCustomLicenseAcquisitionUrlTemplate = "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}",
                },
                CommonEncryptionCbcs = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsArgs
                {
                    EnabledProtocols = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs
                    {
                        Download = false,
                        Dash = true,
                        Hls = false,
                        SmoothStreaming = false,
                    },
                    DrmFairplay = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs
                    {
                        CustomLicenseAcquisitionUrlTemplate = "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
                        AllowPersistentLicense = true,
                    },
                },
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/media"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/storage"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAccount, err := storage.NewAccount(ctx, "exampleAccount", &storage.AccountArgs{
    			ResourceGroupName:      exampleResourceGroup.Name,
    			Location:               exampleResourceGroup.Location,
    			AccountTier:            pulumi.String("Standard"),
    			AccountReplicationType: pulumi.String("GRS"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleServiceAccount, err := media.NewServiceAccount(ctx, "exampleServiceAccount", &media.ServiceAccountArgs{
    			Location:          exampleResourceGroup.Location,
    			ResourceGroupName: exampleResourceGroup.Name,
    			StorageAccounts: media.ServiceAccountStorageAccountArray{
    				&media.ServiceAccountStorageAccountArgs{
    					Id:        exampleAccount.ID(),
    					IsPrimary: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = media.NewStreamingPolicy(ctx, "exampleStreamingPolicy", &media.StreamingPolicyArgs{
    			ResourceGroupName:        exampleResourceGroup.Name,
    			MediaServicesAccountName: exampleServiceAccount.Name,
    			CommonEncryptionCenc: &media.StreamingPolicyCommonEncryptionCencArgs{
    				EnabledProtocols: &media.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs{
    					Download:        pulumi.Bool(false),
    					Dash:            pulumi.Bool(true),
    					Hls:             pulumi.Bool(false),
    					SmoothStreaming: pulumi.Bool(false),
    				},
    				DrmPlayready: &media.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs{
    					CustomLicenseAcquisitionUrlTemplate: pulumi.String("https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}"),
    					CustomAttributes:                    pulumi.String("PlayReady CustomAttributes"),
    				},
    				DrmWidevineCustomLicenseAcquisitionUrlTemplate: pulumi.String("https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}"),
    			},
    			CommonEncryptionCbcs: &media.StreamingPolicyCommonEncryptionCbcsArgs{
    				EnabledProtocols: &media.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs{
    					Download:        pulumi.Bool(false),
    					Dash:            pulumi.Bool(true),
    					Hls:             pulumi.Bool(false),
    					SmoothStreaming: pulumi.Bool(false),
    				},
    				DrmFairplay: &media.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs{
    					CustomLicenseAcquisitionUrlTemplate: pulumi.String("https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}"),
    					AllowPersistentLicense:              pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleAccount = new azure.storage.Account("exampleAccount", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        accountTier: "Standard",
        accountReplicationType: "GRS",
    });
    const exampleServiceAccount = new azure.media.ServiceAccount("exampleServiceAccount", {
        location: exampleResourceGroup.location,
        resourceGroupName: exampleResourceGroup.name,
        storageAccounts: [{
            id: exampleAccount.id,
            isPrimary: true,
        }],
    });
    const exampleStreamingPolicy = new azure.media.StreamingPolicy("exampleStreamingPolicy", {
        resourceGroupName: exampleResourceGroup.name,
        mediaServicesAccountName: exampleServiceAccount.name,
        commonEncryptionCenc: {
            enabledProtocols: {
                download: false,
                dash: true,
                hls: false,
                smoothStreaming: false,
            },
            drmPlayready: {
                customLicenseAcquisitionUrlTemplate: "https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
                customAttributes: "PlayReady CustomAttributes",
            },
            drmWidevineCustomLicenseAcquisitionUrlTemplate: "https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}",
        },
        commonEncryptionCbcs: {
            enabledProtocols: {
                download: false,
                dash: true,
                hls: false,
                smoothStreaming: false,
            },
            drmFairplay: {
                customLicenseAcquisitionUrlTemplate: "https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
                allowPersistentLicense: true,
            },
        },
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_account = azure.storage.Account("exampleAccount",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        account_tier="Standard",
        account_replication_type="GRS")
    example_service_account = azure.media.ServiceAccount("exampleServiceAccount",
        location=example_resource_group.location,
        resource_group_name=example_resource_group.name,
        storage_accounts=[azure.media.ServiceAccountStorageAccountArgs(
            id=example_account.id,
            is_primary=True,
        )])
    example_streaming_policy = azure.media.StreamingPolicy("exampleStreamingPolicy",
        resource_group_name=example_resource_group.name,
        media_services_account_name=example_service_account.name,
        common_encryption_cenc=azure.media.StreamingPolicyCommonEncryptionCencArgs(
            enabled_protocols=azure.media.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs(
                download=False,
                dash=True,
                hls=False,
                smooth_streaming=False,
            ),
            drm_playready=azure.media.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs(
                custom_license_acquisition_url_template="https://contoso.com/{AssetAlternativeId}/playready/{ContentKeyId}",
                custom_attributes="PlayReady CustomAttributes",
            ),
            drm_widevine_custom_license_acquisition_url_template="https://contoso.com/{AssetAlternativeId}/widevine/{ContentKeyId}",
        ),
        common_encryption_cbcs=azure.media.StreamingPolicyCommonEncryptionCbcsArgs(
            enabled_protocols=azure.media.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs(
                download=False,
                dash=True,
                hls=False,
                smooth_streaming=False,
            ),
            drm_fairplay=azure.media.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs(
                custom_license_acquisition_url_template="https://contoso.com/{AssetAlternativeId}/fairplay/{ContentKeyId}",
                allow_persistent_license=True,
            ),
        ))
    

    Example coming soon!

    Create StreamingPolicy Resource

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

    Constructor syntax

    new StreamingPolicy(name: string, args: StreamingPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def StreamingPolicy(resource_name: str,
                        args: StreamingPolicyArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def StreamingPolicy(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        media_services_account_name: Optional[str] = None,
                        resource_group_name: Optional[str] = None,
                        common_encryption_cbcs: Optional[StreamingPolicyCommonEncryptionCbcsArgs] = None,
                        common_encryption_cenc: Optional[StreamingPolicyCommonEncryptionCencArgs] = None,
                        default_content_key_policy_name: Optional[str] = None,
                        name: Optional[str] = None,
                        no_encryption_enabled_protocols: Optional[StreamingPolicyNoEncryptionEnabledProtocolsArgs] = None)
    func NewStreamingPolicy(ctx *Context, name string, args StreamingPolicyArgs, opts ...ResourceOption) (*StreamingPolicy, error)
    public StreamingPolicy(string name, StreamingPolicyArgs args, CustomResourceOptions? opts = null)
    public StreamingPolicy(String name, StreamingPolicyArgs args)
    public StreamingPolicy(String name, StreamingPolicyArgs args, CustomResourceOptions options)
    
    type: azure:media:StreamingPolicy
    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 StreamingPolicyArgs
    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 StreamingPolicyArgs
    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 StreamingPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StreamingPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StreamingPolicyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var streamingPolicyResource = new Azure.Media.StreamingPolicy("streamingPolicyResource", new()
    {
        MediaServicesAccountName = "string",
        ResourceGroupName = "string",
        CommonEncryptionCbcs = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsArgs
        {
            DefaultContentKey = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsDefaultContentKeyArgs
            {
                Label = "string",
                PolicyName = "string",
            },
            DrmFairplay = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs
            {
                AllowPersistentLicense = false,
                CustomLicenseAcquisitionUrlTemplate = "string",
            },
            EnabledProtocols = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs
            {
                Dash = false,
                Download = false,
                Hls = false,
                SmoothStreaming = false,
            },
        },
        CommonEncryptionCenc = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencArgs
        {
            DefaultContentKey = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs
            {
                Label = "string",
                PolicyName = "string",
            },
            DrmPlayready = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs
            {
                CustomAttributes = "string",
                CustomLicenseAcquisitionUrlTemplate = "string",
            },
            DrmWidevineCustomLicenseAcquisitionUrlTemplate = "string",
            EnabledProtocols = new Azure.Media.Inputs.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs
            {
                Dash = false,
                Download = false,
                Hls = false,
                SmoothStreaming = false,
            },
        },
        DefaultContentKeyPolicyName = "string",
        Name = "string",
        NoEncryptionEnabledProtocols = new Azure.Media.Inputs.StreamingPolicyNoEncryptionEnabledProtocolsArgs
        {
            Dash = false,
            Download = false,
            Hls = false,
            SmoothStreaming = false,
        },
    });
    
    example, err := media.NewStreamingPolicy(ctx, "streamingPolicyResource", &media.StreamingPolicyArgs{
    	MediaServicesAccountName: pulumi.String("string"),
    	ResourceGroupName:        pulumi.String("string"),
    	CommonEncryptionCbcs: &media.StreamingPolicyCommonEncryptionCbcsArgs{
    		DefaultContentKey: &media.StreamingPolicyCommonEncryptionCbcsDefaultContentKeyArgs{
    			Label:      pulumi.String("string"),
    			PolicyName: pulumi.String("string"),
    		},
    		DrmFairplay: &media.StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs{
    			AllowPersistentLicense:              pulumi.Bool(false),
    			CustomLicenseAcquisitionUrlTemplate: pulumi.String("string"),
    		},
    		EnabledProtocols: &media.StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs{
    			Dash:            pulumi.Bool(false),
    			Download:        pulumi.Bool(false),
    			Hls:             pulumi.Bool(false),
    			SmoothStreaming: pulumi.Bool(false),
    		},
    	},
    	CommonEncryptionCenc: &media.StreamingPolicyCommonEncryptionCencArgs{
    		DefaultContentKey: &media.StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs{
    			Label:      pulumi.String("string"),
    			PolicyName: pulumi.String("string"),
    		},
    		DrmPlayready: &media.StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs{
    			CustomAttributes:                    pulumi.String("string"),
    			CustomLicenseAcquisitionUrlTemplate: pulumi.String("string"),
    		},
    		DrmWidevineCustomLicenseAcquisitionUrlTemplate: pulumi.String("string"),
    		EnabledProtocols: &media.StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs{
    			Dash:            pulumi.Bool(false),
    			Download:        pulumi.Bool(false),
    			Hls:             pulumi.Bool(false),
    			SmoothStreaming: pulumi.Bool(false),
    		},
    	},
    	DefaultContentKeyPolicyName: pulumi.String("string"),
    	Name:                        pulumi.String("string"),
    	NoEncryptionEnabledProtocols: &media.StreamingPolicyNoEncryptionEnabledProtocolsArgs{
    		Dash:            pulumi.Bool(false),
    		Download:        pulumi.Bool(false),
    		Hls:             pulumi.Bool(false),
    		SmoothStreaming: pulumi.Bool(false),
    	},
    })
    
    var streamingPolicyResource = new StreamingPolicy("streamingPolicyResource", StreamingPolicyArgs.builder()
        .mediaServicesAccountName("string")
        .resourceGroupName("string")
        .commonEncryptionCbcs(StreamingPolicyCommonEncryptionCbcsArgs.builder()
            .defaultContentKey(StreamingPolicyCommonEncryptionCbcsDefaultContentKeyArgs.builder()
                .label("string")
                .policyName("string")
                .build())
            .drmFairplay(StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs.builder()
                .allowPersistentLicense(false)
                .customLicenseAcquisitionUrlTemplate("string")
                .build())
            .enabledProtocols(StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs.builder()
                .dash(false)
                .download(false)
                .hls(false)
                .smoothStreaming(false)
                .build())
            .build())
        .commonEncryptionCenc(StreamingPolicyCommonEncryptionCencArgs.builder()
            .defaultContentKey(StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs.builder()
                .label("string")
                .policyName("string")
                .build())
            .drmPlayready(StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs.builder()
                .customAttributes("string")
                .customLicenseAcquisitionUrlTemplate("string")
                .build())
            .drmWidevineCustomLicenseAcquisitionUrlTemplate("string")
            .enabledProtocols(StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs.builder()
                .dash(false)
                .download(false)
                .hls(false)
                .smoothStreaming(false)
                .build())
            .build())
        .defaultContentKeyPolicyName("string")
        .name("string")
        .noEncryptionEnabledProtocols(StreamingPolicyNoEncryptionEnabledProtocolsArgs.builder()
            .dash(false)
            .download(false)
            .hls(false)
            .smoothStreaming(false)
            .build())
        .build());
    
    streaming_policy_resource = azure.media.StreamingPolicy("streamingPolicyResource",
        media_services_account_name="string",
        resource_group_name="string",
        common_encryption_cbcs={
            "default_content_key": {
                "label": "string",
                "policy_name": "string",
            },
            "drm_fairplay": {
                "allow_persistent_license": False,
                "custom_license_acquisition_url_template": "string",
            },
            "enabled_protocols": {
                "dash": False,
                "download": False,
                "hls": False,
                "smooth_streaming": False,
            },
        },
        common_encryption_cenc={
            "default_content_key": {
                "label": "string",
                "policy_name": "string",
            },
            "drm_playready": {
                "custom_attributes": "string",
                "custom_license_acquisition_url_template": "string",
            },
            "drm_widevine_custom_license_acquisition_url_template": "string",
            "enabled_protocols": {
                "dash": False,
                "download": False,
                "hls": False,
                "smooth_streaming": False,
            },
        },
        default_content_key_policy_name="string",
        name="string",
        no_encryption_enabled_protocols={
            "dash": False,
            "download": False,
            "hls": False,
            "smooth_streaming": False,
        })
    
    const streamingPolicyResource = new azure.media.StreamingPolicy("streamingPolicyResource", {
        mediaServicesAccountName: "string",
        resourceGroupName: "string",
        commonEncryptionCbcs: {
            defaultContentKey: {
                label: "string",
                policyName: "string",
            },
            drmFairplay: {
                allowPersistentLicense: false,
                customLicenseAcquisitionUrlTemplate: "string",
            },
            enabledProtocols: {
                dash: false,
                download: false,
                hls: false,
                smoothStreaming: false,
            },
        },
        commonEncryptionCenc: {
            defaultContentKey: {
                label: "string",
                policyName: "string",
            },
            drmPlayready: {
                customAttributes: "string",
                customLicenseAcquisitionUrlTemplate: "string",
            },
            drmWidevineCustomLicenseAcquisitionUrlTemplate: "string",
            enabledProtocols: {
                dash: false,
                download: false,
                hls: false,
                smoothStreaming: false,
            },
        },
        defaultContentKeyPolicyName: "string",
        name: "string",
        noEncryptionEnabledProtocols: {
            dash: false,
            download: false,
            hls: false,
            smoothStreaming: false,
        },
    });
    
    type: azure:media:StreamingPolicy
    properties:
        commonEncryptionCbcs:
            defaultContentKey:
                label: string
                policyName: string
            drmFairplay:
                allowPersistentLicense: false
                customLicenseAcquisitionUrlTemplate: string
            enabledProtocols:
                dash: false
                download: false
                hls: false
                smoothStreaming: false
        commonEncryptionCenc:
            defaultContentKey:
                label: string
                policyName: string
            drmPlayready:
                customAttributes: string
                customLicenseAcquisitionUrlTemplate: string
            drmWidevineCustomLicenseAcquisitionUrlTemplate: string
            enabledProtocols:
                dash: false
                download: false
                hls: false
                smoothStreaming: false
        defaultContentKeyPolicyName: string
        mediaServicesAccountName: string
        name: string
        noEncryptionEnabledProtocols:
            dash: false
            download: false
            hls: false
            smoothStreaming: false
        resourceGroupName: string
    

    StreamingPolicy Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The StreamingPolicy resource accepts the following input properties:

    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    ResourceGroupName string
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    CommonEncryptionCbcs StreamingPolicyCommonEncryptionCbcs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    CommonEncryptionCenc StreamingPolicyCommonEncryptionCenc
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    DefaultContentKeyPolicyName string
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    Name string
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    NoEncryptionEnabledProtocols StreamingPolicyNoEncryptionEnabledProtocols
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    ResourceGroupName string
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    CommonEncryptionCbcs StreamingPolicyCommonEncryptionCbcsArgs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    CommonEncryptionCenc StreamingPolicyCommonEncryptionCencArgs
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    DefaultContentKeyPolicyName string
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    Name string
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    NoEncryptionEnabledProtocols StreamingPolicyNoEncryptionEnabledProtocolsArgs
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    resourceGroupName String
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCbcs StreamingPolicyCommonEncryptionCbcs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCenc StreamingPolicyCommonEncryptionCenc
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKeyPolicyName String
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    name String
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    noEncryptionEnabledProtocols StreamingPolicyNoEncryptionEnabledProtocols
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    mediaServicesAccountName string
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    resourceGroupName string
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCbcs StreamingPolicyCommonEncryptionCbcs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCenc StreamingPolicyCommonEncryptionCenc
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKeyPolicyName string
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    name string
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    noEncryptionEnabledProtocols StreamingPolicyNoEncryptionEnabledProtocols
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    media_services_account_name str
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    resource_group_name str
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    common_encryption_cbcs StreamingPolicyCommonEncryptionCbcsArgs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    common_encryption_cenc StreamingPolicyCommonEncryptionCencArgs
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    default_content_key_policy_name str
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    name str
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    no_encryption_enabled_protocols StreamingPolicyNoEncryptionEnabledProtocolsArgs
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    resourceGroupName String
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCbcs Property Map
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCenc Property Map
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKeyPolicyName String
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    name String
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    noEncryptionEnabledProtocols Property Map
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StreamingPolicy 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 StreamingPolicy Resource

    Get an existing StreamingPolicy 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?: StreamingPolicyState, opts?: CustomResourceOptions): StreamingPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            common_encryption_cbcs: Optional[StreamingPolicyCommonEncryptionCbcsArgs] = None,
            common_encryption_cenc: Optional[StreamingPolicyCommonEncryptionCencArgs] = None,
            default_content_key_policy_name: Optional[str] = None,
            media_services_account_name: Optional[str] = None,
            name: Optional[str] = None,
            no_encryption_enabled_protocols: Optional[StreamingPolicyNoEncryptionEnabledProtocolsArgs] = None,
            resource_group_name: Optional[str] = None) -> StreamingPolicy
    func GetStreamingPolicy(ctx *Context, name string, id IDInput, state *StreamingPolicyState, opts ...ResourceOption) (*StreamingPolicy, error)
    public static StreamingPolicy Get(string name, Input<string> id, StreamingPolicyState? state, CustomResourceOptions? opts = null)
    public static StreamingPolicy get(String name, Output<String> id, StreamingPolicyState state, CustomResourceOptions options)
    resources:  _:    type: azure:media:StreamingPolicy    get:      id: ${id}
    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:
    CommonEncryptionCbcs StreamingPolicyCommonEncryptionCbcs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    CommonEncryptionCenc StreamingPolicyCommonEncryptionCenc
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    DefaultContentKeyPolicyName string
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    Name string
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    NoEncryptionEnabledProtocols StreamingPolicyNoEncryptionEnabledProtocols
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    ResourceGroupName string
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    CommonEncryptionCbcs StreamingPolicyCommonEncryptionCbcsArgs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    CommonEncryptionCenc StreamingPolicyCommonEncryptionCencArgs
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    DefaultContentKeyPolicyName string
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    MediaServicesAccountName string
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    Name string
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    NoEncryptionEnabledProtocols StreamingPolicyNoEncryptionEnabledProtocolsArgs
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    ResourceGroupName string
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCbcs StreamingPolicyCommonEncryptionCbcs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCenc StreamingPolicyCommonEncryptionCenc
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKeyPolicyName String
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    name String
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    noEncryptionEnabledProtocols StreamingPolicyNoEncryptionEnabledProtocols
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    resourceGroupName String
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCbcs StreamingPolicyCommonEncryptionCbcs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCenc StreamingPolicyCommonEncryptionCenc
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKeyPolicyName string
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    mediaServicesAccountName string
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    name string
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    noEncryptionEnabledProtocols StreamingPolicyNoEncryptionEnabledProtocols
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    resourceGroupName string
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    common_encryption_cbcs StreamingPolicyCommonEncryptionCbcsArgs
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    common_encryption_cenc StreamingPolicyCommonEncryptionCencArgs
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    default_content_key_policy_name str
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    media_services_account_name str
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    name str
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    no_encryption_enabled_protocols StreamingPolicyNoEncryptionEnabledProtocolsArgs
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    resource_group_name str
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCbcs Property Map
    A common_encryption_cbcs block as defined below. Changing this forces a new Streaming Policy to be created.
    commonEncryptionCenc Property Map
    A common_encryption_cenc block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKeyPolicyName String
    Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
    mediaServicesAccountName String
    The Media Services account name. Changing this forces a new Streaming Policy to be created.
    name String
    The name which should be used for this Streaming Policy. Changing this forces a new Streaming Policy to be created.
    noEncryptionEnabledProtocols Property Map
    A no_encryption_enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    resourceGroupName String
    The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.

    Supporting Types

    StreamingPolicyCommonEncryptionCbcs, StreamingPolicyCommonEncryptionCbcsArgs

    DefaultContentKey StreamingPolicyCommonEncryptionCbcsDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    DrmFairplay StreamingPolicyCommonEncryptionCbcsDrmFairplay
    A drm_fairplay block as defined below. Changing this forces a new Streaming Policy to be created.
    EnabledProtocols StreamingPolicyCommonEncryptionCbcsEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    DefaultContentKey StreamingPolicyCommonEncryptionCbcsDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    DrmFairplay StreamingPolicyCommonEncryptionCbcsDrmFairplay
    A drm_fairplay block as defined below. Changing this forces a new Streaming Policy to be created.
    EnabledProtocols StreamingPolicyCommonEncryptionCbcsEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKey StreamingPolicyCommonEncryptionCbcsDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    drmFairplay StreamingPolicyCommonEncryptionCbcsDrmFairplay
    A drm_fairplay block as defined below. Changing this forces a new Streaming Policy to be created.
    enabledProtocols StreamingPolicyCommonEncryptionCbcsEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKey StreamingPolicyCommonEncryptionCbcsDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    drmFairplay StreamingPolicyCommonEncryptionCbcsDrmFairplay
    A drm_fairplay block as defined below. Changing this forces a new Streaming Policy to be created.
    enabledProtocols StreamingPolicyCommonEncryptionCbcsEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    default_content_key StreamingPolicyCommonEncryptionCbcsDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    drm_fairplay StreamingPolicyCommonEncryptionCbcsDrmFairplay
    A drm_fairplay block as defined below. Changing this forces a new Streaming Policy to be created.
    enabled_protocols StreamingPolicyCommonEncryptionCbcsEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKey Property Map
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    drmFairplay Property Map
    A drm_fairplay block as defined below. Changing this forces a new Streaming Policy to be created.
    enabledProtocols Property Map
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.

    StreamingPolicyCommonEncryptionCbcsDefaultContentKey, StreamingPolicyCommonEncryptionCbcsDefaultContentKeyArgs

    Label string
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    PolicyName string
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    Label string
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    PolicyName string
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    label String
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    policyName String
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    label string
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    policyName string
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    label str
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    policy_name str
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    label String
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    policyName String
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.

    StreamingPolicyCommonEncryptionCbcsDrmFairplay, StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs

    AllowPersistentLicense bool
    All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
    CustomLicenseAcquisitionUrlTemplate string
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    AllowPersistentLicense bool
    All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
    CustomLicenseAcquisitionUrlTemplate string
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    allowPersistentLicense Boolean
    All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
    customLicenseAcquisitionUrlTemplate String
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    allowPersistentLicense boolean
    All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
    customLicenseAcquisitionUrlTemplate string
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    allow_persistent_license bool
    All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
    custom_license_acquisition_url_template str
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    allowPersistentLicense Boolean
    All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
    customLicenseAcquisitionUrlTemplate String
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.

    StreamingPolicyCommonEncryptionCbcsEnabledProtocols, StreamingPolicyCommonEncryptionCbcsEnabledProtocolsArgs

    Dash bool
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    Download bool
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    Hls bool
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    SmoothStreaming bool
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    Dash bool
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    Download bool
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    Hls bool
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    SmoothStreaming bool
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash Boolean
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download Boolean
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls Boolean
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smoothStreaming Boolean
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash boolean
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download boolean
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls boolean
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smoothStreaming boolean
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash bool
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download bool
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls bool
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smooth_streaming bool
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash Boolean
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download Boolean
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls Boolean
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smoothStreaming Boolean
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.

    StreamingPolicyCommonEncryptionCenc, StreamingPolicyCommonEncryptionCencArgs

    DefaultContentKey StreamingPolicyCommonEncryptionCencDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    DrmPlayready StreamingPolicyCommonEncryptionCencDrmPlayready
    A drm_playready block as defined below. Changing this forces a new Streaming Policy to be created.
    DrmWidevineCustomLicenseAcquisitionUrlTemplate string
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    EnabledProtocols StreamingPolicyCommonEncryptionCencEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    DefaultContentKey StreamingPolicyCommonEncryptionCencDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    DrmPlayready StreamingPolicyCommonEncryptionCencDrmPlayready
    A drm_playready block as defined below. Changing this forces a new Streaming Policy to be created.
    DrmWidevineCustomLicenseAcquisitionUrlTemplate string
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    EnabledProtocols StreamingPolicyCommonEncryptionCencEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKey StreamingPolicyCommonEncryptionCencDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    drmPlayready StreamingPolicyCommonEncryptionCencDrmPlayready
    A drm_playready block as defined below. Changing this forces a new Streaming Policy to be created.
    drmWidevineCustomLicenseAcquisitionUrlTemplate String
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    enabledProtocols StreamingPolicyCommonEncryptionCencEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKey StreamingPolicyCommonEncryptionCencDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    drmPlayready StreamingPolicyCommonEncryptionCencDrmPlayready
    A drm_playready block as defined below. Changing this forces a new Streaming Policy to be created.
    drmWidevineCustomLicenseAcquisitionUrlTemplate string
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    enabledProtocols StreamingPolicyCommonEncryptionCencEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    default_content_key StreamingPolicyCommonEncryptionCencDefaultContentKey
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    drm_playready StreamingPolicyCommonEncryptionCencDrmPlayready
    A drm_playready block as defined below. Changing this forces a new Streaming Policy to be created.
    drm_widevine_custom_license_acquisition_url_template str
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    enabled_protocols StreamingPolicyCommonEncryptionCencEnabledProtocols
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.
    defaultContentKey Property Map
    A default_content_key block as defined below. Changing this forces a new Streaming Policy to be created.
    drmPlayready Property Map
    A drm_playready block as defined below. Changing this forces a new Streaming Policy to be created.
    drmWidevineCustomLicenseAcquisitionUrlTemplate String
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    enabledProtocols Property Map
    A enabled_protocols block as defined below. Changing this forces a new Streaming Policy to be created.

    StreamingPolicyCommonEncryptionCencDefaultContentKey, StreamingPolicyCommonEncryptionCencDefaultContentKeyArgs

    Label string
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    PolicyName string
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    Label string
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    PolicyName string
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    label String
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    policyName String
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    label string
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    policyName string
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    label str
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    policy_name str
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
    label String
    Label can be used to specify Content Key when creating a Streaming Locator. Changing this forces a new Streaming Policy to be created.
    policyName String
    Policy used by Default Key. Changing this forces a new Streaming Policy to be created.

    StreamingPolicyCommonEncryptionCencDrmPlayready, StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs

    CustomAttributes string
    Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
    CustomLicenseAcquisitionUrlTemplate string
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    CustomAttributes string
    Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
    CustomLicenseAcquisitionUrlTemplate string
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    customAttributes String
    Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
    customLicenseAcquisitionUrlTemplate String
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    customAttributes string
    Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
    customLicenseAcquisitionUrlTemplate string
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    custom_attributes str
    Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
    custom_license_acquisition_url_template str
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.
    customAttributes String
    Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
    customLicenseAcquisitionUrlTemplate String
    Template for the URL of the custom service delivering licenses to end user players. Not required when using Azure Media Services for issuing licenses. The template supports replaceable tokens that the service will update at runtime with the value specific to the request. The currently supported token values are {AlternativeMediaId}, which is replaced with the value of StreamingLocatorId.AlternativeMediaId, and {ContentKeyId}, which is replaced with the value of identifier of the key being requested. Changing this forces a new Streaming Policy to be created.

    StreamingPolicyCommonEncryptionCencEnabledProtocols, StreamingPolicyCommonEncryptionCencEnabledProtocolsArgs

    Dash bool
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    Download bool
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    Hls bool
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    SmoothStreaming bool
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    Dash bool
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    Download bool
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    Hls bool
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    SmoothStreaming bool
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash Boolean
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download Boolean
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls Boolean
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smoothStreaming Boolean
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash boolean
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download boolean
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls boolean
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smoothStreaming boolean
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash bool
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download bool
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls bool
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smooth_streaming bool
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash Boolean
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download Boolean
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls Boolean
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smoothStreaming Boolean
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.

    StreamingPolicyNoEncryptionEnabledProtocols, StreamingPolicyNoEncryptionEnabledProtocolsArgs

    Dash bool
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    Download bool
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    Hls bool
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    SmoothStreaming bool
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    Dash bool
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    Download bool
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    Hls bool
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    SmoothStreaming bool
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash Boolean
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download Boolean
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls Boolean
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smoothStreaming Boolean
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash boolean
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download boolean
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls boolean
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smoothStreaming boolean
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash bool
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download bool
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls bool
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smooth_streaming bool
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
    dash Boolean
    Enable DASH protocol or not. Changing this forces a new Streaming Policy to be created.
    download Boolean
    Enable Download protocol or not. Changing this forces a new Streaming Policy to be created.
    hls Boolean
    Enable HLS protocol or not. Changing this forces a new Streaming Policy to be created.
    smoothStreaming Boolean
    Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.

    Import

    Streaming Policies can be imported using the resource id, e.g.

     $ pulumi import azure:media/streamingPolicy:StreamingPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Media/mediaservices/account1/streamingpolicies/policy1
    

    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.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.