Setting up the Teams Bot Integration
5 min
for integrating microsoft teams with , on premise users should first setup the environment by downloading the package and executing powershell script what the powershell script does? creates the directory in the inetpub folder creates a new application pool and sets item property for it creates a new web application and sets item property for it silently installs the required application, as in you might not get any prompts to proceed with the installation copies the required binaries to the destination folder creates the appsetting json once the ipaddress/machine name/local host name is provided setting up the central config api key log in to the centralconfig > configure application > security controls > apikeys find the centralconfigapikey as shown below and copy the value paste the copied value in the appsettings json file for the centralconfigapikey for example, central config api key"=”xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx” executing the powershell script download the zip file to a relevant folder in your machine extract the zip file open powershell as administrator go to the location where the powershell script is located, that is, the location where you extracted the zip file run the script \teamsbot ps1 you will be prompted for the appserver as well as the central config ipaddress/ machine name/ localhost name name/ localhost enter the appropriate address/machine name/localhost the configuration is done troubleshooting incorrect ipaddress/machine name/local host name if you provide incorrect ip address/machine name/local host name, open the appsetting json file from the folder inetpub >teams bot service and replace the appserveripaddress with the correct one example of the appsetting json file {"microsoftappid"="";"microsoftapppassword"="";"ipcmurl"= "http //$appserveripaddress/heat/serviceapi/ipcmservice asmx"; "workflowurl"= "http //$appserveripaddress/heat/serviceapi/workflowservice asmx"; "configurl"= "http //$centralconfigipaddress/centralconfig/configserviceapi asmx"; "retrievetenantloglevel ws url"= "http=//$centralconfigipaddress/centralconfig/retrievetenantloglevel ashx"; "enablecentrallogging"= false; "loggingservice ws url"= "http //$appserveripaddress/heat logging service/api/loggingservice/heatservicemanagementlogging"; "elapsedsecondstoflushlog"= 60; "itemsizetoflushlog"= 1000; "logsettingcachetimeoutinminutes"= 5; "sendlogfilelocation"= "c \logs"; "writelogfilelocation"= "c \logs"; "sendlogwaitinterval"= 300; "writelogwaitinterval"= 300; "enablelogging"= true; "cachetimeout"= "30"; "isonpremise" false; ”centralconfigapikey”=”” } make sure that boolean values (true/false) don't not have double quotes to know the execution policy list run the command ps c \users\administrator>get executionpolicy list sample image of the policy list to set the execution policy once the powershell script is executed successfully, execute the command set executionpolicy executionpolicy “provide previous value” scope localmachine to set the execution policy sample image of setting execution policy
