Azure Functions

Deploy your Azure Functions as a package from GitHub Actions

May 3, 2021

For Squarl, I started to implement a couple of improvements for the back-end running on Azure Functions. I created these functions with TypeScript. In the past, I used webpack and later Azure Funcpack to bundle my functions to one file per function. That way, the host does not have to do all those read actions for retrieving the dependencies.

Read more

Using OAuth On-Behalf-Of flow in a Node.js Azure Functions

April 15, 2021

While implementing a couple of Azure Functions, I needed to use the OAuth 2.0 On-Behalf-Of flow. With this flow, you can allow, for instance, an API to perform tasks on your behalf. This flow is great when you want to offload some of the work from the front-end or perform additional calls on the back-end when processing data.

Read more

Running the CollabDays Benelux event on Azure Static Web App

October 25, 2020

This article recaps the CollabDays Benelux event that BIWUG and DIWUG organized together and happened on the 24th of October. We held the event virtually due to Covid-19, like most of the events in 2020. We decided that we wanted to do this as a virtual event together around May/June timeframe to make sure we could let it happen.

Read more

#DevHack: Simple caching in Node.js Azure Functions

October 12, 2020

Azure Functions do not have an out-of-the-box caching mechanism. For caching, the recommended way would be to use a distributed cache like Azure Cache or Redis. These services each come with their price tag and might be too robust for the cache you want to create or need. For Azure Function created with C#, you can use the good old memory cache.

Read more

Parse multipart/form-data in Azure Function

September 2, 2020

While working on an internal Azure Static Web Site project, I needed to upload CSV files to an Azure Function to import data to Cosmos DB. When uploading a file to your API, the multipart/form-data content-type is used. The body’s format looks a bit “special” as it requires some parsing to get each file.

Read more

Parse application/x-www-form-urlencoded in Azure Function

August 22, 2020

For a Mailchimp webhook, I had to parse the application/x-www-form-urlencoded form data to JSON. Azure Functions does not automatically do this for you, so you have to provide your parser. I knew that I had already done this, so I went on a search journey through my code. To make it easier next time, I wanted to share the code snippet with the rest of you.

Read more