Forum Discussion
Cannot provision SP modern site with Group programmatically - "Alias is already in use"
Hi Massimo,
Could it be a site with the same URL / alias still exists in the Site Collection recycle bin? Does this error occur randomly for you or are you frequently deleting / recreating your modern SP sites with the same name / alias?
Hi Paul,
it could very well be the case, but I'm not 100% sure.
Being these site collections, I'm looking at the Recycle Bin from (old) Admin Center, the list of deleted sites from New Preview Admin Center, and Exchange Admin Center.
In the last one, in my experience, a full historical list of groups provisioned is maintained: I don't see any item with assigned alias '13015' there, and for other groups that have been deleted I can correctly re-assign that alias. So I'd say it happens randomly.
I don't think there're other places then to look and find for match.
Thanks for your answer, and thinking together.
Cheers
Massimo