.NET

Deploying to Azure from Azure DevOps without secrets

Azure DevOps Workload identity federation (OIDC) with Pulumi

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.

Read more...

When Pulumi met Nuke: a .NET love story

Pushing an ASP.NET Core API to Azure using .NET from provisioning to deployment

Today is a great time to be a developer:

Read more...

Week 46, 2022 - Tips I learned this week

Some tips about .NET, pnpm, and Azure DevOps.

This week, I installed .NET 7 on my laptop and I used Windows Package Manager for that:

Read more...

How to provision an Azure SQL Database with Active Directory authentication

Using Pulumi and its command provider to grant database permissions

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.

Read more...

Week 5, 2022 - Tips I learned this week

Tooling around .NET, Azure DevOps and VS Code.

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.

Read more...

Week 3, 2022 - Tips I learned this week

Tooling around .NET, Azure DevOps, and VS Code.

.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:

Read more...

Week 2, 2022 - Tips I learned this week

Tooling around .NET, Azure, Github and VS Code.

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.

Read more...

Migrating and open-sourcing my blog

What changed on my blog - Statiq, GitHub, giscus, and much more.

Today I talk to you about the recent changes I made to my blog when I migrated it to Statiq and open-sourced it.

Read more...

Handle token retrieval while querying an API

Using a DelegatingHandler

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.

Read more...