-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathosProfile.json
99 lines (99 loc) · 3.08 KB
/
osProfile.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "2017.09.01.0",
"parameters": {
"computerName": {
"type": "string",
"metadata": {
"description": "Specifies the host OS name of the virtual machine."
}
},
"adminUsername": {
"type": "string",
"minLength": 1,
"maxLength": 20,
"metadata": {
"description": "Specifies the name of the administrator account."
}
},
"adminPassword": {
"type": "securestring",
"minLength": 6,
"maxLength": 123,
"metadata": {
"description": "Specifies the password of the administrator account."
}
},
"customData": {
"type": "string",
"maxLength": 65535,
"defaultValue": "",
"metadata": {
"description": "Specifies a base-64 encoded string of custom data."
}
},
"windowsConfiguration": {
"type": "object",
"defaultValue": { },
"metadata": {
"description": "Specifies Windows operating system settings on the virtual machine."
}
},
"linuxConfiguration": {
"type": "object",
"defaultValue": { },
"metadata": {
"description": "Specifies the Linux operating system settings on the virtual machine."
}
},
"secrets": {
"type": "object",
"defaultValue": { },
"metadata": {
"description": "Specifies set of certificates that should be installed onto the virtual machine."
}
}
},
"variables": {
"comments": {
"definition": "https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/virtualmachines-create-or-update#osprofile"
},
"osProfileArray": [
{
"computerName": "[parameters('computerName')]",
"adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('adminPassword')]",
"windowsConfiguration": "[parameters('windowsConfiguration')]"
},
{
"computerName": "[parameters('computerName')]",
"adminUsername": "[parameters('adminUsername')]",
"linuxConfiguration": "[parameters('linuxConfiguration')]"
},
{
"computerName": "[parameters('computerName')]",
"adminUsername": "[parameters('adminUsername')]",
"adminPassword": "[parameters('adminPassword')]",
"customData": "[parameters('customData')]",
"windowsConfiguration": "[parameters('windowsConfiguration')]",
"secrets": "[parameters('secrets')]"
},
{
"computerName": "[parameters('computerName')]",
"adminUsername": "[parameters('adminUsername')]",
"customData": "[parameters('customData')]",
"linuxConfiguration": "[parameters('linuxConfiguration')]",
"secrets": "[parameters('secrets')]"
}
],
"osProfile": "[if(not(empty(parameters('windowsConfiguration'))),variables('osProfileArray')[0],variables('osProfileArray')[1])]"
},
"resources": [
],
"outputs": {
"osProfile": {
"type": "object",
"value": "[variables('osProfile')]"
}
}
}