File tree 3 files changed +12
-1
lines changed
3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -85,5 +85,5 @@ resource "azurerm_windows_virtual_machine" "windows_host_test" {
85
85
}
86
86
87
87
# 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 } " )
89
89
}
Original file line number Diff line number Diff line change @@ -38,6 +38,17 @@ resource "azurerm_network_security_group" "linux_host_test" {
38
38
source_address_prefix = " *"
39
39
destination_address_prefix = " *"
40
40
}
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
+ }
41
52
}
42
53
43
54
# Connect the security group to the network interface
You can’t perform that action at this time.
0 commit comments