Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.

[PnP] Modern team site has the same ID #1896

Open
honb opened this issue Feb 24, 2020 · 1 comment
Open

[PnP] Modern team site has the same ID #1896

honb opened this issue Feb 24, 2020 · 1 comment

Comments

@honb
Copy link

honb commented Feb 24, 2020

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?

@kachihro
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants