SOLVED
Home

Teams Creation using a Template via Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-326656%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326656%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F162106%22%20target%3D%22_blank%22%3E%40Renato%20Rossetti%3C%2FA%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F67646%22%20target%3D%22_blank%22%3E%40Nick%20Botha%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI've%20recently%20been%20blogging%20about%20how%20to%20provision%20Teams%20using%20PowerShell%20to%20call%20the%20Microsoft%20Graph%2C%20then%20calling%20this%20from%20Flow%2C%20I've%20posted%20the%20first%203%20stories%20here%20%3A-%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20%3CA%20href%3D%22https%3A%2F%2Fregarding365.com%2Fcreate-a-new-team-from-microsoft-flow-61a361ee328a%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ECreating%20a%20Team%20from%20Flow%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E2.%20%3CA%20href%3D%22https%3A%2F%2Fregarding365.com%2Fadd-a-tab-to-a-teams-channel-in-flow-6bebb4935313%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EAdding%20a%20Tab%20to%20a%20Teams%20Channel%20from%20Flow%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E3.%20%3CA%20href%3D%22https%3A%2F%2Fregarding365.com%2Fdelete-a-tab-using-microsoft-flow-ea0c560d49ef%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EDeleting%20a%20Tab%20from%20Flow%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThere%20are%20other%20things%20coming%2C%20the%20Teams%20roadmap%20talks%20about%20Template%20Teams%20coming.%20There%20is%20a%20graph%20call%20at%20the%20moment%20to%20create%20a%20new%20Team%20based%20on%20another%2C%20but%20I've%20not%20found%20it%20to%20be%20very%20useful%20as%20typically%20I%20want%20to%20change%20the%20tabs%20etc.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326502%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326502%22%20slang%3D%22en-US%22%3E%3CP%3ENo%2C%20there%20is%20still%20no%20parameter%20to%20use%20a%20existing%20template%20from%20powershell!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fteams%2Fnew-team%3Fview%3Dteams-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fteams%2Fnew-team%3Fview%3Dteams-ps%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CFONT%3E%2F%20Adam%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-326496%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-326496%22%20slang%3D%22en-US%22%3Eare%20there%20any%20news%20for%20teams%20creation%20from%20Powershell%3F%3CBR%20%2F%3Ethank%20you%20in%20advance%3CBR%20%2F%3Er%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191657%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191657%22%20slang%3D%22en-US%22%3EYou%20should%20in%20a%20few%20months%20be%20able%20to%20create%20a%20team%20based%20on%20an%20existing%20team%20from%20within%20Teams%2C%20choosing%20what%20to%20bring%20into%20the%20new%20team.%20Check%20this%20announcement%20for%20more%20about%20the%20APIs%20coming%3A%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams-Blog%2FBuild-and-manage-tailored-apps-for-the-enterprise-using-the%2Fba-p%2F190580%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams-Blog%2FBuild-and-manage-tailored-apps-for-the-enterprise-using-the%2Fba-p%2F190580%3C%2FA%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191462%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191462%22%20slang%3D%22en-US%22%3EThis%20would%20be%20world%20class.%20Am%20I%20correct%20that%20they%20are%20entering%20summer%20now%20%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191460%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191460%22%20slang%3D%22en-US%22%3ESo%20this%20has%20nothing%20to%20do%20with%20creating%20unique%20templates%20%3F%3CBR%20%2F%3EI%20am%20busy%20researching%20a%20solution%20to%20automate%20the%20creation%20of%20new%20Teams%20and%20by%20calling%20on%20a%20template%20would%20be%20the%20perfect%20scenario.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191458%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191458%22%20slang%3D%22en-US%22%3EUsing%20new-team%20-template%20EDU_class%20will%20give%20you%20a%20new%20class%20team%20on%20EDU%20tenants%20with%20an%20assignment%20tab%2C%20OneNote%20class%20notebook%20etc%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191418%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191418%22%20slang%3D%22en-US%22%3EAbility%20to%20create%20Team%20Templates%20and%20create%20Teams%20from%20those%20templates%20is%20not%20available%20yet%20but%20it's%20coming%20with%20the%20Teams%20API%20to%20be%20released%20by%20Microsoft%20during%20summer%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-906036%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-906036%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F178440%22%20target%3D%22_blank%22%3E%40Steven%20Collier%3C%2FA%3E%26nbsp%3B%20is%20there%20currently%20a%20way%20to%20create%20a%20template%20from%20another%20Team%20using%20the%20data%20that%20was%20created%20inside%20as%20well%20as%20the%20structure%3F%26nbsp%3B%26nbsp%3B%20Thanks%20for%20any%20direction%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-191404%22%20slang%3D%22en-US%22%3ETeams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-191404%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E*I%20hope%20this%20is%20the%20correct%20area%20to%20post.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20creating%20a%20New-Team%20via%20Powershell%2C%20has%20anyone%20come%20across%20or%20used%20the%20%22-Template%22%3F%3C%2FP%3E%3CP%3EDoes%20anyone%20know%20if%20i%20can%20create%20a%20Template%20that%20i%20can%20reference%20when%20creating%20a%20new%20Team%20as%20seen%20in%20the%20below%20image.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-191404%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESettings%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-906364%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-906364%22%20slang%3D%22en-US%22%3ENo%2C%20but%20You%20can%20copy%20files%20and%20folders%20vis%20Microsoft%20Flow%20after%20the%20Teams%20template%20is%20provisioned%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-906571%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-906571%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72542%22%20target%3D%22_blank%22%3E%40adam%20deltinger%3C%2FA%3E%26nbsp%3B%26nbsp%3B%20Thanks%20for%20that%20suggestion%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-913170%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-913170%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F423839%22%20target%3D%22_blank%22%3E%40InBoiseToo%3C%2FA%3E%26nbsp%3Bif%20you%20take%20the%20same%20approach%20of%20using%20Runbooks%20triggered%20from%20Flow%20you%20can%20script%20basically%20anything%20once%20you%20find%20the%20right%20API.%20For%20example%20for%20my%20customers%20I%20have%20an%20extension%20on%20those%20scripts%20that%20allows%20my%20to%20duplicate%20a%20template%20team%2C%20copy%20all%20the%20files%2C%20copy%20all%20the%20plans%20and%20tasks%2C%20and%20post%20initial%20messages.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1023274%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20Creation%20using%20a%20Template%20via%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1023274%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20is%20the%20Team%20Powershell%20version%20can%20use%20the%20parameter%20%22Template%22%20for%20Education%20tenant%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ee.g.%20New-Team%20-Template%20EDU_Class%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Nick Botha
Occasional Contributor

