When working with Azure Monitor alerts that trigger email notifications, there is a tiny little detail to consider to make sure the email notifications get delivered as expected. But let's first have a look at the setup of an Azure Monitor alert. In my case, I set up an Azure Monitor metric alert and action... Continue Reading →
[NoBrainer] Get rid of issuer and MFA exceptions when working with Visual Studio Credential in local development environment
Lately I nearly got crazy when working with Visual Studio Credential in ASP.NET Web API project. For Test, Int and Prod environments I usually use Managed Identity and for local development I prefer using Visual Studio Credential for i.e. accessing Azure Key Vault or Azure Storage Account services. In this example, access key authentication is... Continue Reading →
[HOWTO] Change UPN/username of user in AAD B2C
To test a certain use case in the context of the integration of an application with AAD B2C I wanted to change the User Principal Name (UPN) of a user. The UPN corresponds to the username and email address of a user. First, I tried changing the UPN directly through the Azure Portal by switching... Continue Reading →
[HOWTO] Move Terraform state from an Azure Blob Storage container to another
As already stated in the title, this blog post shows a simple way to move Terraform state between Azure Blob Storage containers. Terraform version: Terraform v1.3.7Azure Storage Account kind: StorageV2 (general purpose v2) To perform the move, proceed as follows: Execute terraform init with the actual terraform backend configuration Execute terraform apply with the actual... Continue Reading →
[HOWTO] Fix “Cannot find module …” error after yarn upgrade-interactive
Last week I upgraded the dependencies of a ReactJS project by using yarn upgrade-interactive (yarn version: 3.2.1).After the upgrade I faced the following error in multiple files: Cannot find module ... Since the error message did not directly indicate the cause of the error, I had to do some research, which led me to the... Continue Reading →
GraphServiceClient returns empty list when searching for SharePoint sites with an empty string as search term
Towards the end of last year, I supported a teammate with troubleshooting. It was about searching pages in SharePoint via Microsoft Graph API using GraphServiceClient. The following code returned an empty list. using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Microsoft.Graph; using SharepointList = Microsoft.Graph.List; namespace Backend.Infrastructure.Microsoft.Graph.Sharepoint { internal class SiteLogic { private readonly GraphServiceClient graphClient;... Continue Reading →
[HOWTO] Capture outgoing HTTP requests of .NET 6 Web API using Fiddler Classic
Lately I faced the following challenge. I wanted to analyze the requests sent by a .NET Web API application to the underlying Cosmos DB to get insights about the RU consumption (RU = request units, for more details see here) of the different Cosmos DB operations. Whenever you call Cosmos DB via HTTP API -... Continue Reading →
No invitation email is sent when external users are invited to a private Azure DevOps project
Today I was confronted with an unexpected behavior of Azure DevOps Services. An external user got invited to a private Azure DevOps project by following the steps below. Open a private Azure DevOps project Click the Invite button in the upper right corner Enter email address of external user Select the team the user should... Continue Reading →
[HOWTO] Limit the number of Microsoft-hosted agents that can be used by an Azure DevOps YAML pipeline
Usually an Azure DevOps Services organization contains multiple projects. Often for some of these projects YAML pipelines are set up, which are triggered on every pull request and commit to the develop and main branches. Let's assume that in one or more of these Azure DevOps projects a whole bunch of YAML pipelines is set... Continue Reading →
GitHub Copilot – A personal Assessment
This blog post is a personal assessment of GitHub Copilot based on a 60-days free trial usage and information I gathered from different sources. Let's start with a short introduction. What IT IS GitHub Copilot got announced as Your AI pair programmer. It's an artificial intelligence (AI) based service that supports developers in writing code... Continue Reading →