From a09536cbbe818d74f946345aaba7e5e1a4ca38df Mon Sep 17 00:00:00 2001 From: Tom Archer Date: Tue, 28 Feb 2023 18:22:35 -0800 Subject: [PATCH] User story66570 (#184) * Changes to VM image; Added type attr to all vars --- quickstart/101-vm-with-infrastructure/main.tf | 4 ++-- quickstart/101-vm-with-infrastructure/variables.tf | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/quickstart/101-vm-with-infrastructure/main.tf b/quickstart/101-vm-with-infrastructure/main.tf index 978e5f06..f2bda180 100644 --- a/quickstart/101-vm-with-infrastructure/main.tf +++ b/quickstart/101-vm-with-infrastructure/main.tf @@ -111,8 +111,8 @@ resource "azurerm_linux_virtual_machine" "my_terraform_vm" { source_image_reference { publisher = "Canonical" - offer = "UbuntuServer" - sku = "18.04-LTS" + offer = "0001-com-ubuntu-server-jammy" + sku = "22_04-lts-gen2" version = "latest" } diff --git a/quickstart/101-vm-with-infrastructure/variables.tf b/quickstart/101-vm-with-infrastructure/variables.tf index e8396125..1a8c6abb 100644 --- a/quickstart/101-vm-with-infrastructure/variables.tf +++ b/quickstart/101-vm-with-infrastructure/variables.tf @@ -1,9 +1,11 @@ variable "resource_group_location" { + type = string default = "eastus" description = "Location of the resource group." } variable "resource_group_name_prefix" { + type = string default = "rg" description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription." } \ No newline at end of file