Last active
August 29, 2015 14:20
-
-
Save Ercenk/6cbb1dba795c02954849 to your computer and use it in GitHub Desktop.
Desired Custom Script Extension Use
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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