Boris Wilhelms
-
ASP.NET Core dev-cert for Ubuntu
Dec 13, 2020 -
2 min read -
ASP.NET Core
While the .NET Core SDK includes an HTTPS development certificate and also has a tool to install and trust it dotnet dev-certs https --trust this unfortunately does not work on Ubuntu. The reason why it does not work on Ubuntu, or more specific on Linux in general, is that there is no standard location or api to store certificates on Linux. The paths may change from distribution to distribution. In addition application may have their own store (e.
-
Run devcontainer outside of Visual Studio Code
Jul 13, 2020 -
2 min read -
Docker
Are you also a big fan of Visual Studio Devcontainer? Do you also sometimes want to just run the devcontainer outside of Visual Studio Code? Me also! That is why I have created this simple bash script. The script parses the devcontainer.json file and runs the docker container outside of Visual Studio Code. Since this is my first “complex” bash script, I am very open to feedback! Please feel free to open issues in the GitHub repo.
-
Hugo on Azure Static Web Apps
May 25, 2020 -
2 min read -
Azure Static Web Apps
Since Azure now has a free service for hosting static web apps (Azure Static Web Apps), I decided to move my Hugo blog to this service. The move to Azure Static Web Apps was quite easy. I mostly followed the tutorial, found two issues and fixed the documentation .
-
Comparing Azure Static Web Apps and Azure CDN/Storage
May 23, 2020 -
4 min read -
Azure Static Web Apps
Azure CDN
Azure Storage
Recently Microsoft announced a new Azure service: Static Web Apps. This is a competitor service to Netlify, but it also might replace traditional static site hosting with Azure CDN and Azure Storage. But let’s begin with: What is Azure Static Web Apps? Azure Static Web Apps is a service that automatically builds and deploys full-stack web apps to Azure from a GitHub repository. As this quote says, the service is not only for static sites, but also for static web apps.
-
Hosting a static site in Azure
May 17, 2020 -
4 min read -
Azure Storage
Azure CDN
Hosting a static site in Microsoft Azure is quite easy. Since it is possible to use Azure Storage to host a static site an App Service is not needed for that. To also add a custom domain with a free and managed SSL certificate Azure CDN can be used. In this post I’ll show how to create those two services via the Azure CLI to host a static site. First we need to create a resource group, which holds the needed resource for the static site.
-
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.