-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathwindows_2019_iis.json
58 lines (58 loc) · 1.69 KB
/
windows_2019_iis.json
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"variables": {
"client_id": "d5xxxxx",
"client_secret": "",
"sensitive-variables": "client_secret",
"tenant_id": "d3xxxxxx",
"subscription_id": "997xxxxxxxxxx"
},
"builders": [
{
"type": "azure-arm",
"client_id": "{{user `client_id`}}",
"client_secret": "{{user `client_secret`}}",
"tenant_id": "{{user `tenant_id`}}",
"subscription_id": "{{user `subscription_id`}}",
"os_type": "Windows",
"image_publisher": "MicrosoftWindowsServer",
"image_offer": "WindowsServer",
"image_sku": "2019-Datacenter",
"image_version": "latest",
"managed_image_resource_group_name": "Bootcamp",
"managed_image_name": "ws2019-iis",
"disk_caching_type": "ReadWrite",
"communicator": "winrm",
"winrm_use_ssl": true,
"winrm_insecure": true,
"winrm_timeout": "20m",
"winrm_username": "packer",
"location": "West Europe",
"vm_size": "Standard_A2_v2",
"azure_tags": {
"dept": "IT"
}
}
],
"provisioners": [
{
"type": "powershell",
"inline": [
"Write-Host 'Configuring IIS Role and sysprepping...'"
]
},
{
"type": "powershell",
"script": "./scripts/iis-install.ps1"
},
{
"type": "windows-update"
},
{
"type": "windows-restart"
},
{
"type": "powershell",
"script": "./scripts/iis-sysprep.ps1"
}
]
}