Forum Discussion
Massimo Prota
Jul 24, 2018Copper Contributor
Cannot provision SP modern site with Group programmatically - "Alias is already in use"
Hi, I'm building a solution that can provision O365 Groups with associated Modern Team Site and Teams. While trying to create some new Sites with Groups, sometimes the creation fails with the er...
Ryan Dennis
Aug 16, 2018Copper Contributor
I'm seeing the same issue in a customer tenant, no modern sites w/ groups are able to be created. In fact, we're not able to do so using any of the following approaches:
- Programmatically via Azure Function
- Using PNP PowerShell (New-PnPSite)
- Using the modern administration portal Create Site link
Massimo Prota
Aug 21, 2018Copper Contributor
We're now using this approach:
http://johnliu.net/blog/2017/1/create-many-o365-groups-with-powershell-resource-owner-granttype-and-microsoft-graph
so using an AAD app identity with delegated permissions, and calling into MS Graph.
It is in general more reliable than other approaches you mentioned, and we've tried as well. Especially in regards with the associated SP modern site, which gets provisioned in a timely fashion consistently with this approach
Hope it helps