Here you can find my private notes about programming that I wanted to share with you. Feel free to filter based on the topic you want or search for something specific.
Deploy a .NET & Angular application to an Azure App Service with multiple environments using an Azure Pipeline and Bicep
In this article, I will show you a full tutorial on how to create a .NET application using Angular for the frontend and deploy this application with Azure DevOps pipelines on multiple App Service environments.
You are going to learn:
How to use pipeline templates to simplify the structure of our pipeline
How to use multiple stages to split semantically different jobs
How to use multiple Azure environments by elevating the power of a for loop in the pipeline
How to use Bicep for setting up the needed Azure infrastructure
How to deploy the application on an Azure App Service by using different deployment slots
You can find the code for this tutorial on my GitHub account.
Mastering C# array slicing - A guide to the .. (range) and ^ (hat) operators
From time to time, I like to refresh my knowledge of some basic features of C#. Today, we are going to focus on the .. operator, also known as the range operator, and the ^ operator, also known as the hat operator.
Access Azure Key Vault secrets using a Service Principle with certificate within an Azure DevOps pipeline
Azure Key Vault is a cloud service that provides secure storage for secrets, keys, and certificates of your applications. Integrating Key Vault with Azure DevOps pipelines enhances security by managing sensitive information efficiently.
This article will guide you through the process of accessing secrets from an Azure Key Vault using a Service Principal with a certificate within an Azure pipeline. We will start for the very first steps of creating all the needed resources in Azure, before going back to Azure DevOps. For training reasons, we will perform all the configuration steps with CLI commands, avoiding the Azure Portal UI.
How to restore overwritten Git commits when multiple developers are pushing changes simultaneously
Consider the following scenario. Multiple developers work on one feature branch of a project. Developer A pushes commits into the feature branch, developer B oversees that his local repository is behind origin, force pushes his commits and as a result overwrites the commits from Developer A. Developer A pulls the changes and his commits are now gone. Can Developer’s A missing commits be restored and how?