PnP icon indicating copy to clipboard operation
PnP copied to clipboard

[PnP] Modern team site has the same ID

Open honb opened this issue 5 years ago • 1 comments

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?

honb avatar Feb 24 '20 04:02 honb

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 [email protected] -TimeZone 4 -Template STS#0

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

kachihro avatar Apr 13 '20 00:04 kachihro