PowerShell and TeamCity build status output info.
After doing quite a bit of research on the subject, I found that there was not a lot of content in regards to how to handle a PowerShell build running in TeamCity and having it handle exits and errors correctly. Due to this lack of ability to find detailed information, I figured why not add a little bit here. Example of an Azure ARM Deployment with error handling in TeamCity: Yes, there are probably much better ways to handle this, but this is just a quick example of how we could write this. And no, it won't catch all issues with the deployment, but this is a work in progress. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 $DeploymentSplat = @ { "Name" = "TestDBDeploy" "ResourceGroupName" = "my-awesome-resourcegroup" "Mode" = "Incremental" "TemplateParameterFile" = "C:\Path\To\Arm\Te...