In the list of applications, select Admin.
From the menu, select Settings -> Services and Add-ons.
Find Microsoft Teams and enable External Applications.
Set the Allow External Applications in Microsoft Teams option to Enabled.