Skip to content
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
heinrich-ulbricht opened this issue May 28, 2020 · 3 comments
Closed
1 of 3 tasks
Assignees
Labels
status:fixed-next-drop Issue will be fixed in upcoming release. type:enhancement New feature or enhancement of existing capability

Comments

@heinrich-ulbricht
Copy link
Contributor

heinrich-ulbricht commented May 28, 2020

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?

  • PnP PowerShell for SharePoint 2013
  • PnP PowerShell for SharePoint 2016
  • PnP PowerShell for SharePoint Online
@ghost
Copy link

ghost commented May 28, 2020

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

@ghost ghost added the Needs: Triage 🔍 label May 28, 2020
@KoenZomers KoenZomers self-assigned this May 28, 2020
@KoenZomers KoenZomers added status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. type:enhancement New feature or enhancement of existing capability and removed Needs: Triage 🔍 labels May 28, 2020
@KoenZomers
Copy link
Collaborator

Nice idea @heinrich-ulbricht, working on the PR to add this functionality.

@KoenZomers
Copy link
Collaborator

KoenZomers commented May 28, 2020

PR has been filed in PnP Sites Core (pnp/PnP-Sites-Core#2657) and PnP PowerShell (#2698) which adds this functionality.

@KoenZomers KoenZomers added status:fixed-next-drop Issue will be fixed in upcoming release. and removed status:working-on-it Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail. labels May 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status:fixed-next-drop Issue will be fixed in upcoming release. type:enhancement New feature or enhancement of existing capability
Projects
None yet
Development

No branches or pull requests

2 participants