Microsoft.Media mediaservices

The mediaservices resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.Media/mediaservices resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.Media/mediaservices@2021-06-01' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  identity: {
    type: 'string'
    userAssignedIdentities: {}
  }
  properties: {
    encryption: {
      identity: {
        userAssignedIdentity: 'string'
        useSystemAssignedIdentity: bool
      }
      keyVaultProperties: {
        keyIdentifier: 'string'
      }
      type: 'string'
    }
    keyDelivery: {
      accessControl: {
        defaultAction: 'string'
        ipAllowList: [ 'string' ]
      }
    }
    publicNetworkAccess: 'string'
    storageAccounts: [
      {
        id: 'string'
        identity: {
          userAssignedIdentity: 'string'
          useSystemAssignedIdentity: bool
        }
        type: 'string'
      }
    ]
    storageAuthentication: 'string'
  }
}

Property values

mediaservices

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Media/mediaservices'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2021-06-01'
name The resource name string (required)
location The geo-location where the resource lives string (required)
tags Resource tags. Dictionary of tag names and values. See Tags in templates
identity MediaServiceIdentity
properties Properties of the Media Services account. MediaServiceProperties

MediaServiceIdentity

Name Description Value
type The identity type. string (required)
userAssignedIdentities The User Assigned Managed Identities. object

MediaServiceProperties

Name Description Value
encryption AccountEncryption
keyDelivery KeyDelivery
publicNetworkAccess Whether or not public network access is allowed for resources under the Media Services account. 'Disabled'
'Enabled'
storageAccounts The storage accounts for this resource. StorageAccount[]
storageAuthentication 'ManagedIdentity'
'System'

AccountEncryption

Name Description Value
identity ResourceIdentity
keyVaultProperties KeyVaultProperties
type The type of key used to encrypt the Account Key. 'CustomerKey'
'SystemKey'

ResourceIdentity

Name Description Value
userAssignedIdentity The user assigned managed identity's ARM ID to use when accessing a resource. string
useSystemAssignedIdentity Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity. bool (required)

KeyVaultProperties

Name Description Value
keyIdentifier The URL of the Key Vault key used to encrypt the account. The key may either be versioned (for example https://vault/keys/mykey/version1) or reference a key without a version (for example https://vault/keys/mykey). string

KeyDelivery

Name Description Value
accessControl AccessControl

AccessControl

Name Description Value
defaultAction The behavior for IP access control in Key Delivery. 'Allow'
'Deny'
ipAllowList The IP allow list for access control in Key Delivery. If the default action is set to 'Allow', the IP allow list must be empty. string[]

StorageAccount

Name Description Value
id The ID of the storage account resource. Media Services relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts. string
identity ResourceIdentity
type The type of the storage account. 'Primary'
'Secondary'

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Orchard CMS Video Portal Web App

Deploy to Azure
This template provides a easy way to deploy Orchard CMS on Azure App Service Web Apps with the Azure Media Services module enabled and configured.
Create a Media Services Account using a template

Deploy to Azure
This template creates an Azure Media Services Account with its Storage account.