Dev & Engineering ✓ Microsoft · Official azure-openaidotnetchat-completionsembeddingsimage-generationaudio-transcriptionfunction-calling

Azure OpenAI for .NET

Gives coding agents practical .NET patterns for Azure OpenAI integrations.

FollowSkills review · FSRS-2.0
Use with care
47/ 100 5-point scale 2.4 / 5
1 2 3 4 5 6
1Trust13 / 25 · 2.6/5

The skill exposes API-key, Entra ID, Azure AI Search key, and external Azure/OpenAI data flows, but does not explain data minimization, secret redaction, user confirmation, permission scope, cost controls, or rollback. It recommends Entra ID for production while still presenting direct key usage, so points are deducted.

2Reliability7 / 20 · 1.8/5

The organization and main API paths are broadly consistent, and rate-limit handling is shown. However, examples contain undefined variables, package versions are not pinned, and there are no skill-specific key-path tests or thorough input/service-capability failure modes. Static calibration therefore keeps this at 7.

3Adaptability8 / 15 · 2.7/5

The audience, .NET SDK context, trigger terms, and chat/embedding/image/audio scenarios are fairly clear. Non-fit cases, deployment/version compatibility boundaries, Chinese-language guidance, and mainland-China reachability are not addressed; the skill also depends on external Azure/OpenAI services, so points are deducted.

4Convention9 / 15 · 3.0/5

The document has front matter, MIT licensing, author and version metadata, installation notes, structured examples, best practices, error handling, and reference links. It lacks a changelog, explicit maintenance owner/update path, FAQ, troubleshooting guidance, and dependency-version strategy, so it does not receive full marks.

5Effectiveness6 / 15 · 2.0/5

It covers common .NET integration patterns and several snippets are directly adaptable. However, multiple examples omit surrounding declarations or project configuration, and no real outputs, verification results, or complete runnable sample are provided. Manual correction remains necessary; static calibration caps this at 6.

6Verifiability4 / 10 · 2.0/5

The skill includes NuGet, API, migration, quickstart, and source references, while the repository supplies generic CI and harness tests. There is no skill-specific committed test suite with execution evidence or independent corroboration, and this review did not execute code, so points are deducted.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Variables such as endpoint, messages, and searchEndpoint are undefined; the snippets require surrounding project context before running.
  • API keys should not appear in logs or source code, and the documentation should explicitly disclose that Azure/OpenAI requests may transmit and process user content.
  • The reference links and “Current Version: 2.1.0” were not version-consistency-verified from the supplied static material; verify SDK APIs and deployment capabilities before use.
  • Mainland-China network access, regional availability, data residency, and compliance constraints are not documented.
See the full review method →

What does this skill do, and when should you use it?

This skill is for .NET developers using Azure.AI.OpenAI with Azure OpenAI and OpenAI-compatible services. It covers chat completions, streaming, multi-turn conversations, structured JSON output, reasoning models, embeddings, image generation, audio transcription, text-to-speech, and function calling. It also includes Azure AI Search retrieval-augmented generation, API-key and Microsoft Entra authentication, error handling, and client-reuse guidance. It is a strong fit for teams already building Azure OpenAI applications in .NET, but it does not provide complete deployment, pricing, or capacity-planning guidance.

It guides agents to install Azure.AI.OpenAI and, when needed, the OpenAI package with dotnet add package commands; configure endpoint, API key, deployment, and token-credential environment variables; and generate C# code using AzureOpenAIClient, ChatClient, EmbeddingClient, ImageClient, AudioClient, and AssistantClient. The examples submit chat messages, stream responses, parse JSON Schema output, generate embeddings and DALL-E images, transcribe audio, synthesize speech, declare function tools, and inspect tool calls. One example writes generated speech to a file. Another configures Azure AI Search as a chat data source and reads intent and citations.

  1. A .NET backend developer needs to add GPT-4 or GPT-4o chat completions through Azure OpenAI.
  2. An application team needs batch text embeddings for vector-search workflows.
  3. A developer needs Azure AI Search grounding and citation data in a conversational application.
  4. A .NET team is adding DALL-E image generation, Whisper transcription, or text-to-speech.
  5. A developer needs model function calling with explicit validation of tool arguments before execution.

What are this skill's strengths and limitations?

Pros
  • Covers the main implementation paths for chat, embeddings, images, audio, and tool calls.
  • Includes both API-key and Microsoft Entra authentication, with a production recommendation for Entra ID.
  • Provides examples for structured outputs, streaming, multi-turn chat, Azure AI Search RAG, and error handling.
  • Includes a client hierarchy, key-type reference, related SDKs, and follow-up documentation links.
Limitations
  • Examples require an Azure endpoint, model deployment, and suitable credentials before they can run.
  • The SKILL.md does not cover complete application deployment, pricing, or capacity planning.
  • Assistants are listed in the client hierarchy but lack a complete usage example.
  • No independent test results or skill-specific test suite is shown in the supplied material.

How do you install this skill?

Place the skill directory in the coding agent's skill directory: .github/plugins/azure-sdk-dotnet/skills/azure-ai-openai-dotnet/. The collection can be installed with npx skills add microsoft/skills and selected in the wizard, or the repository can be cloned and the required directory copied. For the project, run dotnet add package Azure.AI.OpenAI; for OpenAI non-Azure compatibility, also run dotnet add package OpenAI.

How do you use this skill?

Set AZURE_OPENAI_ENDPOINT and AZURE_OPENAI_DEPLOYMENT_NAME in the .NET project environment. Set AZURE_OPENAI_API_KEY when using AzureKeyCredential, or configure AZURE_TOKEN_CREDENTIALS as needed when using DefaultAzureCredential in production. Then give the coding agent a request such as “Create a streaming gpt-4o-mini chat client in .NET with Azure.AI.OpenAI and DefaultAzureCredential.” The SKILL.md does not define a specific agent command or provide a complete project template.

How does this skill compare with similar options?

The skill distinguishes Azure.AI.OpenAI from the OpenAI package: the former is the Azure OpenAI client, while the latter provides OpenAI compatibility. It also identifies Azure.Identity for authentication and Azure.Search.Documents as the related SDK for AI Search integration.

FAQ

Does using this skill cost money?
The repository is MIT-licensed, but the examples depend on Azure OpenAI, model deployments, and related services. The supplied material does not state service pricing.
What credentials or permissions are required?
You need an Azure OpenAI endpoint and model deployment name. Authentication can use an API key or Microsoft Entra credentials such as DefaultAzureCredential; the specific Azure permissions are not listed.
How does it handle failures and rate limits?
The examples catch 429, 400, and general Azure request failures. They show delaying after a 429, while the best-practices section recommends exponential backoff.
Is it suitable for non-.NET projects?
Not as a direct code guide. The skill explicitly targets the Azure OpenAI SDK for .NET and lists the OpenAI .NET package as the compatibility option.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for .NET

Build real-time, bidirectional voice AI applications with the Azure .NET SDK.

Dev & Engineering ✓ Microsoft · Official

Azure Persistent Agents for .NET

A practical .NET playbook for building and operating Azure AI persistent agents.

Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for Python

Guides Python developers in building real-time, bidirectional voice AI applications on Azure.

Dev & Engineering ✓ Microsoft · Official

Azure Realtime Podcast Studio

Turn text into playable podcast-style audio with Azure OpenAI Realtime API.

Dev & Engineering ✓ Microsoft · Official

Azure Short-Audio Speech-to-Text REST

Transcribe audio up to 60 seconds with Python HTTP requests.

Dev & Engineering ✓ Microsoft · Official

Azure Content Understanding for Python

Extract structured multimodal content from documents, images, audio, and video with Python.

Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for TypeScript

Build real-time, bidirectional voice assistants with Azure in TypeScript.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Microsoft 365 Agent Evaluator

Design and run evaluation suites for Microsoft 365 Copilot declarative agents

Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for .NET

Practical .NET guidance for publishing, receiving, and processing Azure Event Grid events.

Dev & Engineering ✓ Microsoft · Official

Fabric Capacity Manager for .NET

Manage Microsoft Fabric capacities programmatically through Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Microsoft Docs Researcher

Ground coding agents in official Microsoft documentation for concepts, tutorials, configuration, limits, and best practices.

Dev & Engineering ✓ Microsoft · Official

Azure OpenAI Deployment Assistant

Discover capacity and deploy Azure OpenAI models through intent-based routing.

Dev & Engineering ✓ Microsoft · Official

MongoDB Atlas Azure ARM Manager

Helps .NET developers manage MongoDB Atlas organizations through Azure Marketplace and Azure ARM.

Dev & Engineering ✓ Microsoft · Official

Azure AI Search for .NET

Build .NET search applications with practical Azure AI Search patterns for full-text, vector, semantic, and hybrid retrieval.

Automation & Ops ✓ Microsoft · Official

Azure OpenAI Capacity Finder

Find available Azure OpenAI model capacity across regions and projects before choosing a deployment location.

Dev & Engineering ✓ Microsoft · Official

Microsoft 365 Agents SDK for Python

Build async, multichannel agents for Teams, Microsoft 365, and Copilot Studio.

Related skills