added properties to security_group_rules in lab3 and updated vm sku to B1s

This commit is contained in:
Mark Gray 2019-11-01 13:32:46 -07:00
Родитель 9d6caf2e0c
Коммит 29d57e2636
5 изменённых файлов: 11 добавлений и 3 удалений

Просмотреть файл

@ -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 {