Skip to content

Latest commit

 

History

History
41 lines (33 loc) · 1.13 KB

File metadata and controls

41 lines (33 loc) · 1.13 KB

Terraform Azure Windows Virtual Machine Scale Set

Code compatible with Terraform v0.14 and 0.15

Deploy a Windows Virtual Machine Scale Set in Azure using Terraform

Update the sku on this section of the windows-vm-ss-main.tf file, to configure the version of Windows Server.

source_image_reference {
  publisher = "MicrosoftWindowsServer"
  offer     = "WindowsServer"
  sku       = var.windows-2019-sku
  version   = "latest"
}

OS variables are located on the file windows-vm-ss-variables.tf

# Windows Server 2019 SKU used to build VMs
variable "windows-2019-sku" {
  type        = string
  description = "Windows Server 2019 SKU used to build VMs"
  default     = "2019-Datacenter"
}

# Windows Server 2016 SKU used to build VMs
variable "windows-2016-sku" {
  type        = string
  description = "Windows Server 2016 SKU used to build VMs"
  default     = "2016-Datacenter"
}

# Windows Server 2012 R2 SKU used to build VMs
variable "windows-2012-sku" {
  type        = string
  description = "Windows Server 2012 R2 SKU used to build VMs"
  default     = "2012-R2-Datacenter"
}