-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwin-2022-agent-vm-aib-original.json
69 lines (69 loc) · 2.53 KB
/
win-2022-agent-vm-aib-original.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
59
60
61
62
63
64
65
66
67
68
69
{
"type": "Microsoft.VirtualMachineImages/imageTemplates",
"apiVersion": "2022-02-14",
"location": "<region>",
"dependsOn": [],
"tags": {
"imagebuilderTemplate": "win22dc"
},
"identity": {
"type": "UserAssigned",
"userAssignedIdentities": {
"<imgBuilderId>": {}
}
},
"properties": {
"buildTimeoutInMinutes": 360,
"vmProfile": {
"vmSize": "Standard_D1_v2",
"osDiskSizeGB": 128,
"vnetConfig": {
"subnetId": "/subscriptions/<subscriptionID>/resourceGroups/<vnetRgName>/providers/Microsoft.Network/virtualNetworks/<vnetName>/subnets/<subnetName>"
}
},
"source": {
"type": "PlatformImage",
"publisher": "MicrosoftWindowsServer",
"offer": "WindowsServer",
"sku": "2022-Datacenter",
"version": "latest"
},
"customize": [
{
"type": "PowerShell",
"name": "InitVM",
"scriptUri": "https://raw.githubusercontent.com/UKHO/vm-agent-aib/<branchname>/win-2022-agent-vm/scripts/Initialise-VM.ps1"
},
{
"type": "PowerShell",
"name": "InstallAzCli",
"scriptUri": "https://raw.githubusercontent.com/UKHO/vm-agent-aib/<branchname>/win-2022-agent-vm/scripts/Install-AzureCli.ps1"
},
{
"type": "PowerShell",
"name": "InstallDocker",
"scriptUri": "https://raw.githubusercontent.com/UKHO/vm-agent-aib/<branchname>/win-2022-agent-vm/scripts/Install-Docker.ps1"
},
{
"type": "PowerShell",
"runElevated": true,
"name": "DeprovisioningScript",
"scriptUri": "https://raw.githubusercontent.com/UKHO/vm-agent-aib/<branchname>/win-2022-agent-vm/scripts/deprovision.ps1"
}
],
"distribute": [
{
"type": "SharedImage",
"galleryImageId": "/subscriptions/<subscriptionID>/resourceGroups/<rgName>/providers/Microsoft.Compute/galleries/<sharedImageGalleryName>/images/<imageDefName>",
"runOutputName": "<runOutputName>",
"artifactTags": {
"source": "azureVmImageBuilder",
"baseosimg": "win22dc"
},
"replicationRegions": [
"<replicationRegion>"
]
}
]
}
}