We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
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:
- Media
Services stringAccount Name - The Media Services account name. Changing this forces a new Streaming Policy to be created.
- Resource
Group stringName - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- Common
Encryption StreamingCbcs Policy Common Encryption Cbcs - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - Common
Encryption StreamingCenc Policy Common Encryption Cenc - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content stringKey Policy Name - 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.
- No
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- Media
Services stringAccount Name - The Media Services account name. Changing this forces a new Streaming Policy to be created.
- Resource
Group stringName - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- Common
Encryption StreamingCbcs Policy Common Encryption Cbcs Args - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - Common
Encryption StreamingCenc Policy Common Encryption Cenc Args - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content stringKey Policy Name - 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.
- No
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols Args - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- media
Services StringAccount Name - The Media Services account name. Changing this forces a new Streaming Policy to be created.
- resource
Group StringName - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- common
Encryption StreamingCbcs Policy Common Encryption Cbcs - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption StreamingCenc Policy Common Encryption Cenc - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StringKey Policy Name - 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.
- no
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- media
Services stringAccount Name - The Media Services account name. Changing this forces a new Streaming Policy to be created.
- resource
Group stringName - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- common
Encryption StreamingCbcs Policy Common Encryption Cbcs - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption StreamingCenc Policy Common Encryption Cenc - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content stringKey Policy Name - 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.
- no
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- media_
services_ straccount_ name - The Media Services account name. Changing this forces a new Streaming Policy to be created.
- resource_
group_ strname - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- common_
encryption_ Streamingcbcs Policy Common Encryption Cbcs Args - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common_
encryption_ Streamingcenc Policy Common Encryption Cenc Args - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default_
content_ strkey_ policy_ name - 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_ Streamingenabled_ protocols Policy No Encryption Enabled Protocols Args - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- media
Services StringAccount Name - The Media Services account name. Changing this forces a new Streaming Policy to be created.
- resource
Group StringName - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- common
Encryption Property MapCbcs - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption Property MapCenc - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StringKey Policy Name - 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.
- no
Encryption Property MapEnabled Protocols - A
no_encryption_enabled_protocolsblock 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) -> StreamingPolicyfunc 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.
- Common
Encryption StreamingCbcs Policy Common Encryption Cbcs - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - Common
Encryption StreamingCenc Policy Common Encryption Cenc - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content stringKey Policy Name - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
- Media
Services stringAccount Name - 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.
- No
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - Resource
Group stringName - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- Common
Encryption StreamingCbcs Policy Common Encryption Cbcs Args - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - Common
Encryption StreamingCenc Policy Common Encryption Cenc Args - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - Default
Content stringKey Policy Name - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
- Media
Services stringAccount Name - 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.
- No
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols Args - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - Resource
Group stringName - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- common
Encryption StreamingCbcs Policy Common Encryption Cbcs - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption StreamingCenc Policy Common Encryption Cenc - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StringKey Policy Name - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
- media
Services StringAccount Name - 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.
- no
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - resource
Group StringName - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- common
Encryption StreamingCbcs Policy Common Encryption Cbcs - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption StreamingCenc Policy Common Encryption Cenc - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content stringKey Policy Name - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
- media
Services stringAccount Name - 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.
- no
Encryption StreamingEnabled Protocols Policy No Encryption Enabled Protocols - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - resource
Group stringName - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- common_
encryption_ Streamingcbcs Policy Common Encryption Cbcs Args - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common_
encryption_ Streamingcenc Policy Common Encryption Cenc Args - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default_
content_ strkey_ policy_ name - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
- media_
services_ straccount_ name - 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_ Streamingenabled_ protocols Policy No Encryption Enabled Protocols Args - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - resource_
group_ strname - The name of the Resource Group where the Streaming Policy should exist. Changing this forces a new Streaming Policy to be created.
- common
Encryption Property MapCbcs - A
common_encryption_cbcsblock as defined below. Changing this forces a new Streaming Policy to be created. - common
Encryption Property MapCenc - A
common_encryption_cencblock as defined below. Changing this forces a new Streaming Policy to be created. - default
Content StringKey Policy Name - Default Content Key used by current Streaming Policy. Changing this forces a new Streaming Policy to be created.
- media
Services StringAccount Name - 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.
- no
Encryption Property MapEnabled Protocols - A
no_encryption_enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created. - resource
Group StringName - 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
- Default
Content StreamingKey Policy Common Encryption Cbcs Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay - A
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - Enabled
Protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- Default
Content StreamingKey Policy Common Encryption Cbcs Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay - A
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - Enabled
Protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- default
Content StreamingKey Policy Common Encryption Cbcs Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay - A
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - enabled
Protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- default
Content StreamingKey Policy Common Encryption Cbcs Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay - A
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - enabled
Protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- default_
content_ Streamingkey Policy Common Encryption Cbcs Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm_
fairplay StreamingPolicy Common Encryption Cbcs Drm Fairplay - A
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - enabled_
protocols StreamingPolicy Common Encryption Cbcs Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- default
Content Property MapKey - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Fairplay Property Map - A
drm_fairplayblock as defined below. Changing this forces a new Streaming Policy to be created. - enabled
Protocols Property Map - A
enabled_protocolsblock 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.
- Policy
Name 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.
- Policy
Name 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.
- policy
Name 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.
- policy
Name 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.
- policy
Name String - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
StreamingPolicyCommonEncryptionCbcsDrmFairplay, StreamingPolicyCommonEncryptionCbcsDrmFairplayArgs
- Allow
Persistent boolLicense - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
- Custom
License stringAcquisition Url Template - 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 ofStreamingLocatorId.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 boolLicense - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
- Custom
License stringAcquisition Url Template - 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 ofStreamingLocatorId.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 BooleanLicense - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
- custom
License StringAcquisition Url Template - 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 ofStreamingLocatorId.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 booleanLicense - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
- custom
License stringAcquisition Url Template - 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 ofStreamingLocatorId.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_ boollicense - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
- custom_
license_ stracquisition_ url_ template - 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 ofStreamingLocatorId.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 BooleanLicense - All license to be persistent or not. Changing this forces a new Streaming Policy to be created.
- custom
License StringAcquisition Url Template - 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 ofStreamingLocatorId.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.
- Smooth
Streaming 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.
- 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.
- smooth
Streaming 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.
- smooth
Streaming 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.
- smooth
Streaming Boolean - Enable SmoothStreaming protocol or not. Changing this forces a new Streaming Policy to be created.
StreamingPolicyCommonEncryptionCenc, StreamingPolicyCommonEncryptionCencArgs
- Default
Content StreamingKey Policy Common Encryption Cenc Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Playready StreamingPolicy Common Encryption Cenc Drm Playready - A
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Widevine stringCustom License Acquisition Url Template - 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 ofStreamingLocatorId.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 StreamingPolicy Common Encryption Cenc Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- Default
Content StreamingKey Policy Common Encryption Cenc Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Playready StreamingPolicy Common Encryption Cenc Drm Playready - A
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - Drm
Widevine stringCustom License Acquisition Url Template - 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 ofStreamingLocatorId.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 StreamingPolicy Common Encryption Cenc Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- default
Content StreamingKey Policy Common Encryption Cenc Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Playready StreamingPolicy Common Encryption Cenc Drm Playready - A
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Widevine StringCustom License Acquisition Url Template - 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 ofStreamingLocatorId.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 StreamingPolicy Common Encryption Cenc Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- default
Content StreamingKey Policy Common Encryption Cenc Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Playready StreamingPolicy Common Encryption Cenc Drm Playready - A
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Widevine stringCustom License Acquisition Url Template - 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 ofStreamingLocatorId.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 StreamingPolicy Common Encryption Cenc Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- default_
content_ Streamingkey Policy Common Encryption Cenc Default Content Key - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm_
playready StreamingPolicy Common Encryption Cenc Drm Playready - A
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm_
widevine_ strcustom_ license_ acquisition_ url_ template - 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 ofStreamingLocatorId.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 StreamingPolicy Common Encryption Cenc Enabled Protocols - A
enabled_protocolsblock as defined below. Changing this forces a new Streaming Policy to be created.
- default
Content Property MapKey - A
default_content_keyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Playready Property Map - A
drm_playreadyblock as defined below. Changing this forces a new Streaming Policy to be created. - drm
Widevine StringCustom License Acquisition Url Template - 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 ofStreamingLocatorId.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 Property Map - A
enabled_protocolsblock 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.
- Policy
Name 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.
- Policy
Name 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.
- policy
Name 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.
- policy
Name 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.
- policy
Name String - Policy used by Default Key. Changing this forces a new Streaming Policy to be created.
StreamingPolicyCommonEncryptionCencDrmPlayready, StreamingPolicyCommonEncryptionCencDrmPlayreadyArgs
- Custom
Attributes string - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
- Custom
License stringAcquisition Url Template - 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 ofStreamingLocatorId.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 string - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
- Custom
License stringAcquisition Url Template - 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 ofStreamingLocatorId.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 String - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
- custom
License StringAcquisition Url Template - 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 ofStreamingLocatorId.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 string - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
- custom
License stringAcquisition Url Template - 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 ofStreamingLocatorId.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_ stracquisition_ url_ template - 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 ofStreamingLocatorId.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 String - Custom attributes for PlayReady. Changing this forces a new Streaming Policy to be created.
- custom
License StringAcquisition Url Template - 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 ofStreamingLocatorId.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.
- Smooth
Streaming 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.
- 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.
- smooth
Streaming 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.
- smooth
Streaming 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.
- smooth
Streaming 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.
- Smooth
Streaming 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.
- 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.
- smooth
Streaming 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.
- smooth
Streaming 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.
- smooth
Streaming 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
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
