Home

Teams SharePoint Site Provisioning - Mixed behavior

%3CLINGO-SUB%20id%3D%22lingo-sub-547917%22%20slang%3D%22en-US%22%3ETeams%20SharePoint%20Site%20Provisioning%20-%20Mixed%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-547917%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20context%2C%20we%20are%20looking%20at%20creating%20a%20one%20stop%20shop%20PowerShell%20script%20to%20create%20a%20Microsoft%20Team%2C%20add%20members%2C%20setup%20the%20basic%20settings%20we%20want%20and%20then%20based%20on%20the%20usage%20case%20for%20that%20team%2C%20put%20both%20the%20mailbox%20and%20SharePoint%20site%20on%20hold%20via%20eDiscovery.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20issue%20we%20have%2C%20is%20that%20not%20every%20team%20we%20create%20gets%20a%20fully%20provisioned%20SharePoint%20site%20until%20someone%20presses%20the%20%22Files%22%20tab%20in%20the%20teams%20client.%20-%20but%20this%20seems%20to%20be%20quite%20hit%20and%20miss.%20-%20(edited%20PowerShell%20Output%20below)%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20910px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F112572iA12237E719BB9865%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019_05_08_13_31_25_Windows_PowerShell.png%22%20title%3D%222019_05_08_13_31_25_Windows_PowerShell.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%2C%20two%20questions%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E1.%20What%20causes%20this%20behavior%3F%20is%20it%20expected%3F%20if%20you%20navigate%20to%20what%20should%20be%20the%20correct%20URL%20for%20one%20of%20the%20sites%20%22Missing%22%20a%20sharepointsiteurl%20entry%2C%20you'll%20get%20a%20404%20-%20go%20into%20the%20Teams%20client%2C%20press%20the%20files%20tab%2C%20and%20voila%2C%20shortly%20that%20URL%20then%20works%20and%20navigates%20to%20the%20SharePoint%20site.%20the%20fact%20that%20the%20site%20is%20auto%20provisioned%2090%25%20of%20the%20time%20makes%20this%20hard%20to%20account%20for%20in%20a%20script.%20(we%20can't%20put%20a%20URL%20on%20hold%20if%20it%20doesn't%20exist%2C%20and%20therefore%20isn't%20indexed)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E2.%20Is%20there%20any%20way%20of%20%22forcing%22%20the%20creation%20of%20the%20SharePoint%20site%3F%20-%20I've%20tried%20using%20the%20various%20cmdlets%20to%20get%20for%20example%20a%20channels%20email%20address%20(and%20failed)%20in%20the%20hope%20sending%20an%20email%20to%20a%20channel%20would%20provision%20the%20site%2C%20as%20it%20has%20to%20store%20the%20email..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20ideas%20%2F%20explanations%20as%20to%20what's%20happening%20under%20the%20hood%20welcome!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20in%20advance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBen%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-547917%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGroups%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eprovisioning%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-548345%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20SharePoint%20Site%20Provisioning%20-%20Mixed%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-548345%22%20slang%3D%22en-US%22%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F10189%22%20target%3D%22_blank%22%3E%40Ben%20Harris%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThis%20seems%2C%20according%20to%20the%20TC%20string%20below%2C%20to%20be%20expected%20behaviour.%20A%20number%20of%20us%20have%20come%20across%20this%20a%20few%20months%20back%20when%20trying%20to%20automate%20with%20Flow%20and%20the%20Graph.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams%2FCopy-content-to-new-team-via-flow%2Fm-p%2F353582%3Fadvanced%3Dfalse%26amp%3Bcollapse_discussion%3Dtrue%26amp%3Bq%3Dgraph%2520files%2520tab%2520teams%26amp%3Bsearch_type%3Dthread%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2FMicrosoft-Teams%2FCopy-content-to-new-team-via-flow%2Fm-p%2F353582%3Fadvanced%3Dfalse%26amp%3Bcollapse_discussion%3Dtrue%26amp%3Bq%3Dgraph%2520files%2520tab%2520teams%26amp%3Bsearch_type%3Dthread%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EGeneral%20consensus%20seem%20to%20be%20provisioning%20ahead%20of%20time%20in%20SPO%20and%20then%20automating%20the%20rest.%20We%20are%20all%20waiting%20to%20bring%20this%20up%20at%20the%20next%20Teams%20AMA.%3CBR%20%2F%3E%3CBR%20%2F%3EHope%20that%20answers%20your%20question%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-548636%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20SharePoint%20Site%20Provisioning%20-%20Mixed%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-548636%22%20slang%3D%22en-US%22%3E1%3A%20yes%2C%20expected%20behavior%3CBR%20%2F%3E%3CBR%20%2F%3E2%3A%20with%20flow%2C%20create%20a%20file%20in%20the%20channel%20named%20so%20folder%20%2C%20not%20copy%20or%20other%20method!%20The%20folder%20will%20now%20be%20provisioned!%3CBR%20%2F%3ECopy%20content%20now%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-548653%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20SharePoint%20Site%20Provisioning%20-%20Mixed%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-548653%22%20slang%3D%22en-US%22%3E%E2%80%9CUse%20SharePoint%20%E2%80%9Ccreate%20a%20file%E2%80%9D%20action%20in%20the%20url%20for%20the%20channelfolder%E2%80%9D%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-551308%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20SharePoint%20Site%20Provisioning%20-%20Mixed%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-551308%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%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F169605%22%20target%3D%22_blank%22%3E%40Christopher%20Hoard%3C%2FA%3E%26nbsp%3BThanks%20for%20this%2C%20forgive%20me%20if%20I'm%20being%20thick%20here%2C%20but%20those%20solutions%20look%20to%20be%20channel%20folder%20related%3F%20our%20issue%20is%20one%20step%20larger%2C%20in%20that%20the%20entire%20SPO%20site%20isn't%20provisioned%20(aka%20you%20get%20a%20404%20error)%20so%20with%20flow%20we%20wouldn't%20be%20able%20to%20make%20a%20file%20somewhere%20that%20doesn't%20exist%3F%20-%20I'm%20glad%20others%20are%20seeing%20this%20behavior%20though%2C%20out%20of%20interest%20is%20there%20a%20user-voice%20for%20this%2C%20or%20a%20date%20for%20the%20next%20AMA%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBen.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-551369%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20SharePoint%20Site%20Provisioning%20-%20Mixed%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-551369%22%20slang%3D%22en-US%22%3EAh%20okay!%20This%20never%20happened%20to%20me!%20The%20team%20site%20should%20be%20provisioned%20anyway%20and%20is%20not%20related%20to%20teams%20itself!%20Just%20the%20channel%20folders!%20How%20do%20you%20create%20the%20team%3F%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-551376%22%20slang%3D%22en-US%22%3ERe%3A%20Teams%20SharePoint%20Site%20Provisioning%20-%20Mixed%20behavior%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-551376%22%20slang%3D%22en-US%22%3EYeah%2C%20agree%20with%20Adam%20it%20could%20be%20how%20you%20are%20creating%20the%20team%20but%20it%20also%20sounds%20like%20a%20bug%20if%20it%E2%80%99s%20sporadic.%20Would%20consider%20raising%20this%20as%20a%20bug%20on%20Teams%20uservoice%20and%20raising%20a%20ticket%20to%20MS%20Support%3CBR%20%2F%3E%3CBR%20%2F%3EI%20would%20be%20interested%20to%20see%20the%20outcome%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20next%20AMA%20is%20still%20to%20be%20announced%3CBR%20%2F%3E%3CBR%20%2F%3EBest%2C%20Chris%3C%2FLINGO-BODY%3E
Ben Harris
Occasional Contributor

