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
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 {
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 {
resource "azurerm_media_services_account" "media_service_account" {
name = var.name
location = var.location
resource_group_name = var.resource_group_name
storage_account {
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 {
resource "azurerm_media_services_account" "this" {
location = var.location
name = var.name
resource_group_name = var.resource_group_name
dynamic "storage_account" {
resource "azurerm_media_services_account" "this" {
location = var.location
name = var.name
resource_group_name = var.resource_group_name
dynamic "storage_account" {
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
Parameters
-
id
optional computed - string -
location
required - string -
name
required - string -
resource_group_name
required - string -
storage_authentication_type
optional computed - string -
tags
optional - map from string to string -
identity
list block-
principal_id
optional computed - string -
tenant_id
optional computed - string -
type
optional - string
-
-
storage_account
set block-
id
required - string -
is_primary
optional - bool
-
-
timeouts
single block
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.