Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- resource "azurerm_resource_group" "test0" {
- name = "shuinsg"
- location = "West US"
- }
- resource "azurerm_network_security_group" "test0" {
- name = "shuinsgtest"
- location = "${azurerm_resource_group.test0.location}"
- resource_group_name = "${azurerm_resource_group.test0.name}"
- }
- resource "azurerm_network_security_rule" "test0" {
- name = "RDP"
- priority = 100
- direction = "Inbound"
- access = "Allow"
- protocol = "TCP"
- source_port_range = "*"
- destination_port_range = "3389"
- source_address_prefixes = ["200.160.200.30","200.160.200.60"]
- destination_address_prefix = "VirtualNetwork"
- network_security_group_name= "${azurerm_network_security_group.test0.name}"
- resource_group_name = "${azurerm_resource_group.test0.name}"
- }
Add Comment
Please, Sign In to add comment