In order to do the following configuration to add Team for class-specific course in Moodle to Microsoft Team, you must connect Moodle with Office 365. Read this guide – How to connect Moodle to office 365 and then you can proceed with the steps below.