Skip to content

Instantly share code, notes, and snippets.

@wvanbesien
Created December 2, 2019 04:36
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 wvanbesien/f7ae409d04c88e0892b7d89100259aa1 to your computer and use it in GitHub Desktop.
Save wvanbesien/f7ae409d04c88e0892b7d89100259aa1 to your computer and use it in GitHub Desktop.
{
"apiVersion": "2018-06-01",
"type": "Microsoft.Compute/virtualMachines/extensions",
"name": "[concat(parameters('VM_Name'),'/config-server')]",
"location": "[resourceGroup().location]",
"dependsOn": [
"[concat('Microsoft.Compute/virtualMachines/', parameters('VM_Name'))]"
],
"tags": {
"displayName": "config-server"
},
"properties": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.9",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/wvanbesien/regionalSettings/master/SetLanguage.ps1"
]
},
"protectedSettings": {
"commandToExecute": "powershell -ExecutionPolicy Unrestricted -File setlanguage.ps1 -lng en-AU"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment