Microsoft Teams Bot for A-Ops

In this guide we will showcase how to create a teams application that would allow A-Ops to interact with teams through an a-ops teams bot.

Download A-Ops Teams application (.zip)

Requirements

  • Teams Integration
  • Administrator access to microsoft tenancy

Steps

  1. Create new A-Ops bot Group:
    1. Create a new group within a-ops called: aops-bot
    2. Add a role: cluster.messages.trigger
  2. Create a new A-Ops bot User:
    1. Add the user to the newly created aops-bot group
    2. set it as primary group
    3. Generate and store the API key of this user
  3. Add an MS Teams Bot object in a conduct, store the bot reference in the Advanced tab
  4. Login to dev.teams.microsoft.apps
  5. Create a new bot
    1. Name: aops-bot
    2. Configure the new bot
    3. The Endpoint address can be constructed by: https://prod-eu-west-1.a-ops.cloud/integration/msteams/bot/<API-key>/<Bot-Reference>
    4. Navigate to the client secrets tab, and add a client secret
    5. Once completed edit the newly created bot, and change the icon within the bot framework portal https://dev.botframework.com/bots
    6. Click on the Settings tab
    7. Edit the Icon and use the 'color' image within the aops.zip file and save changes
    8. Take a note of the client-ID (bot-id)
  6. Import aops.zip app -> https://dev.teams.microsoft.com/apps
    1. Edit the imported application
    2. Navigate to App Features
    3. Navigate again to App Features, select the newly created bot
    4. Select Personal and Team for the scope of this bot.
    5. Once all the information has been added publish the application to your org.
  7. This will need approval within https://admin.teams.microsoft.com/policies/manage-apps
  8. In teams, add a new app. Search for aops and press add