Guest User

Untitled

a guest
Feb 17th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. resource "azurerm_resource_group" "test0" {
  2. name = "shuinsg"
  3. location = "West US"
  4. }
  5.  
  6. resource "azurerm_network_security_group" "test0" {
  7. name = "shuinsgtest"
  8. location = "${azurerm_resource_group.test0.location}"
  9. resource_group_name = "${azurerm_resource_group.test0.name}"
  10. }
  11.  
  12. resource "azurerm_network_security_rule" "test0" {
  13. name = "RDP"
  14. priority = 100
  15. direction = "Inbound"
  16. access = "Allow"
  17. protocol = "TCP"
  18. source_port_range = "*"
  19. destination_port_range = "3389"
  20. source_address_prefixes = ["200.160.200.30","200.160.200.60"]
  21. destination_address_prefix = "VirtualNetwork"
  22. network_security_group_name= "${azurerm_network_security_group.test0.name}"
  23. resource_group_name = "${azurerm_resource_group.test0.name}"
  24. }
Add Comment
Please, Sign In to add comment