Dev & Engineering ✓ Microsoft · Official

Azure Persistent Agents for .NET

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

48/ 100
Use with care

Useful, but reliability, evidence or controls still have material gaps.

See how it was scored ↓
Works as-is in
Codex · Claude Code
Stars
★ 2.7k
Last updated
3mo ago
License
MIT
dotnetazure-ai-agentspersistent-agentsfunction-calling
+3streamingfile-searchazure-ai-search

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

This skill targets .NET developers using the Azure.AI.Agents.Persistent SDK. It covers low-level management of agents, threads, messages, runs, files, and vector stores. The examples include polling and streaming, function calling, code interpreter, file search, Bing Grounding, and Azure AI Search. It is suited to applications that need direct control over agent execution and resource lifecycles rather than a high-level project-client abstraction.

It shows how to install Azure.AI.Agents.Persistent and Azure.Identity, configure an Azure AI project endpoint, model deployment, and optional connection resources. It demonstrates creating, reading, and deleting agents, threads, messages, runs, files, and vector stores; polling run status; consuming streaming updates; handling RequiresAction and function calls; and catching RequestFailedException. It also documents tool definitions and resources for code interpreter, file search, Bing, Azure AI Search, OpenAPI, Azure Functions, MCP, SharePoint, and Microsoft Fabric.

Good fit
  • A .NET backend team needs persistent Azure AI agents with conversation threads and message history.
  • An application team needs real-time agent output and chooses the Runs streaming API.
  • A .NET developer needs agents to call business functions and submit tool results.
  • A document application needs agents to search uploaded files through vector stores.
  • A developer is building a math, retrieval, or current-events assistant using code interpreter or Bing Grounding.

How do you install this skill?

Before you use it
  • The install command uses --prerelease while the version section lists both stable and preview releases; the target version and compatible API surface should be explicit and pinned.
  • The Azure AI Search example uses an undefined searchConnectionId; the function-calling example executes tools directly without showing allowlists, authorization, input validation, or user confirmation.
  • File upload, Code Interpreter, web search, and API/MCP tools may process sensitive data or create external side effects; deployment should add data-flow, least-privilege, auditing, and rollback guidance.
  • No skill-specific reproducible execution results are provided; all examples should be validated against the intended SDK version.
Before you start
Your agent needs
  • Shell / CLI
  • Network access
  • Local filesystem
Install first
  • .NET SDK
  • Azure.AI.Agents.Persistent
  • Azure.Identity

Install the repository's skill collection with npx skills add microsoft/skills, then select the required skill in the wizard. Skills are installed into the selected agent's directory, such as .github/skills/ for GitHub Copilot. The target file is .github/plugins/azure-sdk-dotnet/skills/azure-ai-agents-persistent-dotnet/SKILL.md. The documented package commands are dotnet add package Azure.AI.Agents.Persistent --prerelease and dotnet add package Azure.Identity.

Generic route: install into Claude Code manually (macOS / Linux)
tmp="$(mktemp -d)"
git clone --depth 1 https://github.com/microsoft/skills.git "$tmp"
mkdir -p ~/.claude/skills
cp -R "$tmp/.github/plugins/azure-sdk-dotnet/skills/azure-ai-agents-persistent-dotnet" ~/.claude/skills/
rm -rf "$tmp"

Generated from the source repository and skill path; it copies only this skill's folder. If the author's install steps above differ, follow those first. To scope it to one project, replace ~/.claude/skills with that project's .claude/skills.

How do you use this skill?

Try saying

Once installed, send your agent any of these to trigger it:

  • Use PersistentAgentsClient to create a persistent .NET agent and thread with streaming responses
  • Add function calling and file search to a .NET agent.

In an Agent Skills-compatible coding agent, ask for a task such as “Use PersistentAgentsClient to create a persistent .NET agent and thread with streaming responses” or “Add function calling and file search to a .NET agent.” Configure PROJECT_ENDPOINT and MODEL_DEPLOYMENT_NAME; Bing and Azure AI Search examples also require their connection IDs. The source lists Stable v1.1.0 and Preview v1.2.0-beta.8 but does not document a version-selection policy.

What are this skill's strengths and limitations?

Pros
  • Covers the full low-level workflow from agent creation through resource cleanup.
  • Includes polling, streaming, function calling, and several tool integrations.
  • Provides concrete authentication, run-status, error-handling, and cleanup patterns.
  • The repository is MIT-licensed and actively developed with expanding tests.
Limitations
  • As a low-level SDK guide, it requires developers to manage polling, status branches, and resource lifecycles.
  • Examples depend on an Azure AI project endpoint, a model deployment, and relevant Azure connection resources.
  • The source does not provide independent test coverage, performance data, or cost information for this specific skill.
  • Some documented functionality uses a preview package version, so API stability must be assessed by adopters.

How does this skill compare with similar options?

Side by side with related skills; every score comes from the same FSRS standard.

Skill FS score Stars Last updated License
Azure Persistent Agents for .NET this page ✓ Microsoft · Official 48 · Use with care ★ 2.7k 3mo ago MIT
Azure AI Foundry Projects for .NET ✓ Microsoft · Official 50 · Use with care ★ 2.7k 3mo ago MIT
Azure AI Search for .NET ✓ Microsoft · Official 51 · Use with care ★ 2.7k 3mo ago MIT
Azure OpenAI for .NET ✓ Microsoft · Official 47 · Use with care ★ 2.7k 3mo ago MIT
Azure Voice Live for .NET ✓ Microsoft · Official 46 · Use with care ★ 2.7k 3mo ago MIT

