Always ship Azure DevOps.

Working YAML sample of a remote repository CI trigger in Azure DevOps

It took me something like 10 years of struggling to get remote triggers to finally fire in Azure DevOps, and in this article I’ll share how I finally got the remote repository trigger to work for an actual Team Project in real production use (and that’s a first!) 😃 Okay, I know, that’s a bit rich – they’ve been supported for maybe a few years, so there’s no way I’ve…Continue reading Working YAML sample of a remote repository CI trigger in Azure DevOps

Stage failing in Azure DevOps pipeline

How to avoid global.json version conflicts in Azure DevOps

In Azure DevOps, you sometimes have a project that’s being built with a certain .NET version. It’ll require that particular SDK version, and most typically that is defined in the global.json file. However, if you also need to install a certain .NET tool, running dotnet tool install MyBuildTool will fail. And it’ll fail before it actually tries to install the version of the tool you wanted! This article explains how…Continue reading How to avoid global.json version conflicts in Azure DevOps

Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to delimit the name

How to fix Azure DevOps “Variable reference is not valid. ‘:’ was not followed by a valid variable name character. Consider using ${} to delimit the name”

This article explains one possible reason why you might run into an error like “Variable reference is not valid. ‘:’ was not followed by a valid variable name character. Consider using ${} to delimit the name” when using a PowerShell task in an Azure DevOps pipeline. Confusingly, the offending line might be this: Write-Host (‘##vso[task.debug]$LASTEXITCODE: {0}’ -f $LASTEXITCOD … Not something you even have in your script! What gives? Problem…Continue reading How to fix Azure DevOps “Variable reference is not valid. ‘:’ was not followed by a valid variable name character. Consider using ${} to delimit the name”

bash - it's even more of a mystery than PowerShell

Azure DevOps fails with “Error: The path ‘/home/vsts/work/1/s/your-repo’ does not exist” even though the repository is there for sure?

Eh, this was a weird one. This article explains how to get around an issue where your build tools fail due to weird “path does not exist” errors when you’re using bash to execute a restore to your project. The build would probably succeed nicely, but it fails due to missing dependencies – in my case, at least the whole node_modules folder was missing. And of course, it is –…Continue reading Azure DevOps fails with “Error: The path ‘/home/vsts/work/1/s/your-repo’ does not exist” even though the repository is there for sure?

git logo

How to import an Azure DevOps Git repository… From another Azure DevOps organization?

A while ago, I needed to move an Azure DevOps Git repository from one organization to another. And that was far easier than I thought. For once, a nice surprise from Git _and_ Azure DevOps 😀 So, let me tell you how that’s done! Well, how it’s done if it goes well, anyway. And if still works as it used to when you’re reading this. We’ll see! Solution Posts Related…Continue reading How to import an Azure DevOps Git repository… From another Azure DevOps organization?

An accurate depiction of a NuGet package factory

How to fix NU3028 and NU3037 errors in Azure DevOps builds?

This article explains a solution to a rather annoying issue, where certificate validation for builds trying to fetch NuGet packages published by Microsoft fails when using .NET 5. This happens at least with Docker build when you’re relying on some Microsoft-provided images… But probably also in a lot of other cases. Problem When running an Azure DevOps pipeline with any task that does any Docker stuff, your build fails. Or…Continue reading How to fix NU3028 and NU3037 errors in Azure DevOps builds?

Batman does not deploy again. He rolls back like a boss.

How to roll back an Azure IoT Edge layered deployment?

Have you ever wondered how you could roll back the latest layered Azure IoT Edge deployment? I have – it’s actually pretty useful. But what for? Well, perhaps it’s useful as the last step or whatever interesting Azure DevOps pipelines you have to deploy changes to an Edge device, run tests, and then remove the deployment. You could possibly have it as an optional parameter in case you want to…Continue reading How to roll back an Azure IoT Edge layered deployment?

Azure DevOps - Always Be Shipping!

How to configure Azure IoT Edge deployments in Azure DevOps pipeline?

So some time ago, I needed to configure my first Azure DevOps pipeline for an Azure IoT Edge project. I needed to figure out which tasks to use, how to handle variables – all that good stuff. And let’s call it a learning experience. Pro tip: AzureIoTEdge task is not the way to go :) This article has actually been more than a year in the making, but as usual,…Continue reading How to configure Azure IoT Edge deployments in Azure DevOps pipeline?

Not sure if a bug or a feature

Azure DevOps incoming webhook just won’t fire? Easy (stupid) fix!

This article documents a simple but annoying fix to an issue with Azure DevOps. In this particular case, an incoming webhook (configured as a service connection) would fail to fire, no matter what. It turns out that it’s a bug in Azure DevOps – who would have thought :) Luckily, there’s a fairly simple workaround available! Problem A colleague was configuring a new pipeline in Azure DevOps. It was supposed…Continue reading Azure DevOps incoming webhook just won’t fire? Easy (stupid) fix!

Azure IoT Edge is just Docker containers all the way

Azure IoT Edge gotchas – and how to overcome them!

This article describes the gotchas and weird one-offs that I’ve encountered with Azure IoT Edge so far. Consider them not-too-thoroughly tested quick fixes that aren’t significant enough to warrant an actual blog post themselves :) Okay – let’s get to them gotchas, then! Posts Related to “Azure IoT Edge gotchas – and how to overcome them!”:Azure IoT Edge order of deployment operationsHow to update application settings of an Azure Functions…Continue reading Azure IoT Edge gotchas – and how to overcome them!