Skip to content

Instantly share code, notes, and snippets.

@bobalob
Created November 21, 2016 20:20
Show Gist options
  • Save bobalob/e1fcf8616a51b038b9c5ce9276fcf798 to your computer and use it in GitHub Desktop.
Save bobalob/e1fcf8616a51b038b9c5ce9276fcf798 to your computer and use it in GitHub Desktop.
resource "azurerm_lb_nat_rule" "winrm_nat" {
location = "${var.azure_region_fullname}"
resource_group_name = "${azurerm_resource_group.resource_group.name}"
loadbalancer_id = "${azurerm_lb.load_balancer.id}"
name = "WinRM-HTTPS-vm-${count.index}"
protocol = "Tcp"
frontend_port = "${count.index + 10000}"
backend_port = "${var.vm_winrm_port}"
frontend_ip_configuration_name = "${var.vm_name_prefix}-ipconfig"
count = "${var.vm_count}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment