Streaming Videos from Azure Blob Storage

This post is about how to stream videos from Azure Blob storage. Recently some one asked on tweet - about how to stream videos from azure storage account. Since in one of my project I was also loading videos from azure blob, I thought I will explore it a little...


Custom Model Binding in ASP.NET Core Minimal APIs

This post is about how to use custom model binding in ASP.NET Core Minimal APIs. By default ASP.NET Core Minimal APIs don’t support the FromBody attribute. This will become a challenge when we try to upload files to Web API with Minimal APIs. Here is some code for implementing File...


Create Containerized Build Agents with Azure DevOps Pipelines

This post is about how to create containerized build agents with azure devops pipeline. Few days back I wrote a blog post on creating Azure Virtual Machine as Azure DevOps pipeline build agent. In this post we will be discussing about how to use Docker container as build agent. We...


API Versioning with ASP.NET Core 6.0 Minimal APIs

This post is about how to implement api versioning in ASP.NET Core 6.0 Minimal APIs. Earlier Minimal APIs versioning was not supported. Recently ASP.NET Core team introduced versioning in ASP.NET Core Minimal APIs. To implement it, first we need to create a Web API with Minimal API - we need...


Creating your first Azure Container App

This post is about what is azure container app and how to deploy a docker image to azure container app. The Azure Container Apps service enables you to run microservices and containerized applications on a serverless platform. First we can search for Container App in the search box - and...


Mount your Azure Cloud Shell to another Storage Account

This post is about switching or mounting the Azure Cloud shell to another storage account. We are using Azure Cloud Shell for deploying our SQL Scripts using a PowerShell. First we will upload the script to the storage account file share and then we will execute some Powershell scripts for...


Unit Testing ASP.NET Core Minimal APIs

This post is about implementing unit testing ASP.NET Core Minimal APIs. This feature is only available in .NET Core 7 Preview. If you’re using .NET Core 6. This will not work. So first you need to install the .NET 7 preview. For the demo I am using this 7.0.100-preview.6.22352.1 version....


Custom scaffold templates in ASP.NET Core

This post is about customizing the scaffold templates controllers and views in ASP.NET Core. We can achieve this by simply modifying the templates in this folder - %USERPROFILE%\.nuget\packages\microsoft.visualstudio.web.codegenerators.mvc\6.0.6\Templates (the number 6.0.6 will change based on the SDK version) - but if we modify the template files in this folder it...