Forum Discussion
When creating multiple channels within a newly created team (Folders are not created in SharePoint)
Since Teams provisions multiple resources across different workloads, the process can take a while (even up to 24h) to complete. If you want to provision folders/files immediately, use the corresponding SPO tools (CSOM or the Graph API endpoints).
VasilMichev you're right that provision of teams sometimes can take up to 24 hours, but after running the command "New-TeamChannel" a folder should be created directly in SharePoint Online. In this case i created a script (see attachment) with and iteration to create multiple channels with different names. Folders are not created in SharePoint Online, if i run this command directly in PowerShell the specific folder is created directly.
It's possible to reproduce this issue with the following two commands (first wait until the first command is finished) and then run the second one
$team = New-Team -DisplayName "TestTechCommunity"
New-TeamChannel -GroupId $team.groupId -Displayname "test"
In this scenario the channel is visible in teams but if you look in SharePoint, no folder is created.