Hi,

 

*I hope this is the correct area to post.

 

When creating a New-Team via Powershell, has anyone come across or used the "-Template"?

Does anyone know if i can create a Template that i can reference when creating a new Team as seen in the below image.

Teams_Template.JPG

 

13 Replies
Solution
Ability to create Team Templates and create Teams from those templates is not available yet but it's coming with the Teams API to be released by Microsoft during summer
Using new-team -template EDU_class will give you a new class team on EDU tenants with an assignment tab, OneNote class notebook etc
So this has nothing to do with creating unique templates ?
I am busy researching a solution to automate the creation of new Teams and by calling on a template would be the perfect scenario.
This would be world class. Am I correct that they are entering summer now ?
You should in a few months be able to create a team based on an existing team from within Teams, choosing what to bring into the new team. Check this announcement for more about the APIs coming: https://techcommunity.microsoft.com/t5/Microsoft-Teams-Blog/Build-and-manage-tailored-apps-for-the-e...
are there any news for teams creation from Powershell?
thank you in advance
r

No, there is still no parameter to use a existing template from powershell!

 

https://docs.microsoft.com/en-us/powershell/module/teams/new-team?view=teams-ps

 

/ Adam

@Renato Rossetti @Nick Botha 

 

I've recently been blogging about how to provision Teams using PowerShell to call the Microsoft Graph, then calling this from Flow, I've posted the first 3 stories here :-

 

1. Creating a Team from Flow

2. Adding a Tab to a Teams Channel from Flow

3. Deleting a Tab from Flow

 

There are other things coming, the Teams roadmap talks about Template Teams coming. There is a graph call at the moment to create a new Team based on another, but I've not found it to be very useful as typically I want to change the tabs etc.

 

@Steven Collier  is there currently a way to create a template from another Team using the data that was created inside as well as the structure?   Thanks for any direction

No, but You can copy files and folders vis Microsoft Flow after the Teams template is provisioned

@adam deltinger   Thanks for that suggestion

@InBoiseToo if you take the same approach of using Runbooks triggered from Flow you can script basically anything once you find the right API. For example for my customers I have an extension on those scripts that allows my to duplicate a template team, copy all the files, copy all the plans and tasks, and post initial messages. 

 

What is the Team Powershell version can use the parameter "Template" for Education tenant?

 

e.g. New-Team -Template EDU_Class