Azure.ResourceManager.BotService (.NET)
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.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "Azure.ResourceManager.BotService (.NET)". Create a bot named 'CustomerSupportBot' in West US 2 with Teams channel enabled
Expected outcome:
Bot 'CustomerSupportBot' created successfully in West US 2. Teams channel configured with calling disabled. Bot endpoint: https://customer-support-bot.azurewebsites.net/api/messages
Using "Azure.ResourceManager.BotService (.NET)". List all channels for the bot 'MyAssistant'
Expected outcome:
Channels for MyAssistant:
- DirectLineChannel (Enabled: True, Secure Site: True)
- MsTeamsChannel (Enabled: True, Calling: False)
- WebChatChannel (Enabled: True)
Using "Azure.ResourceManager.BotService (.NET)". Regenerate DirectLine keys for Default Site
Expected outcome:
DirectLine keys regenerated successfully for 'Default Site'. New primary key available. Previous keys will remain valid for 10 minutes during transition.
Security Audit
SafeThis 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.
Quality Score
What You Can Build
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.
Try These Prompts
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.
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.
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.
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.
Best Practices
- 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
Avoid
- 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
Frequently Asked Questions
What authentication methods does this SDK support?
Can I use this SDK to send messages from my bot?
How do I handle rate limiting from the Azure Resource Manager API?
What permissions do I need to create bot resources?
How do I configure OAuth connections for my bot?
Can I manage bots across multiple subscriptions?
Developer Details
Author
sickn33License
MIT
Repository
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-mgmt-botservice-dotnetRef
main
File structure
📄 SKILL.md