0
0
llucycodes42
The azurerm_lb_nat_rule resource defines a rule that allows RDP access from the West US location to the port 3389 on the frontend computer. The rule allows traffic to flow only from the public IP address of the frontend computer to the backend computer.
Shortcut: tf_azurerm_lb_nat_rule
resource "azurerm_lb_nat_rule" "${MyResource}" {
name = "RDP Access"
location = "West US"
resource_group_name = "\${azurerm_resource_group.test.name}"
loadbalancer_id = "\${azurerm_lb.test.id}"
protocol = "Tcp"
frontend_port = 3389
backend_port = 3389
frontend_ip_configuration_name = "PublicIPAddress"
}