pnp/PnP

[PnP] Modern team site has the same ID

honb opened this issue · 1 comments

honb commented

Hi guys,

I tired to create new modern sites by SP: New-PnPSite -Type TeamSite -Title "displayName"
But all created sites has the same ID but creating by UI will resolve this issue.

https://[tenant].sharepoint.com/sites/Site1/_api/web/id ==> Id: xxxxx
https://[tenant].sharepoint.com/sites/Site2/_api/web/id ==> Id: xxxxx

Is this a design or something like that?

This command will create an O365 Group - with a corresponding site collection. I've tried also - and the sites have the same ID - strange.

If you want a 'site collection only' (no group) - instead, use ;
New-PnPTenantSite

New-PnPTenantSite -Title Contoso -Url https://tenant.sharepoint.com/sites/contoso -Owner user@example.org -TimeZone 4 -Template STS#0

https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/new-pnptenantsite?view=sharepoint-ps