Deploying to Azure from Azure DevOps without secrets
If you are deploying your application to Azure from Azure Pipelines, you might want to leverage the ability to do so without using secrets thanks to Workload identity federation. In this article, I will demonstrate how to automate the configuration of your Azure DevOps project, with everything pre-configured to securely deploy applications to Azure.
When Pulumi met Nuke: a .NET love story
Today is a great time to be a developer:
Week 46, 2022 - Tips I learned this week
This week, I installed .NET 7 on my laptop and I used Windows Package Manager for that:
How to provision an Azure SQL Database with Active Directory authentication
In this article, we will talk about how to provision an Azure SQL Database with authentication restricted to Active Directory users/groups/applications. We will use Pulumi to do that.
Week 5, 2022 - Tips I learned this week
This week we talk about code analysis in .NET, cron expressions with crontab guru, diagrams in Azure DevOps wikis, and sending HTTP requests in VS Code.
Week 3, 2022 - Tips I learned this week
.NET 6 introduced a new way to build a .NET application using the new WebApplication
and WebApplicationBuilder
classes. One thing I like about it is how configuration is handled. Instead of using the ConfigureAppConfiguration
method to add a new configuration source, you can directly use the Configuration
property on the WebApplicationBuilder
instance. You can see an example of this change on this screenshot of the ASP.NET Core documentation:
Week 2, 2022 - Tips I learned this week
This is my first article of the series Tips I learned this week for 2022 🚀! And today we are going to see some tips about .NET, Azure, GitHub, and VS Code.
Migrating and open-sourcing my blog
Today I talk to you about the recent changes I made to my blog when I migrated it to Statiq and open-sourced it.
Handle token retrieval while querying an API
In our daily job, we often have to query secure REST APIs that require our HTTP requests to have a valid access token in their Authorization header. Of course, many APIs come with an SDK that makes the job easier for us as it directly takes care of retrieving a token and sending the authenticated HTTP requests. However, it is not always the case and knowing how to implement that using HttpClient, IMemoryCache, and DelegatingHandler can become pretty useful.