Register a Microsoft Teams Notification Bot Using Azure Portal

Modified on Mon, 30 Nov at 8:53 AM

TABLE OF CONTENTS


Overview

ManagementStudio uses a customer-owned Microsoft Teams bot to deliver personal notifications, including survey invitations, UAT sign-off requests and engineer event alerts.

The bot is notification-only. It does not accept conversational commands, send messages to Teams channels or use Microsoft Graph chat-message APIs.

What this means for users

Recipients do not install or configure anything themselves. Once a Microsoft 365 administrator has approved the Teams app and its restricted Graph application permission, ManagementStudio is intended to check and install its own notification-only app for an eligible recipient automatically, when needed. The user receives a personal Teams message without a setup wizard, sign-in or action to accept the notification. The app is still technically installed in their personal Teams scope; Microsoft permits the user or tenant administrator to block or remove it.

What the customer configures once

  1. A Microsoft Entra application registration and permission for the app to manage its own Teams installation.

  2. An Azure Bot resource using that application identity.

  3. The Microsoft Teams channel for the bot.

  4. A personal, notification-only Teams app and its publication to the organisation's Teams app catalogue.

  5. The bot credentials and identifiers in ManagementStudio.

An Azure subscription is required for the Azure-managed registration method. ManagementStudio itself remains on the customer's IIS infrastructure. The intended deployment uses outbound HTTPS only from ManagementStudio. A public inbound endpoint must not be exposed simply to complete this guide. Whether the chosen Azure Bot/SDK combination supports the entire lifecycle without an inbound callback remains a required end-to-end validation gate.

1. Prerequisites

Before starting, confirm:

  • An Azure subscription and permission to create Azure Bot resources.

  • Permission to register an application and obtain administrator consent in the customer's Microsoft Entra tenant.

  • A Teams administrator able to publish an approved custom app to the organisation's Teams app catalogue and allow it for the intended user population.

  • An enabled, Teams-licensed test recipient, preferably one who has not previously installed the ManagementStudio Teams app.

  • Outbound HTTPS from the ManagementStudio backend to approved Microsoft Entra, Graph and Teams bot services, subject to the customer's network controls.

  • A ManagementStudio version that explicitly supports Graph self-installation and the validated outbound-only proactive-message path before production activation.

A publicly internet-accessible ManagementStudio IIS endpoint is not an accepted customer prerequisite for the proposed deployment. If the bot configuration requires a public callback and the installed version cannot operate without it, stop and refer the issue to ManagementStudio support; do not open inbound firewall access as a workaround.

Naming convention used in this guide

The names below reflect the customer-facing configuration and may be adapted to an organisation's naming standards. No development-only suffix is required.

ObjectName / guidance
Entra applicationManagementStudio Teams Notifications
Azure resource groupCustomer-approved resource group
Azure Bot handlemanagementstudio-teams-notifications (subject to availability)
Teams app display nameManagementStudio Teams Notify

The Entra application/client ID, Teams manifest App ID, and Teams catalogue-generated App ID are distinct values. Record them separately.


2. Create the Microsoft Entra application registration

Portal: https://entra.microsoft.com/

  1. Sign in to the Microsoft Entra admin centre using the customer's intended tenant.

  2. Navigate to Entra ID → App registrations.

  3. Select New registration.

  4. Enter the name ManagementStudio Teams Notifications.

  5. Under Supported account types, select Accounts in this organisational directory only (Single tenant).

  6. Leave the redirect URI blank; the initial server-to-server integration uses application credentials rather than an interactive user sign-in.

  7. Select Register.

On Overview, record:

ValueWhere to find it
Application (client) IDOverview → Application (client) ID
Directory (tenant) IDOverview → Directory (tenant) ID

Important: Register the application under App registrations, not Enterprise applications. The associated service principal appears under Enterprise applications after registration.

2.1 Grant permission for automatic installation

This replaces any requirement for users to install the Teams app individually.

  1. In the same registration, select API permissions → Add a permission.

  2. Choose Microsoft Graph.

  3. Select Application permissions — not Delegated permissions.

  4. Search for TeamsAppInstallation.ReadWriteSelfForUser.All.

  5. Add that permission.

  6. Select Grant admin consent for [organisation] and confirm.

  7. Verify that the permission shows Granted for [organisation].

