Skip to main content

mediaservices

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

Overview

Namemediaservices
TypeResource
Idazure_extras.media.mediaservices

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.
encryptionobjectThe account encryption properties.
identityobjectThe Managed Identity for the Media Services account.
keyDeliveryobjectThe Key Delivery properties for Media Services account.
locationstringThe geo-location where the resource lives. Required.
mediaServiceIdstringThe Media Services account ID.
privateEndpointConnectionsarrayThe Private Endpoint Connections created for the Media Service account.
provisioningStatestringProvisioning state of the Media Services account. Known values are: "Failed", "InProgress", and "Succeeded".
publicNetworkAccessstringWhether or not public network access is allowed for resources under the Media Services account. Known values are: "Enabled" and "Disabled".
storageAccountsarrayThe storage accounts for this resource.
storageAuthenticationstringKnown values are: "System" and "ManagedIdentity".
systemDataobjectThe system metadata relating to this resource.
tagsobjectResource tags.
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, subscription_idGet a Media Services account. Get the details of a Media Services account.
listselectresource_group_name, subscription_idList Media Services accounts. List Media Services accounts in the resource group.
list_by_subscriptionselectsubscription_idList Media Services accounts. List Media Services accounts in the subscription.
create_or_updateinsertresource_group_name, account_name, subscription_id, locationCreate or update a Media Services account. Creates or updates a Media Services account.
updateupdateresource_group_name, account_name, subscription_idUpdate a Media Services account. Updates an existing Media Services account.
create_or_updatereplaceresource_group_name, account_name, subscription_id, locationCreate or update a Media Services account. Creates or updates a Media Services account.
deletedeleteresource_group_name, account_name, subscription_idDelete a Media Services account. Deletes a Media Services account.
list_edge_policiesexecresource_group_name, account_name, subscription_idList the media edge policies associated with the Media Services account. List all the media edge policies associated with the Media Services account.
sync_storage_keysexecresource_group_name, account_name, subscription_idSynchronizes Storage Account Keys. Synchronizes storage account keys for a storage account associated with the Media Service account.

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.
resource_group_namestringThe name of the resource group within the Azure subscription. Required.
subscription_idstring

SELECT examples

Get a Media Services account. Get the details of a Media Services account.

SELECT
id,
name,
encryption,
identity,
keyDelivery,
location,
mediaServiceId,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
storageAccounts,
storageAuthentication,
systemData,
tags,
type
FROM azure_extras.media.mediaservices
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a Media Services account. Creates or updates a Media Services account.

INSERT INTO azure_extras.media.mediaservices (
tags,
location,
identity,
properties,
resource_group_name,
account_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ identity }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update a Media Services account. Updates an existing Media Services account.

UPDATE azure_extras.media.mediaservices
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create or update a Media Services account. Creates or updates a Media Services account.

REPLACE azure_extras.media.mediaservices
SET
tags = '{{ tags }}',
location = '{{ location }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a Media Services account. Deletes a Media Services account.

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

Lifecycle Methods

List the media edge policies associated with the Media Services account. List all the media edge policies associated with the Media Services account.

EXEC azure_extras.media.mediaservices.list_edge_policies 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
@@json=
'{
"deviceId": "{{ deviceId }}"
}'
;