Blog

Blog posts on .NET, Azure, and more.

How to generate video thumbnail with Azure function

May 12, 2021 by Anuraj

Azure Functions Serverless

This article will discuss about implementing an azure function which generate a thumbnail image for a video stored in Azure Storage. In one of the project I am working there is a requirement to extract thumbnail for the video uploaded by user to a Azure Storage Account. This is implemented using .NET and C#. For extracting the video thumbnail - FFMediaToolkit package is used. And I am using ImageSharp package is for saving the image as well. I am using Azure Portal to create the function. You can use the same code if you’re using Visual Studio or VS Code, for the simplicity I am using CSX function. The function is using Windows OS. Platform is 64 Bit. Once you created the function app, create a new function with Blob Trigger.

Publish your first docker image to Azure Container Registry

May 07, 2021 by Anuraj

Docker ACR Azure

This article will discuss about configuring Azure Container Registry and publishing first your docker image to Azure Container Registry. Azure Container Registry is a managed, private Docker registry service based on the open-source Docker Registry 2.0. Create and maintain Azure container registries to store and manage your private Docker container images and related artifacts.

How to send an email with dynamic templates from SendGrid with ASP.NET Core

April 26, 2021 by Anuraj

AspNetCore SendGrid

This article will discuss about sending emails with dynamic templates from SendGrid with ASP.NET Core. SendGrid will help you to configure and send emails from your apps using SMTP API and SendGrid API. SendGrid also helps you to design and configure email templates from their admin portal. In one of applications I am building I am using Azure B2C - which currently supports custom from email address with the help of SendGrid. You can find more details about how to configure it from here. So first you need to create dynamic template from SendGrid. You can create it from https://mc.sendgrid.com/dynamic-templates. You can create the template either using Code Editor or Design Editor.

How to setup nginx reverse proxy for aspnet core apps with Docker compose

April 24, 2021 by Anuraj

AspNetCore Docker

This article will discuss about configuring nginx reverse proxy for aspnet core apps with Docker compose. Today I took as session on Introduction to Docker Containers one of the question I received was how to run multiple instances of a container and load balance them. So in this blog post I am creating multiple instances of a ASP.NET Core Web API and load balance them with the help of nginx. Nginx is a web server that can also be used as a reverse proxy, load balancer, mail proxy and HTTP cache.

ASP.NET Core 5.0 Authentication with Azure Active Directory

April 14, 2021 by Anuraj

AspNetCore Authentication Azure

This article will discuss about implementing Azure Active Directory authentication in ASP.NET Core 5.0. Few weeks back I wrote a blog post on implementing Azure AD authentication for ASP.NET Core Web API project. In this article we will discuss about implementing authentication to an ASP.NET Core MVC project. Unlike earlier versions of ASP.NET Core Project templates, ASP.NET Core 5.0 new project UI doesn’t offer much configuration options. From the Authentication Type you need to choose Microsoft Identity Platform.

Copyright © 2024 Anuraj. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Powered by Jekyll. Hosted with ❤ by GitHub