Skip to content

Commit afdb5c8

Browse files
committed
add rdp port for troubleshooting
1 parent 4e99a99 commit afdb5c8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test_code/AZURE_MACHINES/security_group.tf

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ resource "azurerm_network_security_group" "linux_host_test" {
3838
source_address_prefix = "*"
3939
destination_address_prefix = "*"
4040
}
41+
security_rule {
42+
name = "RDP"
43+
priority = 1002
44+
direction = "Inbound"
45+
access = "Allow"
46+
protocol = "Tcp"
47+
source_port_range = "*"
48+
destination_port_range = "3389"
49+
source_address_prefix = "*"
50+
destination_address_prefix = "*"
51+
}
4152
}
4253

4354
# Connect the security group to the network interface

0 commit comments

Comments
 (0)