-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazuredeploy.vmssextension.jsonc
52 lines (52 loc) · 2.04 KB
/
azuredeploy.vmssextension.jsonc
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
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"vmssName": {
"type": "string",
"metadata": {
"description": "The VMSS resource name"
}
},
"vmssCustomScriptArtifactsLocation": {
"type": "string",
"metadata": {
"description": "The full location of the provisioning script. This must be in a storage account that can be accessed by the vmss."
}
},
"artifactsLocation": {
"type": "string",
"metadata": {
"description": "The full location of the artifacts file. This must be in a storage account that can be accessed by the vmss."
}
}
},
"variables": {
"location": "[resourceGroup().location]",
"artifactsStorageContainerName": "provisioning"
},
"resources": [
{
"type": "Microsoft.Compute/virtualMachineScaleSets/extensions",
"name": "[concat(parameters('vmssName'),'/',variables('artifactsStorageContainerName'))]",
"apiVersion": "2019-03-01",
"location": "[variables('location')]",
"properties": {
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.1",
"autoUpgradeMinorVersion": true,
"settings": {
"skipDos2Unix": false
},
"protectedSettings": {
"commandToExecute": "[concat('sudo sh postprovisioning.sh ', '\"', parameters('artifactsLocation'),'\"')]",
"fileUris": ["[parameters('vmssCustomScriptArtifactsLocation')]"],
"managedIdentity": {}
}
}
}
],
"outputs": {},
"functions": []
}