This limited application permission allows the authorised application to read, install, update and uninstall itself in users' personal Teams scope, without a signed-in user. It does not grant the application permission to send Graph chat messages or install arbitrary third-party apps.

The Teams manifest must also contain a webApplicationInfo object whose id matches this exact Entra Application (client) ID. That requirement is covered in section 7.

Do not add ChatMessage.Send, Chat.ReadWrite.All, Teamwork.Migrate.All, or broad directory permissions for routine bot notifications.

QA checkpoint

  • Correct tenant and single-tenant application registration verified.
  • Application (client) ID and Directory (tenant) ID recorded.
  • TeamsAppInstallation.ReadWriteSelfForUser.All is listed under Application permissions.
  • Admin consent granted, not merely permission requested.
  • No Graph chat-message permissions added.

3. Create the application's client secret

Remain in the Entra application registration.

  1. Navigate to Certificates & secrets → Client secrets.

  2. Select New client secret.

  3. Enter a description such as ManagementStudio Teams Notifications.

  4. Select an expiry period in accordance with the customer's credential-rotation policy.

  5. Select Add and copy the Value immediately. The Value cannot be retrieved after leaving this page.

Do not confuse the secret Value with the Secret ID. Store the Value in an approved secrets vault until it is entered into ManagementStudio; do not put it in this document, a support ticket, source code or a screenshot.

The current ManagementStudio Teams transport design supports client-secret authentication. Do not select certificate authentication unless the installed product version explicitly supports it. Arrange expiry monitoring and credential rotation before enabling notifications.

QA checkpoint

  • Client secret created and its Value secured.
  • Expiry date and credential owner recorded.
  • No secret entered into source control or configuration notes.

4. Create the Azure Bot resource

Portal: https://portal.azure.com/

  1. Sign in to Azure Portal and select the approved subscription.

  2. Search for Azure Bot or use Create a resource → Azure Bot.

  3. Select Create and complete the configuration.

Azure fieldRequired value
SubscriptionCustomer's approved Azure subscription
Resource groupCustomer-approved resource group
Bot handlemanagementstudio-teams-notifications (or available customer-approved name)
Data residencyApproved region or data-residency option
Pricing tierCustomer-approved tier
Microsoft App ID typeSingle Tenant
Creation typeUse existing app registration
App IDApplication (client) ID from section 2
Tenant ID, if requestedDirectory (tenant) ID from section 2

Do not create a second Entra application at this step.

  1. Select Review + create.

  2. Select Create.

  3. Once deployment completes, select Go to resource.

The Azure Bot is a registration/channel resource. These steps do not deploy or host ManagementStudio in Azure.

QA checkpoint

  • Azure Bot resource created successfully.
  • Bot is Single Tenant and uses the existing application registration.
  • Azure Bot Microsoft App ID equals the Entra Application (client) ID.
  • Subscription and resource group recorded.

7. Create and publish the notification-only Teams application

Portal: https://dev.teams.microsoft.com/

The Azure Bot alone is not an installable Teams app. Create the Teams app once, then publish its app package into the customer's organisation catalogue so ManagementStudio can install it automatically for recipients.

  1. Sign in to the Teams Developer Portal using the same tenant.

  2. Select Apps → New app.

  3. Enter ManagementStudio Teams Notify.

  4. Select Create.

7.1 Configure basic information

Under Configure → Basic information, complete:

Record the Teams manifest App ID. It is different from the Entra Application (client) ID and may also differ from the ID assigned when the app is published to the tenant catalogue.

7.2 Add the existing Azure Bot

  1. Navigate to Configure → App features → Bot.

  2. Choose Enter a bot ID or Existing bot (the wording may vary).

  3. Enter the Entra Application (client) ID from section 2, which is also the Azure Bot Microsoft App ID.

  4. Tick Only send notification.

  5. Tick Personal as the only bot scope.

  6. Leave Team, Group chat, file transfer, audio and video unchecked.

  7. Save.

Do not create a second bot or add commands, conversational features or messaging extensions.

