Register-SPOHubSite [-Site] <SpoSitePipeBind> [<CommonParameters>]
Use this cmdlet to register an existing site collection as a hub site.
This cmdlet is currently in preview and is subject to change. It is not currently supported for use in production environments.
A maximum of 50 hub sites may be created per tenant.
This example registers the marketing site on Contoso as hub site.
Specifies the URL of the site collection to which to enable the hub site features.
|Accept pipeline input:||False|
|Accept wildcard characters:||False|
|Applies to:||SharePoint Online|
If the site doesn’t exist, this cmdlet returns a “File not found” error.
If the site is already a hub site, this cmdlet returns a "This site is already a HubSite" error.
If the site is already associated with another hub site, this cmdlet returns a "This site is currently associated with a HubSite" error. You'll need to run the Remove-SPOHubSiteAssociation cmdlet first before you can make the site a hub site.