Skip to main content

mediaservices

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

Overview

Namemediaservices
TypeResource
Idazure.media_services.mediaservices

Fields

NameDatatypeDescription
accountNametextfield from the properties object
encryptiontextfield from the properties object
identitytextfield from the properties object
key_deliverytextfield from the properties object
locationtextThe geo-location where the resource lives
media_service_idtextfield from the properties object
minimum_tls_versiontextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
storage_accountstextfield from the properties object
storage_authenticationtextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaccountName, resourceGroupName, subscriptionIdGet the details of a Media Services account
listSELECTresourceGroupName, subscriptionIdList Media Services accounts in the resource group
list_by_subscriptionSELECTsubscriptionIdList Media Services accounts in the subscription.
create_or_updateINSERTaccountName, resourceGroupName, subscriptionIdCreates or updates a Media Services account
deleteDELETEaccountName, resourceGroupName, subscriptionIdDeletes a Media Services account
updateUPDATEaccountName, resourceGroupName, subscriptionIdUpdates an existing Media Services account
sync_storage_keysEXECaccountName, resourceGroupName, subscriptionIdSynchronizes storage account keys for a storage account associated with the Media Service account.

SELECT examples

List Media Services accounts in the subscription.

SELECT
accountName,
encryption,
identity,
key_delivery,
location,
media_service_id,
minimum_tls_version,
private_endpoint_connections,
provisioning_state,
public_network_access,
resourceGroupName,
storage_accounts,
storage_authentication,
subscriptionId,
system_data,
tags
FROM azure.media_services.vw_mediaservices
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new mediaservices resource.

/*+ create */
INSERT INTO azure.media_services.mediaservices (
accountName,
resourceGroupName,
subscriptionId,
tags,
location,
properties,
identity
)
SELECT
'{{ accountName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}',
'{{ identity }}'
;

UPDATE example

Updates a mediaservices resource.

/*+ update */
UPDATE azure.media_services.mediaservices
SET
tags = '{{ tags }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified mediaservices resource.

/*+ delete */
DELETE FROM azure.media_services.mediaservices
WHERE accountName = '{{ accountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';