Skip to main content

live_outputs

Creates, updates, deletes, gets or lists a live_outputs resource.

Overview

Namelive_outputs
TypeResource
Idazure_extras.media.live_outputs

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
archiveWindowLengthstringISO 8601 time between 1 minute to 25 hours to indicate the maximum content length that can be archived in the asset for this live output. This also sets the maximum content length for the rewind window. For example, use PT1H30M to indicate 1 hour and 30 minutes of archive window.
assetNamestringThe asset that the live output will write to.
createdstring (date-time)The creation time the live output.
descriptionstringThe description of the live output.
hlsobjectHTTP Live Streaming (HLS) packing setting for the live output.
lastModifiedstring (date-time)The time the live output was last modified.
manifestNamestringThe manifest file name. If not provided, the service will generate one automatically.
outputSnapTimeintegerThe initial timestamp that the live output will start at, any content before this value will not be archived.
provisioningStatestringThe provisioning state of the live output.
resourceStatestringThe resource state of the live output. Known values are: "Creating", "Running", and "Deleting".
rewindWindowLengthstringISO 8601 time between 1 minute to the duration of archiveWindowLength to control seek-able window length during Live. The service won't use this property once LiveOutput stops. The archived VOD will have full content with original ArchiveWindowLength. For example, use PT1H30M to indicate 1 hour and 30 minutes of rewind window length. Service will use implicit default value 30m only if Live Event enables LL.
systemDataobjectThe system metadata relating to this resource.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, live_event_name, live_output_name, subscription_idGet Live Output. Gets a live output.
listselectresource_group_name, account_name, live_event_name, subscription_idList Live Outputs. Lists the live outputs of a live event.
createinsertresource_group_name, account_name, live_event_name, live_output_name, subscription_idCreate Live Output. Creates a new live output.
deletedeleteresource_group_name, account_name, live_event_name, live_output_name, subscription_idDelete Live Output. Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.
async_operationexecresource_group_name, account_name, operation_id, subscription_idGet operation status. Get a Live Output operation status.
operation_locationexecresource_group_name, account_name, live_event_name, live_output_name, operation_id, subscription_idGet operation status. Get a Live Output operation status.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
account_namestringThe Media Services account name. Required.
live_event_namestringThe name of the live event, maximum length is 32. Required.
live_output_namestringThe name of the live output. Required.
operation_idstringThe ID of an ongoing async operation. Required.
resource_group_namestringThe name of the resource group within the Azure subscription. Required.
subscription_idstring

SELECT examples

Get Live Output. Gets a live output.

SELECT
id,
name,
archiveWindowLength,
assetName,
created,
description,
hls,
lastModified,
manifestName,
outputSnapTime,
provisioningState,
resourceState,
rewindWindowLength,
systemData,
type
FROM azure_extras.media.live_outputs
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND live_event_name = '{{ live_event_name }}' -- required
AND live_output_name = '{{ live_output_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create Live Output. Creates a new live output.

INSERT INTO azure_extras.media.live_outputs (
properties,
resource_group_name,
account_name,
live_event_name,
live_output_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ live_event_name }}',
'{{ live_output_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Delete Live Output. Deletes a live output. Deleting a live output does not delete the asset the live output is writing to.

DELETE FROM azure_extras.media.live_outputs
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND live_event_name = '{{ live_event_name }}' --required
AND live_output_name = '{{ live_output_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Get operation status. Get a Live Output operation status.

EXEC azure_extras.media.live_outputs.async_operation 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@operation_id='{{ operation_id }}' --required,
@subscription_id='{{ subscription_id }}' --required
;