Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
az ams streaming-policy
Manage streaming policies for an Azure Media Services account.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az ams streaming-policy create |
Create a streaming policy. |
Core | GA |
| az ams streaming-policy delete |
Delete a Streaming Policy. |
Core | GA |
| az ams streaming-policy list |
List all the streaming policies within an Azure Media Services account. |
Core | GA |
| az ams streaming-policy show |
Show the details of a streaming policy. |
Core | GA |
az ams streaming-policy create
Create a streaming policy.
az ams streaming-policy create --account-name
--name
--resource-group
[--acquire-policy-token]
[--cbcs-clear-tracks]
[--cbcs-default-key-label]
[--cbcs-default-key-policy-name]
[--cbcs-fair-play-allow-persistent-license {false, true}]
[--cbcs-fair-play-template]
[--cbcs-key-to-track-mappings]
[--cbcs-protocols]
[--cenc-clear-tracks]
[--cenc-default-key-label]
[--cenc-default-key-policy-name]
[--cenc-disable-play-ready {false, true}]
[--cenc-disable-widevine {false, true}]
[--cenc-key-to-track-mappings]
[--cenc-play-ready-attributes]
[--cenc-play-ready-template]
[--cenc-protocols]
[--cenc-widevine-template]
[--change-reference]
[--default-content-key-policy-name]
[--envelope-clear-tracks]
[--envelope-default-key-label]
[--envelope-default-key-policy-name]
[--envelope-key-to-track-mappings]
[--envelope-protocols]
[--envelope-template]
[--no-encryption-protocols]
Examples
Create a streaming policy.
az ams streaming-policy create -a ams -n mypolicy -g rg --no-encryption-protocols HLS
Required Parameters
The name of the Azure Media Services account.
The name of the streaming policy.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The JSON representing which tracks should not be encrypted. Use @{file} to load from a file. For further information about the JSON structure please refer to swagger documentation on https://learn.microsoft.com/rest/api/media/streamingpolicies/create#trackselection.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CBCS Arguments |
Label to specify Default Content Key for an encryption scheme.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CBCS Arguments |
Policy used by Default Content Key.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CBCS Arguments |
Allows the license to be persistent or not.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CBCS Arguments |
| Default value: | False |
| Accepted values: | false, true |
The custom license acquisition URL template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CBCS Arguments |
The JSON representing a list of StreamingPolicyContentKey. Use @{file} to load from a file. For further information about the JSON structure please refer to swagger documentation on https://learn.microsoft.com/rest/api/media/streamingpolicies/create#streamingpolicycontentkey.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CBCS Arguments |
Space-separated list of enabled protocols for Common Encryption CBCS. Allowed values: Download, Dash, HLS, SmoothStreaming.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CBCS Arguments |
The JSON representing which tracks should not be encrypted. Use @{file} to load from a file. For further information about the JSON structure please refer to swagger documentation on https://learn.microsoft.com/rest/api/media/streamingpolicies/create#trackselection.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
Label to specify Default Content Key for an encryption scheme.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
Policy used by Default Content Key.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
If specified, no PlayReady cenc DRM will be configured. If --cenc-disable-play-ready is set, --cenc-disable-widevine cannot also be set.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
| Accepted values: | false, true |
If specified, no Widevine cenc DRM will be configured. If --cenc-disable-widevine is set, --cenc-disable-play-ready cannot also be set.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
| Accepted values: | false, true |
The JSON representing a list of StreamingPolicyContentKey. Use @{file} to load from a file. For further information about the JSON structure please refer to swagger documentation on https://learn.microsoft.com/rest/api/media/streamingpolicies/create#streamingpolicycontentkey.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
Custom attributes for PlayReady.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
The custom license acquisition URL template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
Space-separated list of enabled protocols for Common Encryption CENC. Allowed values: Download, Dash, HLS, SmoothStreaming.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
The custom license acquisition URL template for a customer service to deliver keys to end users. Not needed when using Azure Media Services for issuing keys.
| Property | Value |
|---|---|
| Parameter group: | Common Encryption CENC Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Default Content Key used by current streaming policy.
The JSON representing which tracks should not be encrypted. Use @{file} to load from a file. For further information about the JSON structure please refer to swagger documentation on https://learn.microsoft.com/rest/api/media/streamingpolicies/create#trackselection.
| Property | Value |
|---|---|
| Parameter group: | Envelope Encryption Arguments |
Label used to specify Content Key when creating a streaming locator.
| Property | Value |
|---|---|
| Parameter group: | Envelope Encryption Arguments |
Policy used by Default Key.
| Property | Value |
|---|---|
| Parameter group: | Envelope Encryption Arguments |
The JSON representing a list of StreamingPolicyContentKey. Use @{file} to load from a file. For further information about the JSON structure please refer to swagger documentation on https://learn.microsoft.com/rest/api/media/streamingpolicies/create#streamingpolicycontentkey.
| Property | Value |
|---|---|
| Parameter group: | Envelope Encryption Arguments |
Space-separated list of enabled protocols for Envelope Encryption. Allowed values: Download, Dash, HLS, SmoothStreaming.
| Property | Value |
|---|---|
| Parameter group: | Envelope Encryption Arguments |
The KeyAcquistionUrlTemplate is used to point to user specified service to delivery content keys.
| Property | Value |
|---|---|
| Parameter group: | Envelope Encryption Arguments |
Space-separated list of enabled protocols for NoEncryption. Allowed values: Download, Dash, HLS, SmoothStreaming.
az ams streaming-policy delete
Delete a Streaming Policy.
Deletes a Streaming Policy in the Media Services account.
az ams streaming-policy delete [--account-name]
[--acquire-policy-token]
[--change-reference]
[--ids]
[--name]
[--resource-group]
[--subscription]
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the Azure Media Services account.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The name of the streaming policy.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
az ams streaming-policy list
List all the streaming policies within an Azure Media Services account.
az ams streaming-policy list --account-name
--resource-group
[--filter]
[--orderby]
[--top]
Required Parameters
The name of the Azure Media Services account.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Restricts the set of items returned.
Specifies the key by which the result collection should be ordered.
Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n.
az ams streaming-policy show
Show the details of a streaming policy.
az ams streaming-policy show [--account-name]
[--ids]
[--name]
[--resource-group]
[--subscription]
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
The name of the Azure Media Services account.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
The name of the streaming policy.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
| Property | Value |
|---|---|
| Parameter group: | Resource Id Arguments |
Feedback
Was this page helpful?
