azurerm_voice_services_communications_gateway

Manages a Voice Services Communications Gateways.

Example Usage

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

resource "azurerm_voice_services_communications_gateway" "example" {
  name                = "example-vcg"
  location            = "West Europe"
  resource_group_name = azurerm_resource_group.example.name
  connectivity        = "PublicAddress"
  codecs              = "PCMA"
  e911_type           = "DirectToEsrp"
  platforms           = ["OperatorConnect", "TeamsPhoneMobile"]

  service_location {
    location                                  = "eastus"
    allowed_media_source_address_prefixes     = ["10.1.2.0/24"]
    allowed_signaling_source_address_prefixes = ["10.1.1.0/24"]
    esrp_addresses                            = ["198.51.100.3"]
    operator_addresses                        = ["198.51.100.1"]
  }

  service_location {
    location                                  = "eastus2"
    allowed_media_source_address_prefixes     = ["10.2.2.0/24"]
    allowed_signaling_source_address_prefixes = ["10.2.1.0/24"]
    esrp_addresses                            = ["198.51.100.4"]
    operator_addresses                        = ["198.51.100.2"]
  }
  auto_generated_domain_name_label_scope = "SubscriptionReuse"
  api_bridge                             = jsonencode({})
  emergency_dial_strings                 = ["911", "933"]
  on_prem_mcp_enabled                    = false

  tags = {
    key = "value"
  }

  microsoft_teams_voicemail_pilot_number = "1"
}

Arguments Reference

The following arguments are supported:


A service_location block supports the following:

Attributes Reference

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

Timeouts

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

Import

Voice Services Communications Gateways can be imported using the resource id, e.g.

terraform import azurerm_voice_services_communications_gateway.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.VoiceServices/communicationsGateways/communicationsGateway1