7.3 Verify the notification-only manifest and app identity

Open the manifest using the Developer Portal's app-package editor or downloaded app package. Verify that the following fragment is represented (do not replace the complete manifest with this fragment):

{
  "bots": [
    {
      "botId": "<ENTRA-APPLICATION-CLIENT-ID>",
      "scopes": ["personal"],
      "isNotificationOnly": true
    }
  ],
  "webApplicationInfo": {
    "id": "<ENTRA-APPLICATION-CLIENT-ID>",
    "resource": "<CUSTOMER-CONTROLLED-APPLICATION-RESOURCE-URI>"
  }
}

Required for Graph self-installation: webApplicationInfo.id must exactly match the Entra Application (client) ID used to acquire the Microsoft Graph app-only token. webApplicationInfo.resource must be an appropriate app resource URI controlled by the organisation and accepted by the current Teams manifest schema. Where an Application ID URI is configured under Entra → App registrations → [app] → Expose an API, use the corresponding registered URI. Do not enter a sample company's domain, a customer IIS callback URL or an arbitrary third-party URL. If no suitable value is available, validate the URI choice with ManagementStudio support before publishing; do not guess.

Save, validate and export the complete Teams app package. Confirm it still contains isNotificationOnly: true and personal only.

7.4 Publish the app once to the organisation catalogue

Portal: https://admin.teams.microsoft.com/

A Teams administrator must make the approved app available in the organisation's Teams app catalogue. Publishing is not the same as installing it for every user.

  1. In the Teams Developer Portal, download the validated Teams app package (.zip).

  2. Open the Teams apps → Manage apps.

  3. Select Upload new app (or Actions → Upload new app, depending on the interface).

  4. Upload the Teams app package.

  5. Verify the app appears in the organisation catalogue and is Allowed for the intended recipient population under the customer's Teams app policies/app-centric management controls.

  6. Record the catalogue app ID if exposed. Its Graph teamsApp.id can differ from the Teams manifest App ID (externalId). ManagementStudio must use the catalogue-generated ID for the installation API, not simply assume the manifest GUID is the catalogue ID.

Allow time for Teams catalogue and policy propagation before testing. Do not require recipients to upload or install the app.

QA checkpoint

  • ManagementStudio Teams Notify created with the existing Azure Bot ID.
  • Notification-only and Personal-only manifest settings validated.
  • webApplicationInfo.id matches the Entra Application (client) ID exactly.
  • App resource URI is customer-controlled and schema-valid.
  • App package uploaded to the organisation's Teams app catalogue by an administrator.
  • App is allowed for intended recipients.
  • Manifest App ID and catalogue App ID recorded separately.
  • No end-user app-installation step is required by this guide.

8. Automatic installation for recipients — no user action

Recipients do not manually install ManagementStudio Teams Notify. Once the app is available in the organisation's Teams catalogue and the application permission in section 2 has admin consent, the intended ManagementStudio integration performs the personal installation when needed.

8.1 What ManagementStudio will do automatically

For an eligible recipient with a validated Entra Object ID, the supported ManagementStudio version is intended to:

  1. Authenticate to Microsoft Graph using the Entra application identity, not a signed-in user's delegated session.

  2. Determine whether the ManagementStudio Teams Notify app is already installed in the user's personal Teams scope.

  3. If not, request installation of its own app using TeamsAppInstallation.ReadWriteSelfForUser.All.

  4. Obtain the resulting installation and personal chat reference (or create an allowed personal bot conversation through the supported API).

  5. Send the personal notification through the bot transport, not Graph chat-message posting.

  6. Record the delivery outcome and handle any missing app, blocked user, permissions, installation delay or throttling as a classified result.

These operations use outbound HTTPS from the ManagementStudio backend. There is no user-facing consent prompt or installation wizard as part of the intended deployment. Administrators can still block the app, and a user may remove or block it under Teams policy; ManagementStudio must report that as an unavailable recipient rather than bypassing the restriction.

8.2 Microsoft Graph operations (reference only)

The following Microsoft Graph v1.0 endpoints describe the intended mechanism. Customers are not expected to run these API calls manually; they are included for support and technical QA. The recipient is identified by their validated Entra user Object ID.

