Habilidades Azure.ResourceManager.BotService (.NET)
📦

Azure.ResourceManager.BotService (.NET)

Seguro

Manage Azure Bot Service Resources with .NET SDK

Developers need to provision and configure Azure Bot Service resources efficiently. This skill provides comprehensive guidance for managing bot resources, channels, and connection settings using the Azure Resource Manager .NET SDK.

Soporta: Claude Codex Code(CC)
🥉 72 Bronce
1

Descargar el ZIP de la skill

2

Subir en Claude

Ve a Configuración → Capacidades → Skills → Subir skill

3

Activa y empieza a usar

Pruébalo

Usando "Azure.ResourceManager.BotService (.NET)". Create a bot named 'CustomerSupportBot' in West US 2 with Teams channel enabled

Resultado esperado:

Bot 'CustomerSupportBot' created successfully in West US 2. Teams channel configured with calling disabled. Bot endpoint: https://customer-support-bot.azurewebsites.net/api/messages

Usando "Azure.ResourceManager.BotService (.NET)". List all channels for the bot 'MyAssistant'

Resultado esperado:

Channels for MyAssistant:
- DirectLineChannel (Enabled: True, Secure Site: True)
- MsTeamsChannel (Enabled: True, Calling: False)
- WebChatChannel (Enabled: True)

Usando "Azure.ResourceManager.BotService (.NET)". Regenerate DirectLine keys for Default Site

Resultado esperado:

DirectLine keys regenerated successfully for 'Default Site'. New primary key available. Previous keys will remain valid for 10 minutes during transition.

Auditoría de seguridad

Seguro
v1 • 2/25/2026

This skill contains documentation and code examples for the Azure Resource Manager BotService SDK. Static analysis scanned 0 files with 0 lines, detecting no security patterns. The skill is prompt-only content with no executable code, making it safe for publication. All code examples demonstrate proper Azure SDK patterns including DefaultAzureCredential for authentication.

0
Archivos escaneados
0
Líneas analizadas
0
hallazgos
1
Auditorías totales
No se encontraron problemas de seguridad
Auditado por: claude

Puntuación de calidad

38
Arquitectura
100
Mantenibilidad
87
Contenido
50
Comunidad
100
Seguridad
74
Cumplimiento de la especificación

Lo que puedes crear

DevOps Engineer Automating Bot Deployment

Automate the provisioning of bot resources across multiple environments using CI/CD pipelines with proper credential management.

Developer Building Multi-Channel Bots

Configure multiple communication channels for a single bot resource to reach users across Teams, Web Chat, and DirectLine integrations.

Security Administrator Managing Bot Credentials

Implement key rotation policies and manage OAuth connection settings for enterprise bot deployments with strict security requirements.

Prueba estos prompts

Beginner: Create a Basic Bot Resource
Help me create a new Azure Bot resource in my subscription. I need to authenticate using DefaultAzureCredential, create a resource group if needed, and deploy a bot with the free tier (F0) SKU. Show me the complete C# code with proper error handling.
Intermediate: Configure Multiple Channels
I have an existing bot resource and need to enable both Microsoft Teams and DirectLine channels. Show me how to configure the Teams channel with calling disabled, and set up DirectLine with a secure site. Include code to verify the channels were created successfully.
Advanced: Implement Key Rotation
Our security policy requires quarterly rotation of DirectLine channel keys. Show me how to programmatically regenerate keys for the Default Site, retrieve the new keys, and update our Azure Key Vault with the rotated credentials using the Azure SDK.
Expert: Multi-Environment Bot Management
I need to deploy the same bot configuration across dev, staging, and production environments with environment-specific settings. Create a solution that uses ARM SDK to create bots with different SKUs (F0 for dev, S1 for production), configure channels appropriately, and implement proper error handling for each environment.

Mejores prácticas

  • Use DefaultAzureCredential for flexible authentication that supports development and production environments
  • Store sensitive credentials like MSA App IDs and secrets in Azure Key Vault rather than environment variables
  • Enable secure sites for DirectLine channels in production to require token-based authentication

Evitar

  • Hardcoding client secrets or connection strings directly in source code
  • Using the legacy BotServiceKind.Bot instead of the recommended Azurebot kind for new deployments
  • Skipping WaitUntil.Completed for operations that must complete before proceeding

Preguntas frecuentes

What authentication methods does this SDK support?
The SDK uses Azure.Identity's DefaultAzureCredential which supports multiple methods: Visual Studio credentials, Azure CLI credentials, managed identity, environment variables, and certificate-based service principals. It tries each method in order until successful authentication.
Can I use this SDK to send messages from my bot?
No, this SDK only handles management plane operations (creating, updating, deleting bot resources). For sending and receiving messages, use the Microsoft.Bot.Builder SDK package instead.
How do I handle rate limiting from the Azure Resource Manager API?
The SDK automatically retries on rate limit responses. For custom handling, catch RequestFailedException and check if the ErrorCode indicates throttling. Consider implementing exponential backoff for high-volume operations.
What permissions do I need to create bot resources?
You need Contributor or Owner role on the resource group, or a custom role with Microsoft.BotService/bots/write and Microsoft.BotService/bots/channels/write permissions. For reading, use Microsoft.BotService/bots/read.
How do I configure OAuth connections for my bot?
Use the BotConnectionSettingResource to create OAuth connection settings. This requires configuring an Azure AD app registration with the appropriate redirect URIs and permissions for your target identity provider.
Can I manage bots across multiple subscriptions?
Yes, create separate ArmClient instances for each subscription or use the ArmClient to get specific subscriptions by ID. You can iterate through all subscriptions accessible to your credentials for cross-subscription management.

Detalles del desarrollador

Estructura de archivos

📄 SKILL.md