During my last project I needed to run some integration test written in .Net Core 2.2 in an Azure Devops Pipeline.
The code needed some secrets from an Azure KeyVault and doing some other stuff on other Azure Resources using Azure Managed Identities for authentication on them.
In .Net Core you can easily accomplish this using the AppAuthentication Nuget library.
Here an example how to use this library for getting secrets etc.. from the KeyVault.
To run this code you need an Azure infrastructure where Managed Identities is enabled, like a VM, Azure Web App/Function App etc….
So, how can you run this code on Azure DevOps agents?
Continue reading “Using Azure Managed Identity with .Net Core on Azure DevOps Agents”