How do you authenticate to Azure from a .NET app?
- Use Azure Identity library: supports Managed Identity, Service Principal, and
Interactive Login.
Example using DefaultAzureCredential:
using Azure.Identity;
using Azure.Storage.Blobs;
var credential = new DefaultAzureCredential();
var blobServiceClient = new BlobServiceClient(new
Uri("
credential);