-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupdate-vmss-deploy.json
43 lines (43 loc) · 1.31 KB
/
update-vmss-deploy.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
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json",
"contentVersion": "1.0.0.0",
"parameters": {
"vmssName":{
"type":"string",
"metadata":{
"description":"String used as a base for naming resources. Must be 3-61 characters in length and globally unique across Azure. A hash is prepended to this string for some resources, and resource-specific information is appended."
},
"maxLength": 61
},
"imageUri": {
"type": "string",
"metadata": {
"description": "Uri of the custom VM Image"
}
}
},
"variables": {
"namingInfix": "[toLower(substring(concat(parameters('vmssName'), uniqueString(resourceGroup().id)), 0, 9))]",
"osDiskName": "[concat(variables('namingInfix'), 'osdisk')]",
"computeApiVersion": "2016-03-30"
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachineScaleSets",
"name": "[variables('namingInfix')]",
"location": "[resourceGroup().location]",
"apiVersion": "[variables('computeApiVersion')]",
"properties": {
"virtualMachineProfile": {
"storageProfile": {
"osDisk": {
"image": {
"uri": "[parameters('imageUri')]"
}
}
}
}
}
}
]
}