-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdataDisks.json
More file actions
102 lines (102 loc) · 2.82 KB
/
dataDisks.json
File metadata and controls
102 lines (102 loc) · 2.82 KB
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
100
101
102
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "2017.09.01.0",
"parameters": {
"name": {
"type": "string",
"metadata": {
"description": "Specifies the name of the data disk. This element can be used to overwrite the name of the disk in a virtual machine image."
}
},
"diskSizeGB": {
"type": "int",
"defaultValue": 0,
"maxValue": 1023,
"metadata": {
"description": "Specifies the size of the data disk in gigabytes. This element can be used to overwrite the name of the disk in a virtual machine image."
}
},
"caching": {
"type": "string",
"defaultValue": "",
"allowedValues": [
"",
"None",
"ReadOnly",
"ReadWrite"
],
"metadata": {
"description": "Specifies the caching requirements."
}
},
"lun": {
"type": "int",
"defaultValue": 0,
"metadata": {
"description": "Specifies the logical unit number of the data disk."
}
},
"vhd": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "Specifies the uri of the location in storage where the VHD for the virtual machine should be placed."
}
},
"managedDiskId": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "Specifies the resource identifier of the managed disk."
}
},
"createOption": {
"type": "string",
"defaultValue": "",
"allowedValues": [
"",
"Attach",
"FromImage"
],
"metadata": {
"description": "Specifies how the data disk should be created."
}
}
},
"variables": {
"comments": {
"definition": "https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/virtualmachines-create-or-update#datadisks"
},
"dataDisksArray": [
{
"name": "[parameters('name')]",
"diskSizeGB": "[parameters('diskSizeGB')]",
"caching": "[parameters('caching')]",
"lun": "[parameters('lun')]",
"vhd": {
"uri": "[parameters('vhd')]"
},
"creationOption": "[parameters('createOption')]"
},
{
"name": "[parameters('name')]",
"diskSizeGB": "[parameters('diskSizeGB')]",
"caching": "[parameters('caching')]",
"lun": "[parameters('lun')]",
"managedDisk": {
"id": "[parameters('managedDiskId')]"
},
"createOption": "[parameters('createOption')]"
}
],
"dataDisks": "[if(empty(parameters('managedDiskId')),variables('dataDisksArray')[0],variables('dataDisksArray')[1])]"
},
"resources": [
],
"outputs": {
"dataDisks": {
"type": "object",
"value": "[variables('dataDisks')]"
}
}
}