The source explicitly identifies Azure.AI.Projects as a high-level project client, while this skill focuses on the lower-level Azure.AI.Agents.Persistent SDK. Choose this skill when direct control over threads, runs, and tool execution matters; use the related SDK guidance when a higher-level Foundry project client is the better fit.

How did FollowSkills review this skill?

FollowSkills review · FSRS-2.0
Use with care
48/ 100 5-point scale 2.4 / 5
1Trust14 / 25 · 2.8/5

The document describes Azure authentication, environment variables, and cleanup, and shows DefaultAzureCredential usage; however, it does not specify least-privilege permissions, user confirmation, sensitive-data handling, tool data flows, external-API risks, or recoverable rollback. Code Interpreter, file upload, function calling, OpenAPI, MCP, and SharePoint capabilities can create external effects, so substantial points are deducted.

2Reliability7 / 20 · 1.8/5

Core workflows for creation, polling, streaming, function calling, and exception handling are documented, and the repository provides general CI/evaluation infrastructure; however, there is no skill-specific test evidence, installation guidance mixes --prerelease with stable/preview versions, the Azure AI Search example references an undefined searchConnectionId, and polling/failure-state handling is incomplete. Static evidence therefore supports only a conservative score.

3Adaptability9 / 15 · 3.0/5

The name, audience, SDK scope, and trigger phrases are clear, covering CRUD, threads, runs, streaming, tools, and search; however, non-fit scenarios, input/output contracts, permission prerequisites, and trigger boundaries are not defined. The core function depends on Azure AI services and network reachability, with no Chinese-language guidance or mainland-China connectivity treatment, so points are deducted.

4Convention8 / 15 · 2.7/5

The document has clear sections for installation, authentication, environment variables, workflows, examples, tool and type references, best practices, error handling, related SDKs, versions, MIT licensing, and reference links. It lacks a changelog, explicit maintenance ownership and update path, complete limitation disclosure, troubleshooting guidance, and stable parameter commitments, so it is not full marks.

5Effectiveness6 / 15 · 2.0/5

For users familiar with Azure and .NET, the examples provide a useful starting point for the low-level persistent-agents SDK and cover major tasks. However, some examples are incomplete or rely on questionable variable/version assumptions, and production safeguards for retries, cancellation, timeouts, permissions, sensitive files, and tool-output validation are missing. The output therefore requires meaningful review and remains within the static effectiveness cap.

6Verifiability4 / 10 · 2.0/5

The skill provides version information and primary-source links to NuGet, Microsoft Learn, Azure SDK source, and samples; the repository also shows CI and general test code. However, no tests specific to this skill path, execution results, or independent review are supplied, and no code was executed in this assessment, so only limited static evidence is credited.

1 2 3 4 5 6

Open a dimension to read why it scored that way

Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a Review evidence[1][2][3][4][5][6][7][8][9][10]

Evidence confidence:Low — Mostly static review, author material or a limited demo; useful for discovery, not high-risk decisions.

See the full review method →

FAQ

Does this skill explain Azure service pricing?
No. It identifies required Azure endpoints, model deployments, and some connection resources, but provides no pricing or cost estimates.
What authentication setup is required?
The examples use DefaultAzureCredential and also mention ManagedIdentityCredential for production. When using the default credential, the source requires `AZURE_TOKEN_CREDENTIALS`.
How should failed runs be handled?
Handle Queued, InProgress, RequiresAction, Completed, Failed, and Cancelled states, and catch `RequestFailedException` using its HTTP status and error code.
Is this intended for high-level Foundry project management?
Not primarily. It is explicitly a low-level persistent-agent SDK guide; the source points to `Azure.AI.Projects` for the high-level project client.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure AI Foundry Projects for .NET

Guides .NET developers through Foundry project, agent, and evaluation operations.

★ 2.7k FS 50 Use with care 3mo ago
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.

★ 2.7k FS 51 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure OpenAI for .NET

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

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for .NET

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

★ 2.7k FS 46 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for Python

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

★ 2.7k FS 52 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure AI Persistent Agents for Java

Guides Java developers through building and managing Azure AI agents with persistent threads, messages, runs, and tools.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure AI Search for Python

Helps Python developers build vector, hybrid, and semantic search applications with Azure AI Search.

★ 2.7k FS 50 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure AI Search for TypeScript

Build TypeScript search apps with vector, hybrid, and semantic retrieval patterns.

★ 2.7k FS 50 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure AI Services Skill

Guides coding agents through Azure AI Search, Speech, OpenAI, and OCR workflows.

★ 2.7k FS 49 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Arize AI Azure Management for .NET

Guides .NET developers through Azure-based management of Arize AI observability resources.

★ 2.7k FS 49 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs for .NET

A practical .NET guide to high-throughput Azure Event Hubs production, consumption, partitioning, and checkpointing.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Java

A practical Java playbook for building file and streaming workflows on Azure Blob Storage.

★ 2.7k FS 47 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for TypeScript

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

★ 2.7k FS 44 Not recommended 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

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

★ 2.7k FS 55 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

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

★ 2.7k FS 54 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

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

★ 2.7k FS 54 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for .NET

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

★ 2.7k FS 53 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Fabric Capacity Manager for .NET

Manage Microsoft Fabric capacities programmatically through Azure Resource Manager.

★ 2.7k FS 53 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

Microsoft Docs Researcher

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

★ 2.7k FS 53 Use with care 3mo ago
Dev & Engineering ✓ Microsoft · Official

MongoDB Atlas Azure ARM Manager

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

★ 2.7k FS 51 Use with care 3mo ago

Related skills