Today we will learn how to use Github Container Registry and we will create an docker image of a .Net Core application through Azure DevOps and publish the image to Github Container Registry and use it later.

Things required,

  1. Visual Studio 2019
  2. Personal Github Account( I will be using personal github account)
  3. Azure DevOps Account (you can create one it will be free)

Let’s Start,

  1. At first we need to enable the docker or container registry feature. To do that login to your github account, then click on your account and select Feature Preview, then click on enable. …

About SonarQube :It is an automatic code review tool to detect bugs, vulnerabilities, and code smells in your code. It can integrate with your existing workflow to enable continuous code inspection across your project branches and pull requests.

About Okteto : gives instant access to secure Kubernetes namespaces to enable developers to code, build, and run Kubernetes applications entirely in the cloud.

Les’s start,

Things we need:

  1. Github Account to create a Okteto Cloud Account
  2. Azure DevOps Account (Trial Will also be okay)
  3. kubectl cli


  1. First we will create a Okteto cloud account by visiting

2. Now click…

The article demonstrates how to write Service Extensions in .Net Core to configure Dependency Injection with Parameters.


Most of us while configuring services or setting up Dependency Injection in .Net Core, we used methods like UseApplicationContext or similar kinds of methods to configure services in .Net Core Startup. Today we will learn how to build something like that so that our Services, will be easily plugged in .Net Core Host Builder.(maybe Web or Default)

Today we will build a custom library to Easily Connect and Consume Azure Table Storages.

Things Required:

  1. Azure Storage Emulator
  2. Azure Storage Explorer
  3. VS 2019

Nuget Paclage Used:

<PackageReference Include="Microsoft.Azure.Cosmos.Table" Version="1.0.8" /><PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="5.0.0" /><PackageReference Include="Microsoft.Extensions.Options" Version="5.0.0" />


  1. Create a…

Hi All, today we are going to learn how to use Redis Cache with .Net Core Web API application. This is a continuation of

We are going to create our Redis Instance locally using docker.

After that , we will see how to use Azure Redis Cache with our application.

Things Required:

  1. Docker Desktop and Docker CLI
  2. VS 2019
  3. Azure Subscription, if you don’t have don’t worry, go ahead and use a Microsoft Learn Sandbox

Nuget Package Used:

<PackageReference Include="Microsoft.Extensions.Caching.StackExchangeRedis" Version="5.0.1" /><PackageReference Include="StackExchange.Redis" Version="2.2.4" />


  1. First we will create a redis instance in our local systems, to…

Hello everyone, today we are going to learn how to work with Redis Cache in .Net Core Console Application

About Redis:

Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache, and message broker. Redis provides data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes, and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions, and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.

Things Required:

  1. Docker Desktop for Creating a Redis Instance. if you…

Today, we will learn how to simulate IoT devices in .NET and C#. These simulated IoT devices will be sending the data to Azure IoT Hub. After we received the telemetry data in IoT hub, we can run Time Series Insights or we can configure Event Hub to process the data or we can also use Azure Stream Analytics which is a costly resource. So let’s get strated then…

What you need?

  1. Azure Account, don’t worry if you don’t have one create a free trial or you can use the Microsoft Learn Sandboxes. …

Today, we are going to discuss , how to inject dependencies in Function App host during the startup and will also use custom configuration file to read Application Settings and write logs and Telemetry data in Azure Application Insights.

Things Required:

  1. Azure Account and Subscription, if you don’t have, please use Microsoft Learn Sandboxes.
  2. VS 2019

Nuget Packages Required:

<PackageReference Include="Microsoft.Azure.Functions.Extensions" Version="1.1.0" /><PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.13" /><PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.13" />

Please remember one thing, Microsoft.Azure.Functions.Extensions 1.1.0 does not support other packages > “3.1.13”, if you use the latest one, it will give an exception while loading the startup.


Today, I will show how to configure Azure Application Insights while developing the function locally. And where to configure the same after deploying in Azure.

What we need?

Access to Azure Portal, if you don’t have , don’t worry , you can create a Sanbox with Microsoft Learn to perform the same and VS2019.


  1. Create a Resource Group
  2. Create a Application Insights Instance under that resource group and provide location for this instance.
  3. Open VS 2019.
  4. Create a new Project of Type Function App.
  5. By default, it will create a Function app named Function1, keep it as it is.

Problem: Count occurrences of Anagrams of a word in a string


string is “forxxorfxdofr” and word is “for”

Anagrams of word are: 3! =6 “for”, “fro”, “orf”, “ofr”, “rof”, “rfo”

So anagrams present in the strings are “for”, “orf”, “ofr” and count will be 3


Problem : Find First negative number in every subarray of size k


Lets say we have an array like this { 12, -1, -7, 8, -15, 30, 16, 18 }

Sub Arrays of size k(k=3) will be below,

{12,-1,-7} {-1,-7,8} {-7,8,-15} {8,-15,30} {-15,30,16} {30,16,18}

First Negative of each sub arrays will be -1,-1,-7,-15,-15,0(as there are no negative numbers)


Arkaprava Sinha

Coder @ Heart

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store