Azure SDK for .NET

Introduction

Welcome to the official documentation for the Azure SDK for .NET. This SDK provides a comprehensive set of libraries to help you build, deploy, and manage applications on Microsoft Azure using your favorite .NET languages.

Our SDKs are designed with developer productivity in mind, offering idiomatic experiences, robust error handling, and seamless integration with Azure services.

Explore the sections below to get started with the specific Azure services you want to integrate with.

Table of Contents

Getting Started

To begin using the Azure SDK for .NET, you'll need to install the necessary NuGet packages. You can typically install the core SDK and specific service packages using the .NET CLI or the NuGet Package Manager in Visual Studio.

Installation

dotnet add package Azure.Identity
dotnet add package Azure.Storage.Blobs
dotnet add package Azure.ResourceManager

Authentication

Authentication is a critical part of interacting with Azure services. The Azure Identity library provides a unified way to authenticate your applications using various methods like managed identities, service principals, and development credentials.

using Azure.Identity;
using Azure.Storage.Blobs;

// Authenticate using Azure Identity
TokenCredential credential = new DefaultAzureCredential();

// Create a BlobServiceClient
string blobStorageConnectionString = "YOUR_STORAGE_ACCOUNT_CONNECTION_STRING"; // Or use credential for Azure AD auth
BlobServiceClient blobServiceClient = new BlobServiceClient(blobStorageConnectionString);
// Or using Azure AD:
// BlobServiceClient blobServiceClient = new BlobServiceClient(new Uri("https://yourstorageaccount.blob.core.windows.net"), credential);

Core Libraries

These libraries provide foundational capabilities for interacting with Azure:

Service Libraries

Discover the SDKs for individual Azure services. Click on a service to view its specific documentation and API reference.

Compute

Azure.ResourceManager.Compute

Virtual Machines

Manage and provision virtual machines.

API Reference
Azure.ResourceManager.Compute

Scale Sets

Automate and scale virtual machines.

API Reference

Storage

Azure.Storage.Blobs

Blob Storage

Store and access unstructured data.

API Reference
Azure.Storage.Queues

Queue Storage

Message queuing for reliable application communication.

API Reference
Azure.Storage.Tables

Table Storage

NoSQL key-value store for structured data.

API Reference

Databases

Azure.ResourceManager.Sql

Azure SQL Database

Managed relational database service.

API Reference
Azure.ResourceManager.CosmosDB

Azure Cosmos DB

Globally distributed, multi-model database.

API Reference

Identity & Access Management

Azure.ResourceManager.KeyVault

Azure Key Vault

Securely store and access secrets, keys, and certificates.

API Reference
Azure.ResourceManager.ManagedServiceIdentity

Managed Identity

Managed identities for Azure resources.

API Reference

Messaging

Azure.Messaging.ServiceBus

Azure Service Bus

Reliable cloud messaging as a service.

API Reference
Azure.Messaging.EventHubs

Azure Event Hubs

Big data streaming platform and event ingestion service.

API Reference

AI + Machine Learning

Azure.AI.Vision.ImageAnalysis

Azure AI Vision

Image analysis and computer vision capabilities.

API Reference
Azure.AI.TextAnalytics

Azure AI Language

Natural Language Processing (NLP) capabilities.

API Reference

Networking

Azure.ResourceManager.Network

Azure Virtual Network

Manage virtual networks and connectivity.

API Reference

Monitoring

Azure.Monitor.Query

Azure Monitor Query

Query logs and metrics from Azure Monitor.

API Reference

IoT

Azure.IoT.Hub.Service

Azure IoT Hub

Managed service for bi-directional communication.

API Reference

Find the full list of Azure SDK for .NET libraries on GitHub.

API Reference

Browse the detailed API documentation for all Azure SDK for .NET libraries on Microsoft Learn.

Explore the complete API reference.

Samples & Tutorials

Get hands-on experience with our extensive collection of code samples and tutorials: