Coder Social home page Coder Social logo

Comments (1)

frankqianms avatar frankqianms commented on August 10, 2024

Here is a workaround to replace the step 4 in deploy-qna-maker-services.md.

  1. Create a configuration table in your AAD Storage Instance.
    image

The table name must be ConfigurationInfo.

  1. After creating the configuration table, click Add Entity

image

  1. Edit the configuration table to add Team ID and Knowledge base ID: (PartitionKey=ConfigurationInfo, RowKey=KnowledgeBaseId/TeamId). The property name of data should be "Data".
    (i) If you want to insert a KnowledgeBaseId, then set RowKey= KnowledgeBaseId
    image

(ii) You need to use the following C# code snippet to trans your raw team link string to a storable one.

using System.Text.RegularExpressions;
using System.Web;
public class Example {
   public static void Main() {
      var teamIdDeepLink = "<YOUR_TEAM_LINK>"; // For example: "https://teams.microsoft.com/l/team/19%3a9M4Dz_-DQsKsqV0MfFjmpRz4Np0dcidgmIv6OkWGMwM1%40thread.tacv2/conversations?groupId=fee6b738-335e-4882-9105-92c9fd6d71c6&tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47"
      var match = Regex.Match(teamIdDeepLink, @"teams.microsoft.com/l/team/(\S+)/");

      Console.Write(HttpUtility.UrlDecode(match.Groups[1].Value));
   }
}

After run the code above, you'll get a string in your terminal like this (the green string):
image

Then go to Azure portal, find the storage table in your resource group, and add a new entity. Set RowKey=TeamId, Data=<the_green_string_above>
image

Hope it works!

from teams-toolkit-samples.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.