Get started now

How to Deploy a Bot in Microsoft Teams: 7 Steps

To deploy a bot in Microsoft Teams, you build and host the bot itself, register an Azure Bot resource with the right identity type, point its messaging endpoint at your hosted bot, package a Teams app manifest that declares it, and upload that package through the Teams surface that fits your situation — sideloaded to yourself, pushed through your org’s app catalog, or submitted to the Teams Store. The tooling behind this changed significantly in 2025, so the steps below assume you’re starting fresh rather than following an old tutorial.

Quick fix: If you’re starting a new bot today, skip the Bot Framework SDK — it’s archived on GitHub and no longer maintained. Start on the Microsoft 365 Agents SDK or the Teams SDK instead, and build it single-tenant or with a user-assigned managed identity — multi-tenant bot creation stopped being supported after July 31, 2025.

What changed since this was first published

The toolchain this guide used to describe no longer exists in supported form. Microsoft has archived it:

“The Bot Framework SDK and Bot Framework Emulator have been archived on GitHub. The project is no longer updated or maintained. Support tickets for the Bot Framework SDK will no longer be serviced as of December 31, 2025.” — Microsoft: What’s new in Azure Bot Service

Microsoft’s recommended replacements, depending on what you’re building:

  • Microsoft 365 Agents SDK — for an agent that needs to work across channels, in C#, JavaScript, or Python (GitHub).
  • Teams SDK (Teams AI Library) — for an agent designed to run inside Microsoft Teams specifically, with Teams-specific APIs, Adaptive Card support, and built-in AI orchestration (docs).
  • Microsoft Copilot Studio — for a low-code/no-code agent platform.

If you’re migrating an existing Bot Framework bot rather than starting fresh, Microsoft has a migration guide.

A few names changed too. Teams Toolkit is now the Microsoft 365 Agents Toolkit, renamed at Microsoft Build in May 2025; its repository moved from OfficeDev/TeamsFx to OfficeDev/microsoft-365-agents-toolkit. The old TeamsFx SDK is deprecated, with community-only support on GitHub until September 2026. What hasn’t changed: the Azure resource type is still called Azure Bot, the Microsoft.Bot.* and botbuilder-* packages keep their names as the legacy packages you’re migrating from, and token.botframework.com is still the domain your bot authenticates against.

Which kind of bot are you actually deploying?

“Bot,” “agent,” and “app” get used interchangeably, but the deployment path differs depending on what you’re actually shipping. Before you touch Azure, work out which of these three you have:

TypeWhere it runsEffortBest for
Declarative agentCopilot’s own orchestrator and model, inside Microsoft 365 appsLow-codeFast, template-driven agents that don’t need custom orchestration
Custom engine agentYour own code — Microsoft 365 Agents SDK, Teams SDK, Copilot Studio pro-code, or Azure AI FoundryFull controlCustom orchestration, model choice, or deep data integration
Classic Bot Framework botAn existing Azure Bot resource on the legacy SDKMaintenance onlyBots you already deployed and now have to keep running

Source: Custom engine agent overview, Agents overview

Be honest about which column you’re in before you start, because the low-code path now carries most of the volume. On Microsoft’s FY26 Q2 earnings call, CEO Satya Nadella said of Copilot Studio and Agent Builder:

“Over 80% of the Fortune 500 have active agents built using these low-code/no-code tools.” — Satya Nadella, Microsoft FY26 Q2 earnings call

That is a claim about low-code agents specifically, not about code-first bots. It is worth weighing anyway: if a declarative agent would do the job, you skip almost everything below. The steps that follow are for the cases where it won’t.

The rest of this guide covers building and deploying a custom engine agent — what most IT admins and developers mean by “a Teams bot” — plus the parts of the process (Azure Bot resource, manifest, store validation) that still apply if you’re maintaining a classic Bot Framework bot.

1. Which SDK should you build on?

For a new bot, start on the Microsoft 365 Agents SDK if it needs to work across channels beyond Teams, or the Teams SDK if it’s Teams-only and you want built-in AI orchestration and Adaptive Card support out of the box. Both replace the archived Bot Framework SDK. Day-to-day development happens through the Microsoft 365 Agents Toolkit, the VS Code extension for scaffolding, running, and packaging your project — the same tool that used to be called Teams Toolkit.

2. How do you create the Azure Bot resource and choose an identity type?

In the Azure portal, select Create a resource, search for “bot,” and choose the Azure Bot card (source).

