added properties to security_group_rules in lab3 and updated vm sku to B1s
This commit is contained in:
Родитель
9d6caf2e0c
Коммит
29d57e2636
|
@ -7,18 +7,24 @@ security_group_rules = [
|
|||
priority = 100
|
||||
protocol = "tcp"
|
||||
destinationPortRange = "80"
|
||||
direction = "Inbound"
|
||||
access = "Allow"
|
||||
},
|
||||
{
|
||||
name = "https"
|
||||
priority = 150
|
||||
protocol = "tcp"
|
||||
destinationPortRange = "443"
|
||||
direction = "Inbound"
|
||||
access = "Allow"
|
||||
},
|
||||
{
|
||||
name = "deny-the-rest"
|
||||
priority = 200
|
||||
protocol = "*"
|
||||
destinationPortRange = "0-65535"
|
||||
direction = "Inbound"
|
||||
access = "Deny"
|
||||
},
|
||||
]
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ variable "security_group_rules" {
|
|||
priority = number
|
||||
protocol = string
|
||||
destinationPortRange = string
|
||||
direction = string
|
||||
access = string
|
||||
}))
|
||||
description = "List of security group rules"
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ resource "azurerm_virtual_machine" "predayvm" {
|
|||
name = "tfignitepredayvm"
|
||||
location = var.location
|
||||
resource_group_name = var.rg
|
||||
vm_size = "Standard_DS1_v2"
|
||||
vm_size = "Standard_B1s"
|
||||
network_interface_ids = [azurerm_network_interface.predaynic.id]
|
||||
|
||||
storage_image_reference {
|
||||
|
|
|
@ -15,7 +15,7 @@ resource "azurerm_virtual_machine" "predayvm" {
|
|||
name = var.host_name
|
||||
location = var.location
|
||||
resource_group_name = var.rg
|
||||
vm_size = "Standard_DS1_v2"
|
||||
vm_size = "Standard_B1s"
|
||||
network_interface_ids = [azurerm_network_interface.predaynic.id]
|
||||
|
||||
storage_image_reference {
|
||||
|
|
|
@ -275,7 +275,7 @@ resource "azurerm_virtual_machine" "predayvm" {
|
|||
name = var.host_name
|
||||
location = var.location
|
||||
resource_group_name = var.rg
|
||||
vm_size = "Standard_DS1_v2"
|
||||
vm_size = "Standard_B1s"
|
||||
network_interface_ids = [azurerm_network_interface.predaynic.id]
|
||||
|
||||
storage_image_reference {
|
||||
|
|
Загрузка…
Ссылка в новой задаче