Skip to content

Instantly share code, notes, and snippets.

@bobalob
Created January 17, 2017 20:50
Show Gist options
  • Save bobalob/49c17b4e9ce8e45d2ade24a9a1056377 to your computer and use it in GitHub Desktop.
Save bobalob/49c17b4e9ce8e45d2ade24a9a1056377 to your computer and use it in GitHub Desktop.
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"variables": {},
"resources": [
{
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "myVirtualMachine/deployscript",
"apiVersion": "2016-03-30",
"location": "[resourceGroup().location]",
"dependsOn": [
"myVirtualMachine"
],
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.7",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/bobalob/ARM-Example/master/ProvisionVM.PS1"
],
"commandToExecute": "powershell.exe -ExecutionPolicy Unrestricted -File ProvisionVM.PS1"
}
}
}
],
"outputs": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment