Skip to content

Instantly share code, notes, and snippets.

@Ercenk
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ercenk/6cbb1dba795c02954849 to your computer and use it in GitHub Desktop.
Save Ercenk/6cbb1dba795c02954849 to your computer and use it in GitHub Desktop.
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