Azure Functions
-
Protecting HTTP-triggered Azure Functions
May 23, 2019 -
6 min read -
Azure Functions
A while ago I wrote about Securing Azure Function with JWT tokens. Since that time a lot happened with Azure Functions so I revisited the topic and researched this again and wrote down the possibilities on how to protect your HTTP triggered Functions. Authorization Keys Authorization Keys are the simplest way to secure your functions. The key needs to be passed either via the query string (code) or with a HTTP header (x-functions-key) to the function and will be validated by Azure Function runtime/host.
-
Azure Key Vault integration for Azure Function v2
Oct 8, 2018 -
2 min read -
Azure Functions
Azure Key Vault
Currently the most asked feature on UserVoice for Azure Function is integration of Azure Key vault. Unfortunately this is not yet available out of the box. In addition the solutions that are suggested are not very integrative as they do not support
AutoResolve
properties or can not be used for connection strings on trigger or bindings. -
Dependency injection for Azure Function v2
Oct 1, 2018 -
2 min read -
Azure Functions
Since Azure Function v2 still does not yet have support for dependency injection and this is still a hot topic, I decided to upgrade my solution for this to Azure Function v2 and provide a nuget package!
-
Azure Functions - Extension resolution and loading.
May 15, 2018 -
3 min read -
Azure Functions
Implementing IExtensionConfigProvider in a Function App is a common way to run code at startup of the Function App. It is also the place to register the components of your extension. In this post I will describe how Azure Functions finds and instantiates IExtensionConfigProvider implementations. There are several ways how an IExtensionConfigProvider implementation is found. Auto detection The auto detection works in Azure Functions V1 and V2. Auto detection of IExtensionConfigProvider implementation starts when the ScriptHost gets initialized.
-
Serverless WebApi - Host an ASP.NET Core WebApi in Azure Functions.
Apr 30, 2018 -
3 min read -
Azure Functions
ASP.NET Core
While Azure Functions allows you to build very lightweight HTTP WebApis out of the box, the HTTP binding is very limited and sometimes we need access to the HTTP pipeline. In this post I show you how you can host a ASP.NET Core WebApi inside of a Azure Function. Prerequisites To get this working you need Azure Functions V2 Latest Azure Function Core Tools (install via npm, using npm i -g azure-functions-core-tools@core) The ASP.
-
Run Azure Functions App 2.0 in a Docker Container (on AWS, ZOMG).
Nov 7, 2017 -
2 min read -
Azure Functions
Since the Azure Function runtime is now ported to .NET Core (currently in Beta) you are now able to develop and RUN Azure Function cross platform. The current core tools also come with docker support, which means you are able to run Azure Function inside a Docker container. To get the latest core tools, follow the steps in the announcement. Creating the docker container It is very easy to create your function with docker support.
-
Secure Azure Functions with JWT access tokens
Oct 17, 2017 -
3 min read -
Azure Functions
I have completely rewritten this post. You can find the original post here. Out of the box it is only possible to secure your Azure Functions via Function Keys (API-Keys), which sometimes might not fit into your requirements. When using HttpTrigger we luckily have access to the current request and are therefor able to implement our own custom authentication/authorization methods. You could for example use JWT access tokens issued by an OpenID provider to control authentication/authorization.
-
Proper Dependency injection in Azure Functions on function level with scoped services!
Oct 11, 2017 -
4 min read -
Azure Functions
In my last post you learned how to implement dependency injection in Azure Functions on function level. While this works for services registered as transient or singleton, it does not work with services registered as scoped. In this post you will learn how we can implement proper dependency injection with scopes! Inject attribute We again start with the Inject attribute. Since we are going to change how to resolve bindings, the attribute can now be empty.
-
Dependency injection in Azure Functions on function level
Oct 10, 2017 -
2 min read -
Azure Functions
This solution only supports transient and singleton scoped services. Please see my follow up post where you learn how to implement proper dependency injection with support for scoped services. Out of the box Azure Functions does not come with dependency injection support you can use in your functions. There are quite a lot of ways to add dependency injection, but most of them rely on the Service Locator (anti-)pattern. In this post you will learn how to implement dependency injection on function level using the extensions API without the Service Locator (anti-)pattern.
-
Build a photo gallery with Azure Functions
Sep 14, 2017 -
4 min read -
Azure Functions
Azure Storage
With Azure Functions you can quickly build simple web applications. In this example you learn how to create a simple photo gallery with just three little functions. We will use Azure Blob Storage to store the files and Azure Table Storage to save metadata. You can find the example at GitHub. Creating thumbnails Since we do not want use the original picture as a thumbnail, we will create a function that creates proper thumbnails.