For context, we are looking at creating a one stop shop PowerShell script to create a Microsoft Team, add members, setup the basic settings we want and then based on the usage case for that team, put both the mailbox and SharePoint site on hold via eDiscovery.

 

The issue we have, is that not every team we create gets a fully provisioned SharePoint site until someone presses the "Files" tab in the teams client. - but this seems to be quite hit and miss. - (edited PowerShell Output below)
2019_05_08_13_31_25_Windows_PowerShell.png

 

So, two questions:

 

1. What causes this behavior? is it expected? if you navigate to what should be the correct URL for one of the sites "Missing" a sharepointsiteurl entry, you'll get a 404 - go into the Teams client, press the files tab, and voila, shortly that URL then works and navigates to the SharePoint site. the fact that the site is auto provisioned 90% of the time makes this hard to account for in a script. (we can't put a URL on hold if it doesn't exist, and therefore isn't indexed)

 

2. Is there any way of "forcing" the creation of the SharePoint site? - I've tried using the various cmdlets to get for example a channels email address (and failed) in the hope sending an email to a channel would provision the site, as it has to store the email..

 

Any ideas / explanations as to what's happening under the hood welcome!

 

Thanks in advance.

 

Ben

6 Replies
Hi @Ben Harris,

This seems, according to the TC string below, to be expected behaviour. A number of us have come across this a few months back when trying to automate with Flow and the Graph.

https://techcommunity.microsoft.com/t5/Microsoft-Teams/Copy-content-to-new-team-via-flow/m-p/353582?...

General consensus seem to be provisioning ahead of time in SPO and then automating the rest. We are all waiting to bring this up at the next Teams AMA.

Hope that answers your question

Best, Chris
1: yes, expected behavior

2: with flow, create a file in the channel named so folder , not copy or other method! The folder will now be provisioned!
Copy content now
“Use SharePoint “create a file” action in the url for the channelfolder”

@adam deltinger @Christopher Hoard Thanks for this, forgive me if I'm being thick here, but those solutions look to be channel folder related? our issue is one step larger, in that the entire SPO site isn't provisioned (aka you get a 404 error) so with flow we wouldn't be able to make a file somewhere that doesn't exist? - I'm glad others are seeing this behavior though, out of interest is there a user-voice for this, or a date for the next AMA?

 

Thanks

 

Ben.

Ah okay! This never happened to me! The team site should be provisioned anyway and is not related to teams itself! Just the channel folders! How do you create the team?
Yeah, agree with Adam it could be how you are creating the team but it also sounds like a bug if it’s sporadic. Would consider raising this as a bug on Teams uservoice and raising a ticket to MS Support

I would be interested to see the outcome

The next AMA is still to be announced

Best, Chris
Related Conversations