PurposeMicrosoft Graph API
Check personal installationGET /users/{user-id}/teamwork/installedApps?$expand=teamsApp&$filter=teamsApp/id eq '{catalog-teams-app-id}'
Install the approved appPOST /users/{user-id}/teamwork/installedApps
Find personal app chatGET /users/{user-id}/teamwork/installedApps/{installation-id}/chat

The installation POST uses an application token and the catalogue app ID in its teamsApp@odata.bind property. A successful request means installation was accepted, not that a notification was delivered. The eventual bot send must be verified separately.

8.3 QA: prove zero-touch behaviour

After the installed ManagementStudio version supports automatic installation:

  1. Select an approved, Teams-licensed test recipient who has not manually installed the ManagementStudio app.

  2. Verify the notification app is present and allowed in the organisation catalogue.

  3. Trigger one explicitly authorised ManagementStudio test notification for that recipient.

  4. Verify that ManagementStudio installs the app and obtains a valid personal conversation without asking the recipient to do anything.

  5. Verify that the notification appears in the correct person's Teams chat.

  6. Repeat with a user who already has the app installed; no unnecessary duplicate installation or message should occur.

  7. Test a blocked/unavailable user and verify a clear, non-sensitive failure rather than an attempted permission bypass.

Do not mark this section complete based only on an Entra admin-consent screen or a successful installation API response. The zero-touch end-to-end delivery is the required acceptance test.

QA checkpoint

  • No recipient manually installed or configured the app.
  • First eligible recipient was automatically installed by ManagementStudio.
  • Personal chat was found/created by a supported mechanism.
  • A real notification reached the intended Teams user.
  • Subsequent sends do not repeat installation unnecessarily.
  • Blocked/unauthorised users fail closed.

9. Configure ManagementStudio Global Settings

When the released ManagementStudio Teams integration is available, enter the following settings using the ManagementStudio administration interface:

ManagementStudio settingValue
Teams_Enabledfalse until setup and validation are approved
Teams_AzureApi_TenantIdEntra Directory (tenant) ID
Teams_AzureApi_AppClientIdEntra Application (client) ID
Teams_AzureApi_AuthModeClientSecret for the supported client-secret configuration
Teams_AzureApi_ClientSecretEntra client-secret Value, entered securely
Teams_AzureApi_CertificateLeave blank unless the installed version supports certificate authentication
Teams_AzureApi_ProxyServerCustomer proxy details, if required

The final integration must also know the Teams catalogue app ID used by Graph to install the app. Where the released ManagementStudio version exposes this setting, enter the catalogue-generated ID, not the Entra Application (client) ID or the Teams manifest App ID. If the installed version has no supported way to provide it, stop and request guidance from ManagementStudio support rather than inventing a setting.

The client secret must be masked after saving and never disclosed by normal configuration APIs or logs. Maintain an expiry/rotation process. The customer's outbound network policy must permit the required Microsoft endpoints.

Microsoft Graph permission: installation only

TeamsAppInstallation.ReadWriteSelfForUser.All is used to manage installation of the ManagementStudio Teams app itself. It is not used to send Teams chat messages. Personal message delivery remains with the Azure-managed notification-only bot.

Do not grant broad chat, migration or directory permissions to make proactive delivery work.

Keep ordinary Teams notification delivery disabled until the release's authorised connection/test workflow and end-to-end outbound-only validation have succeeded.


10. Perform the first live notification test

This section requires a ManagementStudio release that implements Graph automatic installation and outbound-only bot delivery. The previous SDK-only foundation did not yet establish a live Microsoft 365 send. Do not assume the release is ready just because the Azure Bot and Teams app exist.

Before testing:

  • Confirm the intended Entra application, Azure Bot identity and Teams channel all match.

  • Confirm the Teams app is published and allowed in the customer's organisation catalogue.

  • Confirm the TeamsAppInstallation.ReadWriteSelfForUser.All Application permission has administrator consent.

  • Confirm the Teams manifest includes correct webApplicationInfo values.

  • Confirm ManagementStudio's outbound access, bot credentials and required catalogue app ID.

  • Select a Teams-licensed test recipient who has not previously installed the app.

  • Confirm ManagementStudio IIS has no new public inbound firewall rule.

