Created
March 8, 2017 11:26
-
-
Save marrobi/4ebeb7814dd8f13789d98aeddfae7eec to your computer and use it in GitHub Desktop.
CusotmScript with auto mount
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": "CustomScript", | |
"type": "extensions", | |
"location": "[resourceGroup().location]", | |
"apiVersion": "2016-03-30", | |
"dependsOn": [ | |
"[resourceId('Microsoft.Compute/virtualMachines', variables('vmName'))]" | |
], | |
"tags": { | |
"displayName": "CustomScript" | |
}, | |
"properties": { | |
"publisher": "Microsoft.Azure.Extensions", | |
"type": "CustomScript", | |
"typeHandlerVersion": "2.0", | |
"autoUpgradeMinorVersion": true, | |
"settings": { | |
"fileUris": [ | |
"[concat(parameters('_artifactsLocation'), '/', 'autopart.sh', parameters('_artifactsLocationSasToken'))]", | |
"[concat(parameters('_artifactsLocation'), '/', 'mount_shares.sh', parameters('_artifactsLocationSasToken'))]" | |
], | |
"commandToExecute": "[concat('bash autopart.sh && bash mount_shares.sh ',parameters('dataDirPath'),' ',parameters('dataDirUsername'),' ',parameters('dataDirPassword'))]" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment