-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimageReference.json
More file actions
65 lines (65 loc) · 2.09 KB
/
imageReference.json
File metadata and controls
65 lines (65 loc) · 2.09 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
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "2017.09.01.0",
"parameters": {
"id": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "Specifies the resource identifier of a virtual machine image in your subscription. This element is only used for virtual machine images, not platform images or marketplace images."
}
},
"publisher": {
"type": "string",
"metadata": {
"description": "Specifies the publisher of the platform image or marketplace image used to create the virtual machine."
}
},
"offer": {
"type": "string",
"metadata": {
"description": "Specifies the offer of the platform image or marketplace image used to create the virtual machine."
}
},
"sku": {
"type": "string",
"metadata": {
"description": "Specifies the SKU of the platform image or marketplace image used to create the virtual machine."
}
},
"version": {
"type": "string",
"defaultValue": "latest",
"metadata": {
"description": "Specifies the version of the platform image or marketplace image used to create the virtual machine."
}
}
},
"variables": {
"comments": {
"definition": "https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/virtualmachines-create-or-update#imageref"
},
"Reference1": {
"id": "[parameters('id')]",
"publisher": "[parameters('publisher')]",
"offer": "[parameters('offer')]",
"sku": "[parameters('sku')]",
"version": "[parameters('version')]"
},
"Reference2": {
"publisher": "[parameters('publisher')]",
"offer": "[parameters('offer')]",
"sku": "[parameters('sku')]",
"version": "[parameters('version')]"
},
"imageReference": "[if(empty(parameters('id')),variables('Reference2'),variables('Reference1'))]"
},
"resources": [
],
"outputs": {
"imageReference": {
"type": "object",
"value": "[variables('imageReference')]"
}
}
}