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"
      }
      Terraform language logo

      azurerm_lb_nat_rule

      Terraform snippets

      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

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.