Skip to content

Commit 337a179

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

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

Diff for: test_code/AZURE_MACHINES/main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ resource "azurerm_windows_virtual_machine" "windows_host_test" {
8585
}
8686

8787
# custom_data = filebase64("${each.value.user_data}\n${local.additional_custom_data}")
88-
custom_data = base64encode("${file("${path.module}/../user_data/windows.ps")}\n${local.additional_custom_data}")
88+
custom_data = base64encode("${file("${path.module}/../user_data/windows_azure.ps")}\n</powershell>\n<persist>true</persist>\n${local.additional_custom_data}")
8989
}

Diff for: test_code/AZURE_MACHINES/security_group.tf

+11
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

Diff for: test_code/user_data/windows_azure.ps

1.28 KB
Binary file not shown.

0 commit comments

Comments
 (0)