Skip to content

Commit

Permalink
Changing artifact to use PowerShell's -Command to bubble up errors co…
Browse files Browse the repository at this point in the history
…rrectly. (#325)
  • Loading branch information
leovms committed Dec 6, 2017
1 parent 06bc3d6 commit 7b6c10a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Artifacts/windows-run-powershell/Artifactfile.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@
"runAzureVMExtension": {
"publisher": "Microsoft.Compute",
"type": "CustomScriptExtension",
"typeHandlerVersion": "1.8",
"typeHandlerVersion": "1.9",
"autoUpgradeMinorVersion": "true",
"settings": {
"fileUris": "[parameters('scriptFileUris')]",
"commandToExecute": ""
},
"protectedSettings": {
"commandToExecute": "[concat('powershell.exe -ExecutionPolicy bypass -File', ' ', parameters('scriptToRun'), ' ', parameters('scriptArguments'))]"
"commandToExecute": "[concat('powershell.exe -ExecutionPolicy bypass \"&', ' ./', parameters('scriptToRun'), ' ', parameters('scriptArguments'), '\"')]"
}
}
}

0 comments on commit 7b6c10a

Please sign in to comment.