I had a requirement recently to create a Team in Microsoft Teams from a trigger in CDS. This video shows how I accomplished this using Power Automate and the Microsoft Graph API.
It also shows how to create an app registration in Microsoft Azure AD.
source