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.
Скачать ZIP навыка
Загрузить в Claude
Перейдите в Settings → Capabilities → Skills → Upload skill
Включите и начните использовать
Протестировать
Использование «Azure.ResourceManager.BotService (.NET)». Create a bot named 'CustomerSupportBot' in West US 2 with Teams channel enabled
Ожидаемый результат:
Bot 'CustomerSupportBot' created successfully in West US 2. Teams channel configured with calling disabled. Bot endpoint: https://customer-support-bot.azurewebsites.net/api/messages
Использование «Azure.ResourceManager.BotService (.NET)». List all channels for the bot 'MyAssistant'
Ожидаемый результат:
Channels for MyAssistant:
- DirectLineChannel (Enabled: True, Secure Site: True)
- MsTeamsChannel (Enabled: True, Calling: False)
- WebChatChannel (Enabled: True)
Использование «Azure.ResourceManager.BotService (.NET)». Regenerate DirectLine keys for Default Site
Ожидаемый результат:
DirectLine keys regenerated successfully for 'Default Site'. New primary key available. Previous keys will remain valid for 10 minutes during transition.
Аудит безопасности
Безопасно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.
Оценка качества
Что вы можете построить
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.
Попробуйте эти промпты
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.
Лучшие практики
- 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
Избегать
- 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
Часто задаваемые вопросы
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?
Сведения для разработчиков
Автор
sickn33Лицензия
MIT
Репозиторий
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-mgmt-botservice-dotnetСсылка
main
Структура файлов
📄 SKILL.md