TABLE OF CONTENTS
- Overview
- 1. Prerequisites
- 2. Create the Microsoft Entra application registration
- 3. Create the application's client secret
- 4. Create the Azure Bot resource
- 7. Create and publish the notification-only Teams application
- 8. Automatic installation for recipients — no user action
- 9. Configure ManagementStudio Global Settings
- 10. Perform the first live notification test
- 11. Troubleshooting
- 12. Final configuration record
- Microsoft reference documentation
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
A Microsoft Entra application registration and permission for the app to manage its own Teams installation.
An Azure Bot resource using that application identity.
The Microsoft Teams channel for the bot.
A personal, notification-only Teams app and its publication to the organisation's Teams app catalogue.
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.
| Object | Name / guidance |
|---|---|
| Entra application | ManagementStudio Teams Notifications |
| Azure resource group | Customer-approved resource group |
| Azure Bot handle | managementstudio-teams-notifications (subject to availability) |
| Teams app display name | ManagementStudio 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/
Sign in to the Microsoft Entra admin centre using the customer's intended tenant.
Navigate to Entra ID → App registrations.
Select New registration.
Enter the name
ManagementStudio Teams Notifications.Under Supported account types, select Accounts in this organisational directory only (Single tenant).
Leave the redirect URI blank; the initial server-to-server integration uses application credentials rather than an interactive user sign-in.
Select Register.
On Overview, record:
| Value | Where to find it |
|---|---|
| Application (client) ID | Overview → Application (client) ID |
| Directory (tenant) ID | Overview → 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.
In the same registration, select API permissions → Add a permission.
Choose Microsoft Graph.
Select Application permissions — not Delegated permissions.
Search for
TeamsAppInstallation.ReadWriteSelfForUser.All.Add that permission.
Select Grant admin consent for [organisation] and confirm.
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.Allis 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.
Navigate to Certificates & secrets → Client secrets.
Select New client secret.
Enter a description such as
ManagementStudio Teams Notifications.Select an expiry period in accordance with the customer's credential-rotation policy.
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/
Sign in to Azure Portal and select the approved subscription.
Search for Azure Bot or use Create a resource → Azure Bot.
Select Create and complete the configuration.
| Azure field | Required value |
|---|---|
| Subscription | Customer's approved Azure subscription |
| Resource group | Customer-approved resource group |
| Bot handle | managementstudio-teams-notifications (or available customer-approved name) |
| Data residency | Approved region or data-residency option |
| Pricing tier | Customer-approved tier |
| Microsoft App ID type | Single Tenant |
| Creation type | Use existing app registration |
| App ID | Application (client) ID from section 2 |
| Tenant ID, if requested | Directory (tenant) ID from section 2 |
Do not create a second Entra application at this step.
Select Review + create.
Select Create.
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.
Sign in to the Teams Developer Portal using the same tenant.
Select Apps → New app.
Enter
ManagementStudio Teams Notify.Select Create.
7.1 Configure basic information
Under Configure → Basic information, complete:
Short and full app names.
ManagementStudio Teams Notify
Short and full descriptions.
Delivers ManagementStudio Teams notifications
ManagementStudio Notifications delivers personal notifications about IT transformation projects, surveys, UAT sign-offs and other ManagementStudio events. This app sends notifications only and does not accept conversational commands.
Publisher/developer details.
Version: 1.0.0
Company name: ManagementStudio
Privacy policy: https://managementstudio.com/teamsapp/privacy
Terms of use: https://managementstudio.com/teamsapp/tos
Visual branding/icons.
todo
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
Navigate to Configure → App features → Bot.
Choose Enter a bot ID or Existing bot (the wording may vary).
Enter the Entra Application (client) ID from section 2, which is also the Azure Bot Microsoft App ID.
Tick Only send notification.
Tick Personal as the only bot scope.
Leave Team, Group chat, file transfer, audio and video unchecked.
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.
In the Teams Developer Portal, download the validated Teams app package (
.zip).Open the Teams apps → Manage apps.
Select Upload new app (or Actions → Upload new app, depending on the interface).
Upload the Teams app package.
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.
Record the catalogue app ID if exposed. Its Graph
teamsApp.idcan 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 Notifycreated with the existing Azure Bot ID. - Notification-only and Personal-only manifest settings validated.
-
webApplicationInfo.idmatches 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:
Authenticate to Microsoft Graph using the Entra application identity, not a signed-in user's delegated session.
Determine whether the ManagementStudio Teams Notify app is already installed in the user's personal Teams scope.
If not, request installation of its own app using
TeamsAppInstallation.ReadWriteSelfForUser.All.Obtain the resulting installation and personal chat reference (or create an allowed personal bot conversation through the supported API).
Send the personal notification through the bot transport, not Graph chat-message posting.
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.
| Purpose | Microsoft Graph API |
|---|---|
| Check personal installation | GET /users/{user-id}/teamwork/installedApps?$expand=teamsApp&$filter=teamsApp/id eq '{catalog-teams-app-id}' |
| Install the approved app | POST /users/{user-id}/teamwork/installedApps |
| Find personal app chat | GET /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:
Select an approved, Teams-licensed test recipient who has not manually installed the ManagementStudio app.
Verify the notification app is present and allowed in the organisation catalogue.
Trigger one explicitly authorised ManagementStudio test notification for that recipient.
Verify that ManagementStudio installs the app and obtains a valid personal conversation without asking the recipient to do anything.
Verify that the notification appears in the correct person's Teams chat.
Repeat with a user who already has the app installed; no unnecessary duplicate installation or message should occur.
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 setting | Value |
|---|---|
Teams_Enabled | false until setup and validation are approved |
Teams_AzureApi_TenantId | Entra Directory (tenant) ID |
Teams_AzureApi_AppClientId | Entra Application (client) ID |
Teams_AzureApi_AuthMode | ClientSecret for the supported client-secret configuration |
Teams_AzureApi_ClientSecret | Entra client-secret Value, entered securely |
Teams_AzureApi_Certificate | Leave blank unless the installed version supports certificate authentication |
Teams_AzureApi_ProxyServer | Customer 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.AllApplication permission has administrator consent.Confirm the Teams manifest includes correct
webApplicationInfovalues.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:
The test user took no action to install, consent to or configure the app.
The app was installed automatically where needed, or was confirmed already installed.
The intended user, and no one else, received the personal notification.
Title and Markdown body rendered correctly; an optional test
OpenUrlbutton worked.ManagementStudio recorded the transport result correctly; an HTTP installation success alone was not treated as message delivery.
The customer IIS server remained private, with outbound HTTPS only.
No unrelated email was sent and no duplicate occurred from an ordinary retry.
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
| Problem | What to check |
|---|---|
| Azure Bot deployment fails | Subscription, resource provider, resource group and selected region |
| Cannot use existing app registration | Entra Application (client) ID, application ownership and tenant |
| Teams channel cannot be enabled | Azure Bot registration and channel status |
| App not found for automatic installation | Has a Teams admin published it to the organisation catalogue? Has policy propagation completed? |
| Graph app list is unexpectedly empty | Does 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/403 | Check token type (application, not delegated), administrator consent, Graph permission, catalogue availability and Teams app policies |
| Graph installation returns an existing/conflict response | Check whether the app is already installed and re-query instead of blindly retrying the POST |
| App installed but no personal chat found | Check installation ID, user scope, Graph permission and propagation. An installation accepted response is not proof that the chat is immediately available |
| Notification not delivered | Check bot credentials, Microsoft Teams channel, proactive conversation discovery, outbound network access and Microsoft response category |
| Azure Bot requires a public callback | Stop. Do not expose IIS; contact ManagementStudio support about validated outbound-only deployment |
| Bot authentication fails | Tenant/client ID, selected credential mode, expired secret or SDK token audience |
| Recipient unavailable | User's Entra Object ID, Teams licence, app availability, or organisation/user block |
| 403 response from Teams | Inspect the specific error; do not treat all 403 responses as tenant mismatch |
| Wrong recipient or mismatched identity | Stop sending and review the project-scoped Entra object-ID mapping; never fall back to email/UPN matching |
| Card sent with no action button | Check 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.
| Item | Value |
|---|---|
| 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 consent | TeamsAppInstallation.ReadWriteSelfForUser.All — Granted / Not granted |
| Notification-only + Personal scope | Yes / No |
| Organisation catalogue publication / app allowed | Yes / No |
| Azure Bot messaging endpoint (if configured) | |
| No public IIS inbound requirement validated | Yes / No / Pending |
| Automatic personal installation validated | Yes / No / Pending |
| Successful zero-touch personal delivery validated | Yes / 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
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article