Invoke the product's authorised test-notification function when available. Do not enable mass email/event publishers to perform this first test.

The expected result is a personal Adaptive Card from ManagementStudio Teams Notify.

Validate all of the following:

  1. The test user took no action to install, consent to or configure the app.

  2. The app was installed automatically where needed, or was confirmed already installed.

  3. The intended user, and no one else, received the personal notification.

  4. Title and Markdown body rendered correctly; an optional test OpenUrl button worked.

  5. ManagementStudio recorded the transport result correctly; an HTTP installation success alone was not treated as message delivery.

  6. The customer IIS server remained private, with outbound HTTPS only.

  7. No unrelated email was sent and no duplicate occurred from an ordinary retry.

  8. A user whose app is blocked/unavailable produced a clear failure.

Stop/go gate: If Microsoft requires a reachable inbound bot callback for this customer configuration, or if the app cannot be installed and messaged without user interaction, this deployment architecture is not yet approved for production. Do not expose ManagementStudio IIS or switch on broad notification delivery as a workaround.


11. Troubleshooting

ProblemWhat to check
Azure Bot deployment failsSubscription, resource provider, resource group and selected region
Cannot use existing app registrationEntra Application (client) ID, application ownership and tenant
Teams channel cannot be enabledAzure Bot registration and channel status
App not found for automatic installationHas a Teams admin published it to the organisation catalogue? Has policy propagation completed?
Graph app list is unexpectedly emptyDoes manifest webApplicationInfo.id equal the Entra application ID used for the Graph app-only token? Are the correct tenant and catalogue IDs being used?
Graph installation returns 401/403Check token type (application, not delegated), administrator consent, Graph permission, catalogue availability and Teams app policies
Graph installation returns an existing/conflict responseCheck whether the app is already installed and re-query instead of blindly retrying the POST
App installed but no personal chat foundCheck installation ID, user scope, Graph permission and propagation. An installation accepted response is not proof that the chat is immediately available
Notification not deliveredCheck bot credentials, Microsoft Teams channel, proactive conversation discovery, outbound network access and Microsoft response category
Azure Bot requires a public callbackStop. Do not expose IIS; contact ManagementStudio support about validated outbound-only deployment
Bot authentication failsTenant/client ID, selected credential mode, expired secret or SDK token audience
Recipient unavailableUser's Entra Object ID, Teams licence, app availability, or organisation/user block
403 response from TeamsInspect the specific error; do not treat all 403 responses as tenant mismatch
Wrong recipient or mismatched identityStop sending and review the project-scoped Entra object-ID mapping; never fall back to email/UPN matching
Card sent with no action buttonCheck template button/URL pairing and the personalised-link resolution outcome

A Microsoft Graph 201 Created response means an app-install request was accepted. A bot transport acceptance means the transport accepted the message. Neither proves the user read it.


12. Final configuration record

Record the following in the customer's secure configuration documentation. Do not record client-secret values.

ItemValue
Azure subscription
Resource group
Azure Bot resource name
Microsoft Entra tenant ID
Entra Application (client) ID / Bot ID
Teams manifest App ID
Teams catalogue-generated App ID
App resource URI (webApplicationInfo.resource)
Graph Application permission and admin consentTeamsAppInstallation.ReadWriteSelfForUser.All — Granted / Not granted
Notification-only + Personal scopeYes / No
Organisation catalogue publication / app allowedYes / No
Azure Bot messaging endpoint (if configured)
No public IIS inbound requirement validatedYes / No / Pending
Automatic personal installation validatedYes / No / Pending
Successful zero-touch personal delivery validatedYes / No / Pending
Authentication method
Credential expiry date / rotation owner
Test recipient
First successful delivery date
ManagementStudio version tested

Microsoft reference documentation

Support note: Microsoft documents Graph self-installation and proactive bot messaging. The combination of an Azure-managed bot, no public inbound endpoint, automatic recipient installation and successful proactive delivery from private IIS must be proved in a real tenant before this guide is approved for general production use.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article