-
Notifications
You must be signed in to change notification settings - Fork 2
/
iis-vm.pkr.hcl
41 lines (35 loc) · 927 Bytes
/
iis-vm.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
packer {
required_plugins {
azure = {
source = "github.com/hashicorp/azure"
version = "2.0.1"
}
}
}
source "azure-arm" "iis-vm" {
use_azure_cli_auth = true
managed_image_name = "iis-vm-image"
managed_image_resource_group_name = "packer-images-rg"
location = "germanywestcentral"
image_publisher = "MicrosoftWindowsServer"
image_offer = "WindowsServer"
image_sku = "2022-datacenter-azure-edition"
os_type = "Windows"
vm_size = "Standard_DS1_v2"
communicator = "winrm"
winrm_username = "vmadmin"
winrm_password = "P@ssw0rd1234"
winrm_use_ssl = true
winrm_insecure = true
winrm_timeout = "5m"
}
build {
sources = ["source.azure-arm.iis-vm"]
provisioner "powershell" {
scripts = [
"scripts/configure-winrm.ps1",
"scripts/install-iis.ps1",
"scripts/sysprep.ps1",
]
}
}