Azure Bot Service

The identity type you pick here is the single biggest decision in this whole process, because Microsoft deprecated multi-tenant bot creation:

“Multi-tenant bot creation will be deprecated after July 31, 2025. Existing multi-tenant bots will continue to function, but new multi-tenant bot creation will no longer be supported after that date. To ensure continued support, use single-tenant or user-assigned managed identity going forward.”

There are three identity options, set through the MicrosoftAppType value:

Identity typeMicrosoftAppTypeSDK language supportConfig note
User-assigned managed identityUserAssignedMSIC#, JavaScript, PythonLeave MicrosoftAppPassword blank
Single-tenantSingleTenantC#, JavaScript, PythonStandard app registration
Multi-tenantMultiTenantAll SDKs, including JavaLeave MicrosoftAppTenantId blank; new creation no longer supported

User-assigned managed identity and single-tenant aren’t just unsupported in other SDK languages — Microsoft states plainly that they “are not supported in other SDK languages, Bot Framework Composer, Bot Framework Emulator, or Dev Tunnels.” If you’re on Java, multi-tenant is your only option, since the Java SDK doesn’t support the other two.

Where those identity settings live depends on your language:

LanguageConfig file
C#appsettings.json
JavaScript.env
Javaapplication.properties
Pythonconfig.py

Two more things worth knowing before you click Create. First, Web App Bot and Bot Channels Registration resource types can no longer be created — only the newer Azure Bot resource can — though any existing resources you already have keep working. Second, if data residency matters to you, local data residency is currently available in the West Europe and Central India regions; choose it under Project details when you create the resource.

3. How do you set the messaging endpoint and test locally?

Point your bot’s messaging endpoint at wherever it actually runs: https://<your-host>/api/messages. While you’re developing, that host needs to be reachable from the internet even though the bot is running on your machine.

The Microsoft 365 Agents Toolkit handles this for you — it includes debug tunneling for agents and bots built on Dev Tunnels, so you can run and debug directly from VS Code (source). ngrok still works and still shows up in plenty of samples, but it’s now the manual, secondary path rather than the default.

Watch for this: Dev Tunnels does not support the user-assigned managed identity or single-tenant app types. If you followed the recommendation in step 2 and created a single-tenant or user-assigned-managed-identity bot, you cannot debug it through the Agents Toolkit’s built-in Dev Tunnels — you’ll need ngrok or another manual tunnel for local testing instead.

Whichever tunnel you use, whitelist token.botframework.com in your domain settings so your bot can complete authentication.

4. How do you build the Teams app manifest?

Package your bot as a Teams app with a manifest that declares it. The current GA schema version is 1.30:

{
  "$schema": "https://developer.microsoft.com/json-schemas/teams/v1.30/MicrosoftTeams.schema.json",
  "manifestVersion": "1.30",
  "id": "<your-app-id>",
  "version": "1.0.0",
  "developer": {
    "name": "Contoso",
    "websiteUrl": "https://contoso.com",
    "privacyUrl": "https://contoso.com/privacy",
    "termsOfUseUrl": "https://contoso.com/terms"
  },
  "name": { "short": "Contoso Bot", "full": "Contoso Support Bot" },
  "description": { "short": "Answers support questions.", "full": "Answers support questions in Microsoft Teams." },
  "icons": { "color": "color.png", "outline": "outline.png" },
  "accentColor": "#0078D4",
  "bots": [
    {
      "botId": "<your-bot-id>",
      "scopes": ["team", "personal"],
      "supportsFiles": true
    }
  ],
  "validDomains": ["contoso.com"]
}

(Schema reference)

Two things that trip people up here. manifestVersion is pinned to the schema you referenced — the 1.30 schema only accepts "1.30", so bump both together or neither. And validDomains is not an auth allowlist: it lists the domains your tab content is allowed to load from, so put your own app domain there, not token.botframework.com. Add a local tunnel domain only while testing, and strip it from the package you actually ship.

The schema also requires manifestVersion, version, id, developer, name, description, icons, and accentColor at the top level — a bot-only manifest that omits them will fail validation before anyone sees your bot.

5. How do you upload the app to Teams?

