Azure Media Services Account

This page shows how to write Terraform and Azure Resource Manager for Media Services Account and write them securely.

azurerm_media_services_account (Terraform)

The Services Account in Media can be configured in Terraform with the resource name azurerm_media_services_account. The following sections describe 7 examples of how to use the resource and its parameters.

Example Usage from GitHub

main.tf#L5
resource "azurerm_media_services_account" "vh-core-infra" {
  name                = replace(var.resource_prefix,"-","")
  resource_group_name = data.azurerm_resource_group.vh-core-infra.name
  location            = data.azurerm_resource_group.vh-core-infra.location

  storage_account {
main.tf#L5
resource "azurerm_media_services_account" "vh-core-infra" {
  name                = replace(var.resource_prefix,"-","")
  resource_group_name = data.azurerm_resource_group.vh-core-infra.name
  location            = data.azurerm_resource_group.vh-core-infra.location

  storage_account {
media-service-account.tf#L2
resource "azurerm_media_services_account" "media_service_account" {
  name = var.name
  location = var.location
  resource_group_name = var.resource_group_name

  storage_account {
main.tf#L5
resource "azurerm_media_services_account" "vh-infra-core" {
  name                = replace(var.resource_prefix,"-","")
  resource_group_name = data.azurerm_resource_group.vh-infra-core.name
  location            = data.azurerm_resource_group.vh-infra-core.location

  storage_account {
main.tf#L7
resource "azurerm_media_services_account" "this" {
  location            = var.location
  name                = var.name
  resource_group_name = var.resource_group_name

  dynamic "storage_account" {
main.tf#L7
resource "azurerm_media_services_account" "this" {
  location            = var.location
  name                = var.name
  resource_group_name = var.resource_group_name

  dynamic "storage_account" {
main.tf#L58
resource "azurerm_media_services_account" "demo" {
  name                = var.ams_account
  location            = azurerm_resource_group.demo.location
  resource_group_name = azurerm_resource_group.demo.name
  storage_account {
    id         = azurerm_storage_account.demo.id

Review your Terraform file for Azure best practices

Shisho Cloud, our free checker to make sure your Terraform configuration follows best practices, is available (beta).

Parameters

Explanation in Terraform Registry

Manages a Media Services Account.

Microsoft.Media/mediaservices (Azure Resource Manager)

The mediaservices in Microsoft.Media can be configured in Azure Resource Manager with the resource name Microsoft.Media/mediaservices. The following sections describe how to use the resource and its parameters.

Example Usage from GitHub

An example could not be found in GitHub.

Frequently asked questions

What is Azure Media Services Account?

Azure Media Services Account is a resource for Media of Microsoft Azure. Settings can be wrote in Terraform.

Where can I find the example code for the Azure Media Services Account?

For Terraform, the hmcts/vh-core-infra, hmcts/vh-core-infra-sds and KamenYovchev/terraform-azurerm-media-service-account source code examples are useful. See the Terraform Example section for further details.