Hi ,
Thanks for reaching out to Microsoft Q&A.
This is a known issue with Azure Bot Service when using automatic app registration, especially in certain regions (East US is one of them). The error AADSTS700016
means that the App ID created during "automatic" registration is not propagating correctly into the Bot Framework tenant directory that the channel service uses. That explains why your bot can receive messages (the incoming webhook does not require token validation), but cannot respond (outbound requires token exchange against AAD and Bot Framework, which fails because the app is missing).
Here is what you need to do:
Root Cause
- When you select "Create new Microsoft App ID" during azure bot creation, the portal automatically provisions an App Registration in your tenant.
- In some cases, that app registration is not properly synced to the Bot Framework service directory (a separate multitenant directory used by Bot Service).
- As a result, outbound calls from your bot to the channel service fail with AADSTS700016: Application not found.
Workaround:
- Manually create an App Registration in AAD:
- Go to Azure Active Directory > App registrations > New registration.
- Give it a name (ex:
bot-teams-us-prod-manual
). - Supported account types: Single tenant (or Multitenant if you plan crosstenant usage).
- Redirect URI: leave blank (not needed for bots).
- Register the app.
- Generate a client secret:
- In the App Reg, go to Certificates & Secrets > New client secret.
- Copy the secret value.
- Update the Bot Channel Registration:
- Go to your Azure Bot resource (
bot-teams-us-prod
). - Under Configuration > Microsoft App ID and password, replace the auto gen App ID with your manually created App ID.
- Paste the client secret.
- Go to your Azure Bot resource (
- Update your local bot code:
- In
.env
, update & restart the botMicrosoftAppId=<your-manual-app-id> MicrosoftAppPassword=<your-client-secret>
- In
Please 'Upvote'(Thumbs-up) and 'Accept' as answer if the reply was helpful. This will be benefitting other community members who face the same issue.