There are three distinct ways to get your packaged app into Teams, and each needs different permissions:

  1. Upload to yourself or a single team. In the Teams client, go to Apps → Manage your apps → Upload an app. This is dev-scope sideloading — no admin role required on your part, assuming your tenant’s policy allows it (see the next step) (source).
  2. Org app catalog. In the Teams admin center, go to Teams apps → Manage apps and upload it there. Users can also submit an app for approval, which an admin then moves from Submitted to Published. This surface requires Teams admin access (source).
  3. Teams Store / Microsoft commercial marketplace. This goes through Partner Center, and an app published to the Teams Store also lists on the commercial marketplace. This is the path that triggers store validation, covered in step 7 (source).

6. How do you get the bot past admin policy?

Whether sideloading even works is governed by policy, not by what permissions you personally hold. Three settings decide it: the org-wide custom app setting, the app setup policy that controls “Upload custom apps,” and the team-level setting. If any one of them blocks custom apps, your upload fails even with a correctly built manifest — check with whoever owns Teams admin policy in your tenant before assuming it’s a bug on your end (source).

7. How do you get through Teams Store validation?

If you’re publishing to the Teams Store, two validation rules will catch you if you’re not ready for them.

Schema version matters for store submission, not just for the manifest to parse:

“Starting July 2026, new Teams Store submissions for channel-enabled apps must use app manifest schema version 1.25 or later. To use app manifest schema version 1.25 or later, update your app manifest and add "supportsChannelFeatures": "tier1" to declare channel feature support.”

And your bot’s responsiveness is a store requirement, not just good UX:

“Bots must respond to user commands within two seconds or display a typing indicator.”

Build the typing indicator in before you submit — a bot that goes quiet while it thinks fails review (source).

What it costs

Sending messages through Teams itself carries no per-message charge at the Azure Bot Service level: Microsoft Teams is a standard channel, and standard channel messages are billed at $0.00 per 1,000. If you also expose the same bot through a premium channel — Direct Line or web chat, for example — those are billed separately, at $0.50 per 1,000 messages on the S1 tier, with a free allotment included at no charge (pricing).

That covers the messaging layer only. You still pay for the compute that actually runs your bot — App Service, Azure Functions, or whatever you host it on — regardless of how many messages it sends through Teams.

Monitoring and updating your bot

Once it’s live, wire up Azure Application Insights and watch three things: response times, usage patterns (peak times, most-used commands), and error rates. Set up dashboards and alerts so you catch problems before users report them.

For updates, treat the bot like any other production service: test in a staging environment first, ship during off-peak hours, and keep a rollback plan ready in case something breaks. Document what changed, and if the update is visible to users, say so through a Teams announcement.

Where nBold fits

nBold doesn’t build or deploy bots — that part is entirely your Azure and Teams work, described above. The connection is what happens after: once a bot or agent starts rolling out to many teams, each of those teams still needs a workspace to land in. If those workspaces are set up ad hoc, your carefully built bot ends up plugging into a different channel structure, naming convention, or permission model every time.

nBold provisions Teams workspaces from governed templates, so a new app or agent has a consistent, predictable structure to plug into across every team it’s added to, regardless of who created that team or when.

FAQs

Is the Bot Framework SDK still supported for building new Teams bots?

No. Microsoft has archived the Bot Framework SDK and Bot Framework Emulator on GitHub, and support tickets stop being serviced after December 31, 2025. For a new bot, start on the Microsoft 365 Agents SDK, the Teams SDK, or Copilot Studio instead.

Which identity type should I choose when creating an Azure Bot resource?

Use single-tenant or user-assigned managed identity. Microsoft deprecated multi-tenant bot creation after July 31, 2025, though existing multi-tenant bots keep working. Single-tenant and user-assigned managed identity are only supported in the C#, JavaScript, and Python SDKs.

Can I debug a single-tenant Teams bot through Dev Tunnels?

No. Dev Tunnels does not support the user-assigned managed identity or single-tenant app types, so a bot created with either identity cannot be tunneled through Dev Tunnels for local testing. Plan your local testing approach before you pick an identity type, not after.

Does sending messages through Microsoft Teams cost anything in Azure Bot Service?

No. Microsoft Teams is a standard channel, and standard channel messages are billed at $0.00 per 1,000. Premium channels such as Direct Line are billed separately at $0.50 per 1,000 messages on the S1 tier. You still pay for the compute that hosts your bot.

Which app manifest schema version should I use to publish a Teams bot?

Use schema version 1.30, the current GA version. Store submissions for channel-enabled apps must use schema version 1.25 or later starting July 2026, with supportsChannelFeatures set to tier1 declared in the manifest.