This repository has been archived by the owner on Jan 19, 2021. It is now read-only.
Feature request: cmdlet to check if "alias" (URL) can be used to create a new site #2695
Closed
1 of 3 tasks
Labels
status:fixed-next-drop
Issue will be fixed in upcoming release.
type:enhancement
New feature or enhancement of existing capability
Reporting an Issue or Missing Feature
Missing Feature
Expected behavior
I want to delete and re-create a site in SPO under the same URL. After deleting the site I want to check if the URL is available for re-use (which may take seconds or up to 24 hours according to the official docs).
Actual behavior
There is no such cmdlet. But apparently there is an API which is used by the tenant site creation UI and some private code in PnP-Sites-Core, too:
https://github.com/pnp/PnP-Sites-Core/blob/93f12b1f342b432a2a99b8bb119508fc7af8cb22/Core/OfficeDevPnP.Core/Sites/SiteCollection.cs#L1034
This could be leveraged to check if a site is available because if not it will suggest a different URL than requested.
Which version of the PnP-PowerShell Cmdlets are you using?
The text was updated successfully, but these errors were encountered: