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
Not recommended
47/ 100 5-point scale 2.4 / 5
Trust13 / 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.

Reliability7 / 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.

Adaptability8 / 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.

Convention9 / 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.

Effectiveness6 / 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.

Verifiability4 / 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 it does & when to 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.

Pros & cons

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 to install

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 to use

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.

Compared to similar skills

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 Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

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

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

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

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

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

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills