# Manage Azure Bot Service with Python

Azure Bot Service administration requires precise SDK models, authentication, and resource operations. This skill provides focused Python examples for bots, channels, keys, and OAuth connections.

## Install

```bash
npx skillstore add sickn33/azure-mgmt-botservice-py
```

## Metadata

- Status: approved
- Slug: sickn33-azure-mgmt-botservice-py
- Skillstore revision: r2
- Version status: missing
- Tree hash: a5d410bfa11744c5a4c6d8631c4c49e35355cc01464538da27c893e646858e69
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-mgmt-botservice-py
- Ref: f9e2c34b4f19c7f3e6b0a1e93227b5f77cc12526
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: confirmation\_required
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: scripts, external\_commands, network, env\_access
- Quality score: 38
- Quality tier: warning
- Public page: https://skillstore.pages.dev/skills/sickn33-azure-mgmt-botservice-py
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-azure-mgmt-botservice-py/manifest

## Capabilities

- Installs the Azure Bot Service management and identity packages.
- Authenticates with DefaultAzureCredential and an environment-based subscription identifier.
- Creates, retrieves, lists, updates, and deletes Azure bot resources.
- Configures Microsoft Teams, Direct Line, and Web Chat channels.
- Lists channel keys and creates or lists OAuth connection settings.

## Use Cases

- Provision a Development Bot: Create a free-tier bot and connect it to an existing application endpoint.
- Configure Bot Channels: Enable Teams, Direct Line, or Web Chat with appropriate channel models.
- Review Bot Inventory: List bots, channel settings, and OAuth connection names across an Azure scope.

## Prompt Templates

### Authenticate to Azure

```
Show how to create an Azure Bot Service client with DefaultAzureCredential and the AZURE_SUBSCRIPTION_ID environment variable.
```

### Create a Bot Resource

```
Create an F0 Azure bot named [bot name] in [resource group] with endpoint [HTTPS endpoint]. Explain each required property.
```

### Configure Production Channels

```
Prepare Python steps to enable [channel types] for [bot name]. Include prerequisite checks and avoid displaying channel keys.
```

### Plan a Controlled Migration

```
Design a reviewed migration for [bot name] across [source scope] and [target scope]. Include inventory, changes, validation, rollback, and secret handling.
```

## Limitations

- Examples require an Azure subscription, suitable permissions, and configured environment variables.
- The skill manages Azure resources but does not deploy the bot application or message endpoint.
- Examples do not provide rollback, retries, policy checks, or production monitoring.
- SDK models and methods may require changes for the installed package version and tenant policy.

## Best Practices

- Confirm the subscription, resource group, and bot name before every write or delete operation.
- Use DefaultAzureCredential, managed identities, Key Vault, and least-privilege Azure roles.
- Redact channel keys and OAuth secrets from logs, terminal output, and generated responses.

## Anti Patterns

- Do not run delete or channel-change examples against production without explicit approval.
- Do not place application secrets, channel keys, or tenant credentials directly in prompts or source files.
- Do not assume sample endpoints, SKUs, scopes, or SDK models match the target environment.

## Security Audit

- Audited at: 2026-07-23T21:22:17.914\+00:00
- Summary: Most static findings are false positives caused by Markdown fences, inline code, parenthesized Python imports, placeholders, or expected environment-variable use. The example at SKILL.md line 242 prints a Direct Line key to standard output, creating a real credential disclosure risk. The skill also performs live Azure control-plane changes, including resource deletion, and requires explicit operator review.

## Stats

- Views: 135
- Downloads: 8
- Favorites: 0
- Popularity score: 0
