How to create language specific team using powershell ?

%3CLINGO-SUB%20id%3D%22lingo-sub-2263501%22%20slang%3D%22en-US%22%3EHow%20to%20create%20language%20specific%20team%20using%20powershell%20%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2263501%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20have%20to%20create%20100%2B%20team%20with%20different%20language%20like%20Chinese%2C%20Germany%2C%20Dutch%2C%20Japanese%2C%20English%20etc%2C%20however%2080%25%20of%20team%20will%20be%20used%20in%20english.%3C%2FP%3E%3CP%3EWe%20have%20the%20CSV%20list%20of%20proposed%20team%20and%20their%20language%20information.%20We%20want%20to%20create%20team%20depending%26nbsp%3B%20on%20language.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20best%20approach%20for%20this%20and%20how%20can%20we%20do%20using%20PowerShell%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegards%3C%2FP%3E%3CP%3EAvian%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2263501%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Frequent Contributor

We have to create 100+ team with different language like Chinese, Germany, Dutch, Japanese, English etc, however 80% of team will be used in english.

We have the CSV list of proposed team and their language information. We want to create team depending  on language.

 

What is the best approach for this and how can we do using PowerShell?

 

Regards

Avian

4 Replies
I suppose you can create the M365 Groups first (you can specify a language there) and team-ify them later. More robust option is to use the templates functionality, as explained for example here: https://office365itpros.com/2021/03/10/microsoft-updates-teams-powershell-module-2-0/
Best option is to use Graph API, if you are familiar with it.
I visited the url suggested by you and also understand the new template functionality. I used getGet-CsTeamTemplateList functionality, it is showing all the existing but following first two templates are not appearing.
/api/teamtemplates/v1.0/d84de63f-26bb-4c8e-a438-fa5b99ac5c5a/Tenant/en-US
/api/teamtemplates/v1.0/9f90e23d-a361-4caf-ba79-9886adc93c68/Tenant/en-US

I am not sure why they are not appearing. To extract the properties of source template I need to run following command

Get-CsTeamTemplate -OdataId "/api/teamtemplates/v1.0/d84de63f-26bb-4c8e-a438-fa5b99ac5c5a/Tenant/en-US" > Template.json

I need this odataid d84de63f-26bb-4c8e-a438-fa5b99ac5c5a of my tenant. Is there any other way to get or Am I missing anything?

Secondly you recommended better to use GraphAPI, can you suggest some url?

Avian


The list of templates might be different, depending on the type of tenant you have. It will also list templates your organization created, as in the case of the template you are trying to use above (it's a template Tony created for his own tenant).

You can always create a new one from scratch and set the required properties/resources, including language.

Here's also the Graph reference: https://docs.microsoft.com/en-us/MicrosoftTeams/get-started-with-teams-templates
Thanks, I just changed the templare as STS#0, it is working as expected.