azurerm_media_services_account

Manages a Media Services Account.

Example Usage

resource "azurerm_resource_group" "example" {
  name     = "media-resources"
  location = "West Europe"
}

resource "azurerm_storage_account" "example" {
  name                     = "examplestoracc"
  resource_group_name      = azurerm_resource_group.example.name
  location                 = azurerm_resource_group.example.location
  account_tier             = "Standard"
  account_replication_type = "GRS"
}

resource "azurerm_media_services_account" "example" {
  name                = "examplemediaacc"
  location            = azurerm_resource_group.example.location
  resource_group_name = azurerm_resource_group.example.name

  storage_account {
    id         = azurerm_storage_account.example.id
    is_primary = true
  }
}

Argument Reference

The following arguments are supported:


A storage_account block supports the following:


A encryption block supports the following:


A identity block supports the following:


A key_delivery_access_control block supports the following:


A managed_identity block supports the following:


Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


An encryption block exports the following:


An identity block exports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Media Services Accounts can be imported using the resource id, e.g.

terraform import azurerm_media_services_account.account /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Media/mediaServices/account1