Tag Archives: Azure

Application Insights not working in .NET Core Console Application – Remember to flush the TelemetryClient

My .NET Core console application did not write to my Application Insights instance. Well, it did, but only sometimes. Writing to Application Insights is done asynchronously, usually every 30 seconds or 500 items. This means that you need to give … Continue reading

Posted in .NET Core, Microsoft Azure | Tagged , , | Leave a comment

Azure App Configuration – Getting the connection string from appsettings.json

Azure App Configuration is a services that provides a central place to manage application settings, and it provides cool features like feature flags and auto refresh of settings when they are changed. To access Azure App Configuration from your .NET … Continue reading

Posted in .NET Core, c#, Microsoft Azure | Tagged , , , | Leave a comment

Sitecore and Application Insights – How to remove 90% of all log lines without sacrificing traceability

In this article I will explain how you can remove up to 90% of all log lines from the Application Insights log, but still keep every log line in the file log. All of this without loosing any important information. … Continue reading

Posted in Microsoft Azure, Sitecore 8, Sitecore 9 | Tagged , , , , , | 1 Comment

Azure Functions CRON expressions

When creating Microsoft Azure Functions, you can have a timer that triggers your function. The time for when the function should run is specified in a CRON expression: The CRON format is widely used in UNIX environments, so therefore a … Continue reading

Posted in Microsoft Azure | Tagged , , , | Leave a comment

Read from Azure Queue with Azure WebJobs 3.0 and .NET Core

From WebJobs 2.0 to WebJobs 3.0 Microsoft have completely rewritten the way Azure WebJobs is used. The reasons are probably noble, but they require you to redo your work when upgrading. So I made this template that allows me to … Continue reading

Posted in .NET Core, c# | Tagged , , , | 2 Comments

Read blob file from Microsoft Azure Storage with .NET Core

In order to read a blob file from a Microsoft Azure Blob Storage, you need to know the following: The storage account connection string. This is the long string that looks like this: DefaultEndpointsProtocol=https; AccountName=someaccounfname; AccountKey=AVeryLongCrypticalStringThatContainsALotOfChars== The blob storage container … Continue reading

Posted in .NET Core, Microsoft Azure | Tagged , | Leave a comment

Azure ApplicationInsights track custom metrics using the TelemetryClient

The Microsoft.ApplicationInsights nuget package is your code gateway to the Microsoft Application Insights portal, and also to the Azure Monitor universe. You use these tools as a shared place for your log data, telemetry, alerts, diagnostics etc. The Application Insights comes … Continue reading

Posted in .net, c#, Microsoft Azure | Tagged , , , , | 2 Comments

Webhook Event Receiver with Azure Functions

Microsoft Azure Functions is a solution to run small pieces of code in the cloud. If your code is very small and have only one purpose, an Azure Function could be the cost effective solution. This is an example of … Continue reading

Posted in .net, c#, General .NET, Microsoft Azure | Tagged , , , | 1 Comment

Requesting Azure API Management URL’s

The Azure API Management is a scalable and secure API gateway/proxy/cache where you can expose your API’s externally and still have secure access. In Azure API Management you create a “Product” which is a collection of API’s that is protected … Continue reading

Posted in c#, General .NET | Tagged , , , | Leave a comment

Sitecore Media Library integration with Azure CDN using origin pull

If your Sitecore website is heavy on content from the media library you can offload your Sitecore instances by allowing images to be retrieved from a Content Delivery Network (CDN). If you use Microsoft Azure, you do not need to … Continue reading

Posted in Sitecore 8 | Tagged , , , , , , , | 3 Comments