Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Desired Custom Script Extension Use
{
"name": "[concat('cluster-node', copyindex())]",
"type": "Microsoft.Resources/deployments",
"apiVersion": "2015-01-01",
"dependsOn": [
"storageAccountsLoop"
],
"copy": {
"name": "clusterNodesLoop",
"count": "[variables('clusterSpec').clusterSize]"
},
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('clusterSpec').vmTemplate]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"skipping for brevity": {
"value": "........."
}
}
}
}, {
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('machineSettings').machineNamePrefix, '0', '/configurecouchbase')]",
"apiVersion": "2015-05-01-preview",
"location": "[parameters('commonSettings').region]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, '0')]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"settings": {
"fileUris": "[variables('vmScripts').scriptsToDownload]",
"commandToExecute": "[variables('vmScripts').configureCommand]"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment