Posts

Send Emails from Azure DevOps Pipelines: Build a Custom SendGrid Extension

Introduction Ever wanted your Azure DevOps pipeline to send a beautifully formatted email the moment a build finishes, a release deploys, or a test run completes? While Azure DevOps has built-in notifications, they are limited in formatting and flexibility. In this post, we’ll build a custom Azure DevOps pipeline extension that sends emails via SendGrid — a task you can drop into any pipeline, share with your whole organization, and even publish to the Visual Studio Marketplace. By the end, you’ll have a reusable “Send Email via SendGrid” task with configurable recipients, subject, and HTML body — with the API key kept safely out of your code. What You'll Need SendGrid Account : Sign up at SendGrid and create an API key with Mail Send permission. It will look like SG.**************** — keep it secret; we’ll never hardcode it. Node.js : The task handler runs on Node. Install the latest LTS version. tfx-cli : The ...

Create Release to Run Tests on Azure DevOps Release Pipeline via C#

Image
Introduction In the realm of modern software development, automation is key to maintaining efficiency and consistency. Azure DevOps offers robust tools for continuous integration and continuous deployment (CI/CD), allowing you to streamline your release management processes. In this blog, we’ll walk you through the steps to create a release on Azure DevOps using C# code — and link it to a Test Run for full traceability. Whether you’re a seasoned developer or just starting with Azure DevOps, this guide will help you harness the power of automation. What You'll Need Azure DevOps Account : If you don’t have one, sign up at Azure DevOps Services . Personal Access Token (PAT) : You’ll need this for authentication. Click the Settings icon next to your profile icon, then click Personal access tokens . Click New Token and enter the required details in the screen below: Visual Studio or any C# IDE : For writi...