Azure Connectors .NET SDK
Type-safe .NET clients for Azure connectors — call Office 365, SharePoint, Teams, Dataverse, and 1,000+ connectors directly from Azure Functions and other .NET apps.
[!NOTE]
General Availability - 1.0.0
Version 1.0.0 is the first stable release of the SDK. See the
changelog and naming migration guide
when upgrading from a preview version.
We welcome feedback and contributions — please open an issue with questions, suggestions, or bug reports.
Why This SDK?
Azure provides a rich ecosystem of managed connectors that bridge your code to SaaS services, PaaS resources, and on-premises systems. Originally powering Azure Logic Apps and Power Automate, these connectors are now available as standalone, strongly-typed C# clients for any .NET application — no workflow service required.
- Type-safe operations — Generated async methods with full IntelliSense and XML documentation
- Built-in authentication — Managed identity and connection string token providers for API Hub
- Resilient HTTP — Configurable method-safe retries for transient failures
- 1,000+ connectors — Any Azure managed connector available via API Hub can be generated
Note: This is the .NET SDK. Python, Node.js, and Java SDKs are planned in collaboration with the Azure Functions team.
How It Works
┌─────────────────────────────────────┐
│ Your Azure Function / App │
│ │
│ using Office365Client; │
│ await client.SendEmailAsync(...); │
└──────────────┬──────────────────────┘
│
▼
┌─────────────────────────────────────┐
│ Generated Connector Clients │
│ (Office365Extensions.cs, etc.) │
│ │
│ • Typed async methods per action │
│ • Input/output models from Swagger │
│ • XML docs from connector metadata │
└──────────────┬──────────────────────┘
│ depends on
▼
┌─────────────────────────────────────┐
│ Azure Connectors .NET SDK │
│ Azure.Connectors.Sdk │
│ │
│ • Azure.Core TokenCredential auth │
│ • ConnectorHttpClient + retry │
│ • ConnectorJsonSerializer │
└─────────────────────────────────────┘
For users upgrading generated client names from earlier previews, see the
naming migration guide for updated
namespaces, types, methods, and ConnectorNames constants.
Installation
From NuGet.org
dotnet add package Azure.Connectors.Sdk --version 1.0.0
Quick Start
1. Generate Connector Code
Use the LogicAppsCompiler CLI to generate typed clients from connector Swagger definitions:
LogicAppsCompiler.exe ./generated unused --directClient --connectors=office365
See GENERATION.md for detailed generation instructions.
2. Add Generated Code to Your Project
Copy the generated *Extensions.cs files to your project.
3. Use the Typed Client
using System;
using Azure.Connectors.Sdk;
using Azure.Connectors.Sdk.Office365;
using Azure.Identity;
// Get connection runtime URL from Azure Portal
var connectionRuntimeUrl = "https://...";
// Create client — defaults to ManagedIdentityCredential (system-assigned)
using var client = new Office365Client(connectionRuntimeUrl);
// For local development, pass AzureCliCredential explicitly
using var localClient = new Office365Client(
new Uri(connectionRuntimeUrl),
new AzureCliCredential());
// Or configure retry and diagnostics via ConnectorClientOptions
var options = new ConnectorClientOptions();
options.Retry.MaxRetries = 3;
options.Retry.Delay = TimeSpan.FromSeconds(1);
using var clientWithOptions = new Office365Client(
new Uri(connectionRuntimeUrl),
new AzureCliCredential(),
options);
// Explicit opt-in: unsafe methods may repeat connector side effects
var unsafeRetryOptions = new ConnectorClientOptions
{
RetryUnsafeHttpMethods = true,
};
using var clientWithUnsafeRetries = new Office365Client(
new Uri(connectionRuntimeUrl),
new AzureCliCredential(),
unsafeRetryOptions);
// Call typed operations
await client.SendEmailAsync(new SendEmailInput
{
To = "recipient@example.com",
Subject = "Hello from SDK",
Body = "<p>Email body</p>"
});
var categories = await client.GetOutlookCategoryNamesAsync();
Multipart file uploads
Cloudmersive Convert, DocuWare, Zoho Sign, and ServiceNow expose multipart
operations. Use MultipartFile to set a filename and media type:
using Azure.Connectors.Sdk;
using Azure.Connectors.Sdk.CloudmersiveConvert;
using Azure.Identity;
using var client = new CloudmersiveConvertClient(
new Uri(connectionRuntimeUrl),
new AzureCliCredential());
var pdf = await client.ConvertDocumentAutodetectToPdfAsync(
new MultipartFile(fileBytes, fileName: "source.doc", contentType: "application/msword"));
A byte[] also converts to MultipartFile, using the filename blob and
media type application/octet-stream. The client sends a native multipart
body through the existing Azure Core pipeline. Files are not JSON-encoded or
base64-encoded. Optional form fields disappear when omitted; internal defaults
remain on the wire.
SDK Components
Client Base
| Component |
Description |
ConnectorClientBase |
Abstract base class for all generated clients — provides authentication, retry, OTel tracing, JSON serialization, and SSRF-protected URL resolution |
ConnectorClientOptions |
Configuration for method-safe retries, retry count, timeout, exponential backoff, and initial retry delay. See Retry safety. |
ConnectorException |
Unified exception for connector API failures with ConnectorName, Operation, StatusCode, and ResponseBody |
Authentication
Authentication uses Azure.Core TokenCredential directly — any credential from Azure.Identity works:
| Credential |
Use Case |
ManagedIdentityCredential |
Azure-hosted apps — system-assigned by default when no credential is specified |
AzureCliCredential |
Local development — pass explicitly (default no longer probes CLI) |
ClientSecretCredential |
Service principal authentication |
HTTP
| Component |
Description |
ConnectorHttpClient |
HTTP client for caller-supplied Azure.Core pipelines; the caller owns the pre-built pipeline's retry semantics. See Retry safety. |
Serialization
| Component |
Description |
ConnectorJsonSerializer |
JSON serialization with connector conventions |
JsonConverters |
Custom converters for connector types |
Triggers
| Component |
Description |
TriggerCallbackPayload<T> / TriggerCallbackBody<T> |
Typed envelope for connector trigger callbacks; normalizes batch and single-item shapes into Body.Value |
ConnectorTriggerPayload |
Helpers to read a raw trigger callback (string/Stream) into a typed payload (Read/ReadAsync) or decoded binary file bytes (TryReadBinaryContent/ReadBinaryContentAsync), with case-insensitive matching and a bounded read |
See docs/triggers.md for the trigger architecture, payload shapes, and end-to-end usage.
Documentation
- docs/concepts.md - Key concepts, terminology, and architecture
- docs/generated-contract.md - Language-neutral rules for generated actions, model and JSON property names, triggers, discovery helpers, and Swagger wire contracts
- GENERATION.md - How to generate connector code
- docs/connection-setup.md - Setting up connections for local testing
- docs/triggers.md - Trigger architecture, typed payloads, and the
ConnectorTriggerPayload reader
- Azure/Connectors-NET-Samples - Full working samples (Azure Functions, triggers, etc.)
The connector inventory below records shipped SDK coverage. Use GitHub issues and focused design documents for proposed work and current planning status.
AI Agent Skills
- Connection Setup Skill - AI agent workflow for creating Connector Namespace connections, OAuth consent, access policies, and configuring app settings — all from within VS Code
Validated Connectors
The SDK includes 103 generated typed connector clients. Catalog entries alone do not imply that a typed client is included. Rows marked SDK Generated have not been validated end-to-end. For validated rows, the operations column lists the methods that succeeded against a live Connector Namespace connection; "discovery only" means only that read was validated. The rows updated for 1.0.0 were validated with Azure.Connectors.Sdk 1.0.0 through the Connectors-NET-Samples functions.
| Connector |
Status |
Validated Operations |
| Azure AD |
🔄 SDK Generated |
GetUser, CreateUser, GetGroup, GetGroupMembers, CreateGroup, UpdateUser, CheckMemberGroups |
| Azure DevOps (VSTS) |
🔄 SDK Generated |
ListProjectsAsync, QueueNewBuildAsync, GetBuildAsync, CreateWorkItemAsync, GetQueryResultsAsync (pageable; trigger: OnBuildCompleted) |
| DataFlows SMS |
🔄 SDK Generated |
SendSmsAsync, GetSmsAsync, ListSmsAsync, GetProfileAsync, GetBalanceAsync |
| ServiceNow |
✅ E2E Validated |
CreateRecordAsync, UploadAttachmentAsync (multipart MultipartFile), RetrieveAttachmentContentAsync, DeleteAttachmentAsync, DeleteRecordAsync (OAuth 2.0 connection; uploaded bytes matched the download) |
| Azure IoT Central |
🔄 SDK Generated |
ApplicationsList, DeviceGroupsList, DeviceGroupsGet, DeviceGroupsSet, DevicesGetCloudProperties (pageable) |
| Azure Monitor Logs |
✅ E2E Validated |
ListSubscriptions, ListResourceGroups, ListResources, QueryData, QuerySchema |
| Azure Resource Manager |
✅ E2E Validated |
SubscriptionsList, ResourceGroupsList, ResourceGroupsListResources, ResourceGroupsGet, ResourceGroupsCreateOrUpdate, ResourceGroupsDelete, ResourcesGetById |
| IBM MQ |
🔄 SDK Generated |
SendAsync, ReadAsync, ReadAllAsync, ReceiveAsync, ReceiveAllAsync, DeleteAsync, DeleteAllAsync |
| Office365 |
✅ Validated |
SendEmail, GetOutlookCategoryNames, ExportEmail, CalendarPostItem |
| Office365 Users |
✅ Validated |
MyProfile, UserProfile, Manager, DirectReports, SearchUser |
| OneDrive for Business |
✅ Validated |
ListRootFolder, ListFolder, GetFileContentByPath, CreateFile, FindFilesByPath, CreateShareLink, GetFileMetadata, DeleteFile |
| SharePoint |
✅ E2E Validated |
GetDataSets -> GetAllTables, GetFileItems, GetFileContentByPath, CreateFile |