Configuration of the MS Teams was relatively simple. It allows anyone in an organization to create new Teams. It sounds like a great feature. But some organizations are against the dark IT growth.
The growth of unknown Teams in the tenant can become an IT nightmare. Due to the concern the creation of MS Teams was limited unless a member of a specific group. This is how I accomplished this requirement. One would expect a simple toggle switch in the admin site, but Microsoft has not implemented that simple option. It needs to be managed through powershell.
Here is an example of the code I used to implement the changes. https://github.com/lougerritse/lougerritse/blob/main/M365_Group_Creators.ps1