Connect-EntraTeams
SYNOPSIS
Connect to Microsoft Teams using a service principal and Graph token.
SYNTAX
DESCRIPTION
The `Connect-EntraTeams` function authenticates with Microsoft Teams using a service principal. It retrieves credentials (AppId and AppSecret) from PasswordState and connects to Microsoft Teams using the specified tenant ID.
EXAMPLES
EXAMPLE 1
Connects to Microsoft Teams using the service principal credentials retrieved from PasswordState.
Define AppId, secret and scope, your tenant name and endpoint URL