The following arguments are supported:
NOTE
Since route can be configured both inline and via the separate azurerm_route resource, we have to explicitly set it to empty slice ([]) to remove it.
A route block support:
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_route_table" "example" {
name = "example-route-table"
location = azurerm_resource_group.example.location
resource_group_name = azurerm_resource_group.example.name
disable_bgp_route_propagation = false
route {
name = "route1"
address_prefix = "10.1.0.0/16"
next_hop_type = "VnetLocal"
}
tags = {
environment = "Production"
}
}
az network route-table route create --name
--resource-group
--route-table-name
[--address-prefix]
[--next-hop-ip-address]
[--next-hop-type {Internet, None, VirtualAppliance, VirtualNetworkGateway, VnetLocal}]
[--no-wait {0, 1, f, false, n, no, t, true, y, yes}]
az network route-table route create -g MyResourceGroup --route-table-name MyRouteTable -n MyRoute --next-hop-type VirtualAppliance --address-prefix 10.0.0.0/16 --next-hop-ip-address 10.0.100.4
Categorized by Availability, Security & Compliance and Cost