[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69ASP3FWAWR9MGCET2BXXH1":3,"skill-same:01M69ASP3FWAWR9MGCET2BXXH1":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":46,"linkOnly":47,"markdownContent":48,"markdownBody":49,"frontMatter":50,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":58,"ownerHtmlUrl":59,"ownerBlogUrl":60,"ownerDescription":61,"updatedAt":62,"install":63,"resources":76},"01M69ASP3FWAWR9MGCET2BXXH1","azure-mgmt-botservice-py","Azure Bot Service 资源管理 SDK","Azure Bot Service Management SDK for Python. Use for creating, managing, and configuring Azure Bot Service resources.\nTriggers: \"azure-mgmt-botservice\", \"AzureBotService\", \"bot management\", \"conversational AI\", \"bot channels\".","适用于 Python 的 Azure Bot Service 管理 SDK。用于创建、管理和配置 Azure Bot Service 资源。\n触发词：\"azure-mgmt-botservice\"、\"AzureBotService\"、\"bot management\"（机器人管理）、\"conversational AI\"（对话式 AI）、\"bot channels\"（机器人渠道）。","microsoft\u002Fskills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69AJYYW4E1RMSYCQDJ4FJSH",3204,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fazure-sdk-python\u002Fskills\u002Fazure-mgmt-botservice-py\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BZ2WGMFY62RTQFGK4JXCMW","Azure AI 服务集成","SCENARIO","使用场景",[31,32,33,34,35,10,36,37,38,39,40,41,42,43,44,45],"azure","azure mgmt botservice py","bot","python","sdk","management","use","service","triggers","bot management","resources","Conversational AI","azure bot service","channels","for","2026-11-10 10:12:30",false,"---\nname: azure-mgmt-botservice-py\ndescription: |-\n  Azure Bot Service Management SDK for Python. Use for creating, managing, and configuring Azure Bot Service resources.\n  Triggers: \"azure-mgmt-botservice\", \"AzureBotService\", \"bot management\", \"conversational AI\", \"bot channels\".\nlicense: MIT\nmetadata:\n  author: Microsoft\n  version: \"1.0.0\"\n---\n\n# Azure Bot Service Management SDK for Python\n\nManage Azure Bot Service resources including bots, channels, and connections.\n\n## Installation\n\n```bash\npip install azure-mgmt-botservice\npip install azure-identity\n```\n\n## Environment Variables\n\n```bash\nAZURE_SUBSCRIPTION_ID=\u003Cyour-subscription-id>  # Required for all auth methods\nAZURE_RESOURCE_GROUP=\u003Cyour-resource-group>  # Required for all auth methods\nAZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production\n```\n\n## Authentication & Lifecycle\n\n> **? Two rules apply to every code sample below:**\n>\n> 1. **Prefer `DefaultAzureCredential`.** It works locally (Azure CLI \u002F VS Code \u002F Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account\u002FAPI keys — they bypass Entra audit and rotation.\n>    - Local dev: `DefaultAzureCredential` works as-is.\n>    - Production: set `AZURE_TOKEN_CREDENTIALS=prod` (or `AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>`) to constrain the credential chain to production-safe credentials.\n> 2. **Wrap every client in a context manager** so HTTP transports, sockets, and token caches are released deterministically:\n>    - Sync: `with \u003CClient>(...) as client:`\n>    - Async: `async with \u003CClient>(...) as client:` **and** `async with DefaultAzureCredential() as credential:` (from `azure.identity.aio`)\n>\n> Snippets may abbreviate this setup, but production code should always follow both rules.\n\n```python\nfrom azure.identity import DefaultAzureCredential, ManagedIdentityCredential\nfrom azure.mgmt.botservice import AzureBotService\nimport os\n\n# Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\ncredential = DefaultAzureCredential(require_envvar=True)\n# Or use a specific credential directly in production:\n# See https:\u002F\u002Flearn.microsoft.com\u002Fpython\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-python#credential-classes\n# credential = ManagedIdentityCredential()\n\nwith AzureBotService(\n    credential=credential,\n    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"]\n) as client:\n    # Use `client` for all subsequent operations (see examples below)\n    ...\n```\n\n## Create a Bot\n\n```python\nfrom azure.mgmt.botservice import AzureBotService\nfrom azure.mgmt.botservice.models import Bot, BotProperties, Sku\nfrom azure.identity import DefaultAzureCredential\nimport os\n\nresource_group = os.environ[\"AZURE_RESOURCE_GROUP\"]\nbot_name = \"my-chat-bot\"\n\ncredential = DefaultAzureCredential()\nwith AzureBotService(\n    credential=credential,\n    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"]\n) as client:\n    bot = client.bots.create(\n        resource_group_name=resource_group,\n        resource_name=bot_name,\n        parameters=Bot(\n            location=\"global\",\n            sku=Sku(name=\"F0\"),  # Free tier\n            kind=\"azurebot\",\n            properties=BotProperties(\n                display_name=\"My Chat Bot\",\n                description=\"A conversational AI bot\",\n                endpoint=\"https:\u002F\u002Fmy-bot-app.azurewebsites.net\u002Fapi\u002Fmessages\",\n                msa_app_id=\"\u003Cyour-app-id>\",\n                msa_app_type=\"MultiTenant\"\n            )\n        )\n    )\n\nprint(f\"Bot created: {bot.name}\")\n```\n\n## Get Bot Details\n\n```python\nbot = client.bots.get(\n    resource_group_name=resource_group,\n    resource_name=bot_name\n)\n\nprint(f\"Bot: {bot.properties.display_name}\")\nprint(f\"Endpoint: {bot.properties.endpoint}\")\nprint(f\"SKU: {bot.sku.name}\")\n```\n\n## List Bots in Resource Group\n\n```python\nbots = client.bots.list_by_resource_group(resource_group_name=resource_group)\n\nfor bot in bots:\n    print(f\"Bot: {bot.name} - {bot.properties.display_name}\")\n```\n\n## List All Bots in Subscription\n\n```python\nall_bots = client.bots.list()\n\nfor bot in all_bots:\n    print(f\"Bot: {bot.name} in {bot.id.split('\u002F')[4]}\")\n```\n\n## Update Bot\n\n```python\nbot = client.bots.update(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    properties=BotProperties(\n        display_name=\"Updated Bot Name\",\n        description=\"Updated description\"\n    )\n)\n```\n\n## Delete Bot\n\n```python\nclient.bots.delete(\n    resource_group_name=resource_group,\n    resource_name=bot_name\n)\n```\n\n## Configure Channels\n\n### Add Teams Channel\n\n```python\nfrom azure.mgmt.botservice.models import (\n    BotChannel,\n    MsTeamsChannel,\n    MsTeamsChannelProperties\n)\n\nchannel = client.channels.create(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"MsTeamsChannel\",\n    parameters=BotChannel(\n        location=\"global\",\n        properties=MsTeamsChannel(\n            properties=MsTeamsChannelProperties(\n                is_enabled=True\n            )\n        )\n    )\n)\n```\n\n### Add Direct Line Channel\n\n```python\nfrom azure.mgmt.botservice.models import (\n    BotChannel,\n    DirectLineChannel,\n    DirectLineChannelProperties,\n    DirectLineSite\n)\n\nchannel = client.channels.create(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"DirectLineChannel\",\n    parameters=BotChannel(\n        location=\"global\",\n        properties=DirectLineChannel(\n            properties=DirectLineChannelProperties(\n                sites=[\n                    DirectLineSite(\n                        site_name=\"Default Site\",\n                        is_enabled=True,\n                        is_v1_enabled=False,\n                        is_v3_enabled=True\n                    )\n                ]\n            )\n        )\n    )\n)\n```\n\n### Add Web Chat Channel\n\n```python\nfrom azure.mgmt.botservice.models import (\n    BotChannel,\n    WebChatChannel,\n    WebChatChannelProperties,\n    WebChatSite\n)\n\nchannel = client.channels.create(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"WebChatChannel\",\n    parameters=BotChannel(\n        location=\"global\",\n        properties=WebChatChannel(\n            properties=WebChatChannelProperties(\n                sites=[\n                    WebChatSite(\n                        site_name=\"Default Site\",\n                        is_enabled=True\n                    )\n                ]\n            )\n        )\n    )\n)\n```\n\n## Get Channel Details\n\n```python\nchannel = client.channels.get(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"DirectLineChannel\"\n)\n```\n\n## List Channel Keys\n\n```python\nkeys = client.channels.list_with_keys(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"DirectLineChannel\"\n)\n\n# Access Direct Line keys\nif hasattr(keys.properties, 'properties'):\n    for site in keys.properties.properties.sites:\n        print(f\"Site: {site.site_name}\")\n        print(f\"Key: {site.key}\")\n```\n\n## Bot Connections (OAuth)\n\n### Create Connection Setting\n\n```python\nfrom azure.mgmt.botservice.models import (\n    ConnectionSetting,\n    ConnectionSettingProperties\n)\n\nconnection = client.bot_connection.create(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    connection_name=\"graph-connection\",\n    parameters=ConnectionSetting(\n        location=\"global\",\n        properties=ConnectionSettingProperties(\n            client_id=\"\u003Coauth-client-id>\",\n            client_secret=\"\u003Coauth-client-secret>\",\n            scopes=\"User.Read\",\n            service_provider_id=\"\u003Cservice-provider-id>\"\n        )\n    )\n)\n```\n\n### List Connections\n\n```python\nconnections = client.bot_connection.list_by_bot_service(\n    resource_group_name=resource_group,\n    resource_name=bot_name\n)\n\nfor conn in connections:\n    print(f\"Connection: {conn.name}\")\n```\n\n## Client Operations\n\n| Operation | Method |\n|-----------|--------|\n| `client.bots` | Bot CRUD operations |\n| `client.channels` | Channel configuration |\n| `client.bot_connection` | OAuth connection settings |\n| `client.direct_line` | Direct Line channel operations |\n| `client.email` | Email channel operations |\n| `client.operations` | Available operations |\n| `client.host_settings` | Host settings operations |\n\n## SKU Options\n\n| SKU | Description |\n|-----|-------------|\n| `F0` | Free tier (limited messages) |\n| `S1` | Standard tier (unlimited messages) |\n\n## Channel Types\n\n| Channel | Class | Purpose |\n|---------|-------|---------|\n| `MsTeamsChannel` | Microsoft Teams | Teams integration |\n| `DirectLineChannel` | Direct Line | Custom client integration |\n| `WebChatChannel` | Web Chat | Embeddable web widget |\n| `SlackChannel` | Slack | Slack workspace integration |\n| `FacebookChannel` | Facebook | Messenger integration |\n| `EmailChannel` | Email | Email communication |\n\n## Best Practices\n\n1. **Pick sync OR async and stay consistent.** Do not mix `azure.xxx` sync clients with `azure.xxx.aio` async clients in the same call path. Choose one mode per module.\n2. **Always use context managers for clients and async credentials.** Wrap every client in `with Client(...) as client:` (sync) or `async with Client(...) as client:` (async). For async `DefaultAzureCredential` from `azure.identity.aio`, also use `async with credential:` so tokens and transports are cleaned up.\n3. **Use `DefaultAzureCredential`** for code that runs locally. Use a specific token credential for code that runs in Azure.\n4. **Start with F0 SKU** for development, upgrade to S1 for production\n5. **Store MSA App ID\u002FSecret securely** — use Key Vault\n6. **Enable only needed channels** — reduces attack surface\n7. **Rotate Direct Line keys** periodically\n8. **Use managed identity** when possible for bot connections\n9. **Configure proper CORS** for Web Chat channel\n\n## Reference Files\n\n| File | Contents |\n|------|----------|\n| [references\u002Fcapabilities.md](references\u002Fcapabilities.md) | Additional non-hero capabilities, operation-group coverage, and production checklists. |\n| [references\u002Fnon-hero-scenarios.md](references\u002Fnon-hero-scenarios.md) | Dedicated non-hero examples for secondary\u002Fadvanced scenarios. |\n","# Azure Bot Service Management SDK for Python\n\nManage Azure Bot Service resources including bots, channels, and connections.\n\n## Installation\n\n```bash\npip install azure-mgmt-botservice\npip install azure-identity\n```\n\n## Environment Variables\n\n```bash\nAZURE_SUBSCRIPTION_ID=\u003Cyour-subscription-id>  # Required for all auth methods\nAZURE_RESOURCE_GROUP=\u003Cyour-resource-group>  # Required for all auth methods\nAZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production\n```\n\n## Authentication & Lifecycle\n\n> **? Two rules apply to every code sample below:**\n>\n> 1. **Prefer `DefaultAzureCredential`.** It works locally (Azure CLI \u002F VS Code \u002F Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account\u002FAPI keys — they bypass Entra audit and rotation.\n>    - Local dev: `DefaultAzureCredential` works as-is.\n>    - Production: set `AZURE_TOKEN_CREDENTIALS=prod` (or `AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>`) to constrain the credential chain to production-safe credentials.\n> 2. **Wrap every client in a context manager** so HTTP transports, sockets, and token caches are released deterministically:\n>    - Sync: `with \u003CClient>(...) as client:`\n>    - Async: `async with \u003CClient>(...) as client:` **and** `async with DefaultAzureCredential() as credential:` (from `azure.identity.aio`)\n>\n> Snippets may abbreviate this setup, but production code should always follow both rules.\n\n```python\nfrom azure.identity import DefaultAzureCredential, ManagedIdentityCredential\nfrom azure.mgmt.botservice import AzureBotService\nimport os\n\n# Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=\u003Cspecific_credential>\ncredential = DefaultAzureCredential(require_envvar=True)\n# Or use a specific credential directly in production:\n# See https:\u002F\u002Flearn.microsoft.com\u002Fpython\u002Fapi\u002Foverview\u002Fazure\u002Fidentity-readme?view=azure-python#credential-classes\n# credential = ManagedIdentityCredential()\n\nwith AzureBotService(\n    credential=credential,\n    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"]\n) as client:\n    # Use `client` for all subsequent operations (see examples below)\n    ...\n```\n\n## Create a Bot\n\n```python\nfrom azure.mgmt.botservice import AzureBotService\nfrom azure.mgmt.botservice.models import Bot, BotProperties, Sku\nfrom azure.identity import DefaultAzureCredential\nimport os\n\nresource_group = os.environ[\"AZURE_RESOURCE_GROUP\"]\nbot_name = \"my-chat-bot\"\n\ncredential = DefaultAzureCredential()\nwith AzureBotService(\n    credential=credential,\n    subscription_id=os.environ[\"AZURE_SUBSCRIPTION_ID\"]\n) as client:\n    bot = client.bots.create(\n        resource_group_name=resource_group,\n        resource_name=bot_name,\n        parameters=Bot(\n            location=\"global\",\n            sku=Sku(name=\"F0\"),  # Free tier\n            kind=\"azurebot\",\n            properties=BotProperties(\n                display_name=\"My Chat Bot\",\n                description=\"A conversational AI bot\",\n                endpoint=\"https:\u002F\u002Fmy-bot-app.azurewebsites.net\u002Fapi\u002Fmessages\",\n                msa_app_id=\"\u003Cyour-app-id>\",\n                msa_app_type=\"MultiTenant\"\n            )\n        )\n    )\n\nprint(f\"Bot created: {bot.name}\")\n```\n\n## Get Bot Details\n\n```python\nbot = client.bots.get(\n    resource_group_name=resource_group,\n    resource_name=bot_name\n)\n\nprint(f\"Bot: {bot.properties.display_name}\")\nprint(f\"Endpoint: {bot.properties.endpoint}\")\nprint(f\"SKU: {bot.sku.name}\")\n```\n\n## List Bots in Resource Group\n\n```python\nbots = client.bots.list_by_resource_group(resource_group_name=resource_group)\n\nfor bot in bots:\n    print(f\"Bot: {bot.name} - {bot.properties.display_name}\")\n```\n\n## List All Bots in Subscription\n\n```python\nall_bots = client.bots.list()\n\nfor bot in all_bots:\n    print(f\"Bot: {bot.name} in {bot.id.split('\u002F')[4]}\")\n```\n\n## Update Bot\n\n```python\nbot = client.bots.update(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    properties=BotProperties(\n        display_name=\"Updated Bot Name\",\n        description=\"Updated description\"\n    )\n)\n```\n\n## Delete Bot\n\n```python\nclient.bots.delete(\n    resource_group_name=resource_group,\n    resource_name=bot_name\n)\n```\n\n## Configure Channels\n\n### Add Teams Channel\n\n```python\nfrom azure.mgmt.botservice.models import (\n    BotChannel,\n    MsTeamsChannel,\n    MsTeamsChannelProperties\n)\n\nchannel = client.channels.create(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"MsTeamsChannel\",\n    parameters=BotChannel(\n        location=\"global\",\n        properties=MsTeamsChannel(\n            properties=MsTeamsChannelProperties(\n                is_enabled=True\n            )\n        )\n    )\n)\n```\n\n### Add Direct Line Channel\n\n```python\nfrom azure.mgmt.botservice.models import (\n    BotChannel,\n    DirectLineChannel,\n    DirectLineChannelProperties,\n    DirectLineSite\n)\n\nchannel = client.channels.create(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"DirectLineChannel\",\n    parameters=BotChannel(\n        location=\"global\",\n        properties=DirectLineChannel(\n            properties=DirectLineChannelProperties(\n                sites=[\n                    DirectLineSite(\n                        site_name=\"Default Site\",\n                        is_enabled=True,\n                        is_v1_enabled=False,\n                        is_v3_enabled=True\n                    )\n                ]\n            )\n        )\n    )\n)\n```\n\n### Add Web Chat Channel\n\n```python\nfrom azure.mgmt.botservice.models import (\n    BotChannel,\n    WebChatChannel,\n    WebChatChannelProperties,\n    WebChatSite\n)\n\nchannel = client.channels.create(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"WebChatChannel\",\n    parameters=BotChannel(\n        location=\"global\",\n        properties=WebChatChannel(\n            properties=WebChatChannelProperties(\n                sites=[\n                    WebChatSite(\n                        site_name=\"Default Site\",\n                        is_enabled=True\n                    )\n                ]\n            )\n        )\n    )\n)\n```\n\n## Get Channel Details\n\n```python\nchannel = client.channels.get(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"DirectLineChannel\"\n)\n```\n\n## List Channel Keys\n\n```python\nkeys = client.channels.list_with_keys(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    channel_name=\"DirectLineChannel\"\n)\n\n# Access Direct Line keys\nif hasattr(keys.properties, 'properties'):\n    for site in keys.properties.properties.sites:\n        print(f\"Site: {site.site_name}\")\n        print(f\"Key: {site.key}\")\n```\n\n## Bot Connections (OAuth)\n\n### Create Connection Setting\n\n```python\nfrom azure.mgmt.botservice.models import (\n    ConnectionSetting,\n    ConnectionSettingProperties\n)\n\nconnection = client.bot_connection.create(\n    resource_group_name=resource_group,\n    resource_name=bot_name,\n    connection_name=\"graph-connection\",\n    parameters=ConnectionSetting(\n        location=\"global\",\n        properties=ConnectionSettingProperties(\n            client_id=\"\u003Coauth-client-id>\",\n            client_secret=\"\u003Coauth-client-secret>\",\n            scopes=\"User.Read\",\n            service_provider_id=\"\u003Cservice-provider-id>\"\n        )\n    )\n)\n```\n\n### List Connections\n\n```python\nconnections = client.bot_connection.list_by_bot_service(\n    resource_group_name=resource_group,\n    resource_name=bot_name\n)\n\nfor conn in connections:\n    print(f\"Connection: {conn.name}\")\n```\n\n## Client Operations\n\n| Operation | Method |\n|-----------|--------|\n| `client.bots` | Bot CRUD operations |\n| `client.channels` | Channel configuration |\n| `client.bot_connection` | OAuth connection settings |\n| `client.direct_line` | Direct Line channel operations |\n| `client.email` | Email channel operations |\n| `client.operations` | Available operations |\n| `client.host_settings` | Host settings operations |\n\n## SKU Options\n\n| SKU | Description |\n|-----|-------------|\n| `F0` | Free tier (limited messages) |\n| `S1` | Standard tier (unlimited messages) |\n\n## Channel Types\n\n| Channel | Class | Purpose |\n|---------|-------|---------|\n| `MsTeamsChannel` | Microsoft Teams | Teams integration |\n| `DirectLineChannel` | Direct Line | Custom client integration |\n| `WebChatChannel` | Web Chat | Embeddable web widget |\n| `SlackChannel` | Slack | Slack workspace integration |\n| `FacebookChannel` | Facebook | Messenger integration |\n| `EmailChannel` | Email | Email communication |\n\n## Best Practices\n\n1. **Pick sync OR async and stay consistent.** Do not mix `azure.xxx` sync clients with `azure.xxx.aio` async clients in the same call path. Choose one mode per module.\n2. **Always use context managers for clients and async credentials.** Wrap every client in `with Client(...) as client:` (sync) or `async with Client(...) as client:` (async). For async `DefaultAzureCredential` from `azure.identity.aio`, also use `async with credential:` so tokens and transports are cleaned up.\n3. **Use `DefaultAzureCredential`** for code that runs locally. Use a specific token credential for code that runs in Azure.\n4. **Start with F0 SKU** for development, upgrade to S1 for production\n5. **Store MSA App ID\u002FSecret securely** — use Key Vault\n6. **Enable only needed channels** — reduces attack surface\n7. **Rotate Direct Line keys** periodically\n8. **Use managed identity** when possible for bot connections\n9. **Configure proper CORS** for Web Chat channel\n\n## Reference Files\n\n| File | Contents |\n|------|----------|\n| [references\u002Fcapabilities.md](references\u002Fcapabilities.md) | Additional non-hero capabilities, operation-group coverage, and production checklists. |\n| [references\u002Fnon-hero-scenarios.md](references\u002Fnon-hero-scenarios.md) | Dedicated non-hero examples for secondary\u002Fadvanced scenarios. |\n",{"name":5,"license":16,"metadata":51,"description":7},{"author":13,"version":52},"1.0.0","main","3f5b461b2314e01c400564051e92469114c5b68f",".github\u002Fplugins\u002Fazure-sdk-python\u002Fskills\u002Fazure-mgmt-botservice-py",368,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills","https:\u002F\u002Fmicrosoft.github.io\u002Fskills\u002F","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 06:48:25",{"source":9,"skillName":5,"commands":64,"prompt":74,"zipAvailable":75},[65,68,71],{"tool":66,"command":67},"npx","npx skills add microsoft\u002Fskills --skill azure-mgmt-botservice-py",{"tool":69,"command":70},"bunx","bunx skills add microsoft\u002Fskills --skill azure-mgmt-botservice-py",{"tool":72,"command":73},"pnpm","pnpm dlx skills add microsoft\u002Fskills --skill azure-mgmt-botservice-py","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fazure-sdk-python\u002Fskills\u002Fazure-mgmt-botservice-py\u002FSKILL.md",true,[77,83],{"path":78,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fcapabilities.md","REFERENCE","参考文档",2327,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fazure-sdk-python\u002Fskills\u002Fazure-mgmt-botservice-py\u002Freferences\u002Fcapabilities.md",{"path":84,"resourceType":79,"resourceTypeDesc":80,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fnon-hero-scenarios.md",4981,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fazure-sdk-python\u002Fskills\u002Fazure-mgmt-botservice-py\u002Freferences\u002Fnon-hero-scenarios.md",[88,96,124,159,193,218],{"skillNo":89,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":95},"01M741JBE1VH8A2Y3FXX2P7386","azure-advisor-cost-optimization","Analyze Azure Advisor Cost\u002FIdleResources findings and prevalidate deletion safety, including Service Groups. WHEN: \"find unused Azure resources\", \"what resources am I paying for but no longer using\", \"idle-resource savings\", \"historical idle-resource savings\", \"are these idle resources safe to delete\". Generic Cost, other subcategories, and cross-category requests use azure-advisor.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fplugins\u002Fazure-advisor\u002Fskills\u002Fazure-advisor-cost-optimization\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":97,"name":98,"nameZh":99,"description":100,"descriptionZh":101,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":102,"categories":103,"keywords":108,"publishedAt":46},"01M69B4JCRQV5SPXAFCKXQRV0H","skill-creator","Azure 技能创建与更新指南","Guide for creating effective skills for AI coding agents working with Azure SDKs and Microsoft Foundry services. Use when creating new skills or updating existing skills.","面向使用 Azure SDK 和 Microsoft Foundry 服务的 AI 编码智能体，指导其创建高效技能的指南。在创建新技能或更新现有技能时使用。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fskill-creator\u002FSKILL.md",[104,107],{"categoryNo":105,"categoryName":106,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[109,110,111,112,10,31,113,114,115,116,45,37,117,118,119,120,121,122,123],"skill creator","creator","ai coding agents","coding agents","foundry","microsoft foundry","coding","guide","Existing","services","new","when","sdks","with","ai coding",{"skillNo":125,"name":126,"nameZh":127,"description":128,"descriptionZh":129,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":138,"publishedAt":46},"01M69B4FD57V1MYKRWAJJECTZ7","podcast-generation","AI 播客音频生成","Generate AI-powered podcast-style audio narratives using Azure OpenAI's GPT Realtime Mini model via WebSocket. Use when building text-to-speech features, audio narrative generation, podcast creation from content, or integrating with Azure OpenAI Realtime API for real audio output. Covers full-stack implementation from React frontend to Python FastAPI backend with WebSocket streaming.","通过 WebSocket 使用 Azure OpenAI 的 GPT Realtime Mini 模型生成 AI 驱动的播客式音频叙述。当构建文本转语音功能、音频叙述生成、根据内容制作播客，或集成 Azure OpenAI Realtime API 以获得真实音频输出时使用。涵盖从 React 前端到 Python FastAPI 后端及 WebSocket 流式传输的全栈实现。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpodcast-generation\u002FSKILL.md",[132,135],{"categoryNo":133,"categoryName":134,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR5V816HPKFXP1YV56C07K","多媒体工程师",{"categoryNo":136,"categoryName":137,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BR82CCRKG2HNYVFH5H6GZ0","音频与语音处理",[139,140,141,142,31,143,144,145,34,146,147,148,149,150,151,120,152,153,154,155,156,157,158],"podcast generation","generation","podcast","frontend","azure openai","realtime","react","Audio","creation","model","fastapi backend","python fastapi","fastapi","api","streaming","text","narrative","stack","generate","features",{"skillNo":160,"name":161,"nameZh":162,"description":163,"descriptionZh":164,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":165,"categories":166,"keywords":173,"publishedAt":46},"01M69B4CYPM5SESY5ZWEFDXEQZ","microsoft-docs","Microsoft 技术文档查询","Understand Microsoft technologies by querying official documentation. Use whenever the user asks how something works, wants tutorials, needs configuration options, limits, quotas, or best practices for any Microsoft technology (Azure, .NET, M365, Windows, Power Platform, etc.)—even if they don't mention \"docs.\" If the question is about understanding a concept rather than writing code, this is the right skill.","通过查询官方文档来理解 Microsoft 技术。当用户询问某项技术的工作原理、想要教程、需要任何 Microsoft 技术（Azure、.NET、M365、Windows、Power Platform 等）的配置选项、限制、配额或最佳实践时使用——即使他们没有提到\"文档\"。如果问题是为了理解概念而非编写代码，那么这就是合适的技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmicrosoft-docs\u002FSKILL.md",[167,170],{"categoryNo":168,"categoryName":169,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQ6TKQDF2K4KQS863Q79P4","开发参考",{"categoryNo":171,"categoryName":172,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",[174,10,175,176,177,178,179,31,180,181,182,183,184,185,186,187,45,188,66,189,37,190,191,192],"microsoft docs","docs","documentation","windows","official","cli","MCP","writing","power platform","mcp server","back","concept","power","platform","technology","question","learn mcp","learn","best practices",{"skillNo":194,"name":195,"nameZh":196,"description":197,"descriptionZh":198,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":199,"categories":200,"keywords":205,"publishedAt":46},"01M69B49C3YPD1ZJ3NC0HPCY58","mcp-builder","MCP 服务器构建","Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP), Node\u002FTypeScript (MCP SDK), or C#\u002F.NET (Microsoft MCP SDK).","用于创建高质量 MCP（Model Context Protocol）服务器的指南，使大语言模型能够通过设计完善的工具与外部服务交互。当构建用于集成外部 API 或服务的 MCP 服务器时使用，无论采用 Python（FastMCP）、Node\u002FTypeScript（MCP SDK），还是 C#\u002F.NET（Microsoft MCP SDK）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmcp-builder\u002FSKILL.md",[201,202],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":203,"categoryName":204,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[206,180,207,208,35,10,34,209,210,148,211,120,212,213,214,116,215,216,45,217,37,122],"mcp builder","builder","llms","typescript","model context protocol","building mcp servers","node","integrate","Tools","context","fastmcp","mcp sdk",{"skillNo":219,"name":220,"nameZh":221,"description":222,"descriptionZh":223,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":224,"categories":225,"keywords":232,"publishedAt":46},"01M69B467A7CDMFQ0T6Q0ZA12Q","kql","KQL 查询编写与调试","KQL language expertise for writing correct, efficient Kusto Query Language queries. Covers syntax gotchas, join patterns, dynamic types, datetime pitfalls, regex patterns, serialization, memory management, result-size discipline, and advanced functions (geo, vector, graph). USE THIS SKILL whenever writing, debugging, or reviewing KQL queries — even simple ones — because the gotchas section prevents the most common errors that waste tool calls and cause expensive retry cascades. Trigger on: KQL, Kusto, ADX, Azure Data Explorer, Fabric Real-Time Intelligence, EventHouse, Log Analytics, log analysis, data exploration, time series, anomaly detection, summarize, where clause, join, extend, project, let statement, parse operator, extract function, any mention of pipe-forward query syntax.","KQL 语言专业能力，用于编写正确且高效的 Kusto Query Language 查询。涵盖语法陷阱、join 模式、dynamic 类型、datetime 陷阱、regex 模式、序列化、内存管理、结果集规模控制，以及高级函数（geo、vector、graph）。在编写、调试或审查 KQL 查询时均使用本技能——即使是简单查询——因为陷阱章节可防止最常见的错误，避免浪费工具调用并引发代价高昂的连锁重试。触发条件：KQL、Kusto、ADX、Azure Data Explorer、Fabric Real-Time Intelligence、EventHouse、Log Analytics、日志分析、数据探索、时间序列、异常检测、summarize、where 子句、join、extend、project、let 语句、parse 运算符、extract 函数，以及任何提及管道式查询语法的情形。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fskills\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fkql\u002FSKILL.md",[226,229],{"categoryNo":227,"categoryName":228,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":230,"categoryName":231,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[220,31,181,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,45,249,250,251],"analytics","memory","summarize","exploration","parse","project","time","vector","join","log","pipe","datetime","discipline","time series","regex","anomaly","section","tool","geo"]