azure-mgmt-botservice-dotnet 是什么?
该 Skill 用 Azure.ResourceManager.BotService 管理 Azure Bot 资源及 Direct Line、Teams、Web Chat 等渠道设置,也包含 OAuth connection 设置。它是管理面配置指南,不含 Bot Framework 对话处理代码或实际聊天应用。
中文说明由本站依据来源整理;英文原文保留在页面下方。
怎么接入你的 Agent?
- 定位完整 Skill 目录
打开本项目来源,核对
SKILL.md及其引用的脚本和资料。 - 交给你正在用的 Agent
在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。
- 确认识别,再做具体任务
让 Agent 回报安装目录和识别到的名称
azure-mgmt-botservice-dotnet,然后按本页使用示例提供材料。
展开并复制给 Codex 的安装指令
安装并检查 azure-mgmt-botservice-dotnet
请在 Codex 的当前工作环境中安装并检查 azure-mgmt-botservice-dotnet 这个 Skill。
项目身份:microsoft/skills / azure-mgmt-botservice-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Claude Code 的安装指令
安装并检查 azure-mgmt-botservice-dotnet
请在 Claude Code 的当前工作环境中安装并检查 azure-mgmt-botservice-dotnet 这个 Skill。
项目身份:microsoft/skills / azure-mgmt-botservice-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 Cursor 的安装指令
安装并检查 azure-mgmt-botservice-dotnet
请在 Cursor Agent 的当前工作环境中安装并检查 azure-mgmt-botservice-dotnet 这个 Skill。
项目身份:microsoft/skills / azure-mgmt-botservice-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。展开并复制给 当前 Agent 的安装指令
安装并检查 azure-mgmt-botservice-dotnet
请在 当前 Agent 的当前工作环境中安装并检查 azure-mgmt-botservice-dotnet 这个 Skill。
项目身份:microsoft/skills / azure-mgmt-botservice-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md
1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。装好以后,具体怎么用?
准备哪些材料
- 安装 Azure.ResourceManager.BotService 与 Azure.Identity;配置订阅、资源组和有权限的身份。
- 准备 bot 的真实 messaging endpoint、MSA app registration 信息及计划启用的 channel。
- 上生产前审查 Sku、app tenancy、OAuth 和 Direct Line secure site 设置;channel keys 属于敏感信息。
实际使用顺序
- 通过 ArmClient 获取资源组和 bot collection,先只读列出现有 bots/channels。
- 创建或更新 Bot 时设置 app ID 和真实 endpoint;再按渠道需要创建对应 channel 资源。
- 配置 Direct Line 时启用 secure site,并把必要的 client token 流程放在受控后端,不将长期密钥嵌入浏览器。
- 连接到真正的 Bot Framework 应用后,单独验证渠道消息路由、OAuth流程和身份权限。
从一个具体任务开始
本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。
复制一个具体任务
请基于 azure-mgmt-botservice-dotnet 为现有 Bot 制作只读渠道盘点草案:查询 bot endpoint、已有渠道名及启用状态,不生成 Direct Line key、不改配置。得到资源盘点代码草案;未访问 Azure 或读取渠道密钥。
使用条件与边界
- 创建 Azure Bot 资源不等于实现 Bot 对话逻辑;endpoint 所指向的应用须独立存在。
- 重新生成 Direct Line keys 会立即影响正在使用旧 key 的客户端。
- 源文频道列表只列举 ARM 类型;创建渠道不保证平台端应用审核或权限已完成。
常见问题
Direct Line渠道创建后前端就可以连接吗?
还要有 Bot messaging endpoint、正确的渠道配置及安全的 token 发放流程;不要把 Direct Line 主密钥直接放前端。
Teams channel启用失败怎么办?
除 ARM 成功外,还需检查 Teams app manifest、租户许可和渠道侧发布/安装流程。
来源原文与资料状态
- 源文件
- 已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
- 中文使用说明
- 已针对下方源文件版本整理用途、用法和常见问题
- 安装与任务测试
- 本站未执行安装或任务测试
- 来源复核
- 本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料
.github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z
以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。
抓取成功不代表已完成安装或任务测试。
Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".
查看源文件章节 / Source sections
- 原文:Azure.ResourceManager.BotService (.NET)
- 安装 / Installation
- 原文:Environment Variables
- 原文:Authentication
- 原文:Resource Hierarchy
- 原文:Core Workflows
- 原文:1. Create Bot Resource
- 原文:2. Configure DirectLine Channel
- 原文:3. Configure Microsoft Teams Channel
- 原文:4. Configure Web Chat Channel
- 原文:5. Get Bot and List Channels
- 原文:6. Regenerate DirectLine Keys
- 原文:7. Update Bot
- 原文:8. Delete Bot
- 原文:Supported Channel Types
- 原文:Key Types Reference
- 原文:BotServiceKind Values
- 原文:BotServiceSkuName Values
- 原文:BotMsaAppType Values
- 原文:Best Practices
- 原文:Error Handling
- 原文:Related SDKs
- 原文:Reference Links
原文:Azure.ResourceManager.BotService (.NET)
Management plane SDK for provisioning and managing Azure Bot Service resources via Azure Resource Manager.
安装 / Installation
```bash dotnet add package Azure.ResourceManager.BotService dotnet add package Azure.Identity ``` **Current Versions**: Stable v1.1.1, Preview v1.1.0-beta.1
原文:Environment Variables
```bash AZURE_SUBSCRIPTION_ID=<your-subscription-id> # Required: Azure subscription ID AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production AZURE_TENANT_ID=<tenant-id> # For service principal auth (optional) AZURE_CLIENT_ID=<client-id> # For service principal auth (optional) AZURE_CLIENT_SECRET=<client-secret> # For service principal auth (optional) ```
原文:Authentication
```csharp using Azure.Identity; using Azure.ResourceManager; using Azure.ResourceManager.BotService; // Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=<specific_credential> var credential = new DefaultAzureCredential( DefaultAzureCredential.DefaultEnvironmentVariableName ); // Or use a specific credential directly in production: // See https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet#credential-classes // var credential = new ManagedIdentityCredential(); ArmClient armClient = new ArmClient(credential); // Get subscription and resource group SubscriptionResource subscription = await armClient.GetDefaultSubscriptionAsync(); ResourceGroupResource resourceGroup = await subscription.GetResourceGroups().GetAsync("myResourceGroup"); // Access bot collection BotCollection botCollection = resourceGroup.GetBots(); ```
原文:Resource Hierarchy
``` ArmClient └── SubscriptionResource └── ResourceGroupResource └── BotResource ├── BotChannelResource (DirectLine, Teams, Slack, etc.) ├── BotConnectionSettingResource (OAuth connections) └── BotServicePrivateEndpointConnectionResource ```
原文:1. Create Bot Resource
```csharp using Azure.ResourceManager.BotService; using Azure.ResourceManager.BotService.Models; // Create bot data var botData = new BotData(AzureLocation.WestUS2) { Kind = BotServiceKind.Azurebot, Sku = new BotServiceSku(BotServiceSkuName.F0), Properties = new BotProperties( displayName: "MyBot", endpoint: new Uri("https://mybot.azurewebsites.net/api/messages"), msaAppId: "<your-msa-app-id>") { Description = "My Azure Bot", MsaAppType = BotMsaAppType.MultiTenant } }; // Create or update the bot ArmOperation<BotResource> operation = await botCollection.CreateOrUpdateAsync( WaitUntil.Completed, "myBotName", botData); BotResource bot = operation.Value; Console.WriteLine($"Bot created: {bot.Data.Name}"); ```
文件 SHA256:63b889425dca9f3584ba88f509374ede0364ee48d71616c52902c44bc1882691
仓库许可证记录:MIT;skill-declaration-captured-not-interpreted,查看来源。
Azure Resource Manager SDK for Bot Service in .NET. Management plane operations for creating and managing Azure Bot resources, channels (Teams, DirectLine, Slack), and connection settings. Triggers: "Bot Service", "BotResource", "Azure Bot", "DirectLine channel", "Teams channel", "bot management .NET", "create bot".
历史收录数据
| 来源仓库 | microsoft/skills |
|---|---|
| Skill源路径 | .github/plugins/azure-sdk-dotnet/skills/azure-mgmt-botservice-dotnet/SKILL.md |
安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。
