add type for variables

This commit is contained in:
hezijie 2023-02-23 09:26:31 +08:00
parent 93f6488941
commit dfcd06404e

View File

@ -1,34 +1,41 @@
variable "resource_group_location" { variable "resource_group_location" {
type = string
default = "eastus" default = "eastus"
description = "Location for all resources." description = "Location for all resources."
} }
variable "resource_group_name_prefix" { variable "resource_group_name_prefix" {
type = string
default = "rg" default = "rg"
description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription." description = "Prefix of the resource group name that's combined with a random ID so name is unique in your Azure subscription."
} }
variable "lab_name" { variable "lab_name" {
type = string
description = "The name of the new lab instance to be created" description = "The name of the new lab instance to be created"
default = "ExampleLab" default = "ExampleLab"
} }
variable "vm_name" { variable "vm_name" {
type = string
description = "The name of the vm to be created." description = "The name of the vm to be created."
default = "example-vm" default = "example-vm"
} }
variable "vm_size" { variable "vm_size" {
type = string
description = "The size of the vm to be created." description = "The size of the vm to be created."
default = "Standard_D4_v3" default = "Standard_D4_v3"
} }
variable "user_name" { variable "user_name" {
type = string
description = "The username for the local account that will be created on the new vm." description = "The username for the local account that will be created on the new vm."
default = "exampleuser" default = "exampleuser"
} }
variable "password" { variable "password" {
type = string
description = "The password for the local account that will be created on the new vm." description = "The password for the local account that will be created on the new vm."
sensitive = true sensitive = true
default = null default = null