bgp_settings
block in azurerm_virtual_network_gateway
sets value “Default Azure BGP peer IP address”. I can’t find a field that will populate “Custom Azure APIPA BGP IP address”.
resource "azurerm_virtual_network_gateway" "vnet_gw" {
name = "${var.prefix}-vnet-gw"
location = azurerm_resource_group.rg.location
resource_group_name = azurerm_resource_group.rg.name
type = "Vpn"
sku = "VpnGw1"
vpn_type = "RouteBased"
enable_bgp = true
bgp_settings {
asn = 65515
peering_address = var.bgp_azure_interface_ip_0
}
ip_configuration {
name = "${var.prefix}-vnetGatewayConfig"
public_ip_address_id = azurerm_public_ip.gw_public_ip.id
private_ip_address_allocation = "Dynamic"
subnet_id = azurerm_subnet.gw_subnet.id
}
tags = var.labels
}