You can create a link or code for joining a Microsoft Team that you own, allowing others that you invite can easily find and join your team.
You can use this functionality to create a link or code for a person you want to invite to your team. Subsequently, that person can simply paste the link into any web browser or enter the code into their Teams session (using the "Join or create a team" button) to join your team.
Please note, guests can't join a team via a link or code.
This Microsoft Teams functionality is available to staff owners of a team.
If you are a team owner, please follow the instructions from Microsoft here.