-
Create an Azure Resource Manager Service Connection for Azure DevOps Server Pipelines
Creating a service connection in Azure DevOps Server is complex due to the lack of direct access to Azure resources unlike in its cloud counterpart. To ease this, a detailed PowerShell script has been developed to facilitate Azure Resource Manager service connection setup by generating necessary values, which can then be inputted directly into Azure…
-
Azure DevOps YAML: Slides / Code from VSLive Las Vegas 2023
My slides and code samples from my Azure DevOps YAML Pipelines talk at VSLive Las Vegas 2023.
-
Enforce Code Coverage as Part of Pull Requests in Azure DevOps
Did you know that you can enforce code coverage as part of pull requests in Azure DevOps? Here’s how to set it up.
-
Azure DevOps Tip: Have a Separate YAML Pipeline for Pull Request Validations & Use YAML Templates
In Azure DevOps, balancing the needs of your deployment pipelines and your pull request validation requirements can get a little hairy. Try splitting them in to two pipelines and use YAML Templates to keep the code clean
-
How to Rename an Azure DevOps YAML Pipeline
How do you rename an Azure DevOps Pipeline? You can do it but it’s kind of hidden. Here’s how to do it.
-
Azure DevOps Tips: Handling Strings in YAML Pipelines
Yesterday I wrote a post about an error I was getting in an Azure DevOps YAML Pipeline script. The gist was that I had a long string in the YAML file and I was running into a problem using the YAML string literal pipe ‘|’ syntax. Well, in my effort to understand what the specification…
-
YAML error in azure-pipelines.yml: “Bad indentation of a mapping entry”
Love it or hate it, you’ve got to admit that YAML build pipeline scripts can be a brittle. One little bit of whitespace out of place and — boom! — you staring at a ton of errors. I ran into two related errors yesterday while I was working on an Azure DevOps pipeline script: “bad…
-
Azure DevOps YAML Pipelines: How to Set an Environment Variable during a Build or Release
I got a question from a user of my EF Core Migrations deploy utilities last week. He was running into problems where “dotnet ef database update” was picking up the wrong version of his appsettings.json config file. At first, it looked like it was a problem with my utility’s code but after some more digging,…
-
Azure DevOps Pipelines: Understanding Pre-Deploy and Post-Deploy Approvals
Azure DevOps Release Pipelines has a nifty feature called Approvals. Let’s say that you have a couple different stages (aka. “environments”) in your release pipeline – Test and Production. A simple test/prod release pipeline Without approvals turned on, when your release pipeline is triggered, the Test and Production stages run automatically. If you enable Approvals,…