formatting

This commit is contained in:
cshea15 2023-10-05 16:54:59 -04:00
parent deee58f798
commit e24feee41a
2 changed files with 8 additions and 8 deletions

View File

@ -203,16 +203,16 @@ resource "azurerm_network_interface_security_group_association" "vm_jump_nsg_ass
} }
resource "azurerm_linux_virtual_machine" "vm_server" { resource "azurerm_linux_virtual_machine" "vm_server" {
name = "server-vm" name = "server-vm"
resource_group_name = azurerm_resource_group.rg.name resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location location = azurerm_resource_group.rg.location
size = var.virtual_machine_size size = var.virtual_machine_size
admin_username = var.admin_username admin_username = var.admin_username
admin_ssh_key { admin_ssh_key {
username = var.admin_username username = var.admin_username
public_key = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey public_key = jsondecode(azapi_resource_action.ssh_public_key_gen.output).publicKey
} }
network_interface_ids = [azurerm_network_interface.vm_server_nic.id] network_interface_ids = [azurerm_network_interface.vm_server_nic.id]
os_disk { os_disk {
caching = "ReadWrite" caching = "ReadWrite"
storage_account_type = "Standard_LRS" storage_account_type = "Standard_LRS"

View File

@ -16,7 +16,7 @@ variable "firewall_sku_tier" {
default = "Premium" # Valid values are Standard and Premium default = "Premium" # Valid values are Standard and Premium
validation { validation {
condition = contains(["Standard", "Premium"], var.firewall_sku_tier) condition = contains(["Standard", "Premium"], var.firewall_sku_tier)
error_message = "The sku must be one of the following: Standard, Premium" error_message = "The SKU must be one of the following: Standard, Premium"
} }
} }
@ -28,6 +28,6 @@ variable "virtual_machine_size" {
variable "admin_username" { variable "admin_username" {
type = string type = string
description = "value of the admin username." description = "Value of the admin username."
default = "azureuser" default = "azureuser"
} }