Tag: Azure Functions

Dependency Injection In Azure Functions V2

(31 Oct 2018)

With the Azure Functions v2 runtime, supporting .NET Core it has become easier to do dependency injection. It can be done in a similar way that ASP.NET Core does via Microsoft.Extensions.DependencyInjection.

Read More

Azure Event Grid events across Azure subscriptions

(11 Aug 2018)

Consider a scenario where you need to listen to Azure resource events happening in one Azure subscription from another Azure subscription. A use case for such a scenario can be when you are developing a solution where you listen to events happening in your customers’ Azure subscriptions, and then you need to handle those events from an Azure Function or Logic App running in your subscription. A solution for such a scenario could be:

  1. Create an Azure Function in your subscription that will handle Azure resource events received from Azure Event Grid.
  2. Handle event validation in the above function, which is required to perform a handshake with Event Grid.
  3. Create an Azure Event Grid subscription in the customers’ Azure subscriptions.
Read More

Create a dotnet core Azure Function

(06 Jan 2018)

Latest version of Visual Studio Extension Azure Functions and Web tools helps you create pre-compiled C# Azure Functions, and lets you write functions as a C# library. Being a pre-compiled function it has better performance while starting up. Along with that, it lets you use Webjobs attributes for declaring bindings, thus not needing a functions.json file. And, it lets you debug and run azure functions locally.

Read More

Blocking all external access and securing Azure Functions

(06 Jan 2018)

If you’re developing a solution with micro services architecture with Azure, there are chances you’ve been using Azure Functions to develop a service. For example, If you’re solution can involving sending email alerts. One of the microservices here can be Email Service. This can further be broken down into two micro services. One to enqueue mail message to Azure storage queue. This can be a Http Triggered function. Second one can be a Queue trigerred function that prcesses these messages and actually sends the email, using a third party API.

Read More