Skip to content

Latest commit

 

History

History
87 lines (61 loc) · 1.7 KB

Add-PnPHubSiteAssociation.md

File metadata and controls

87 lines (61 loc) · 1.7 KB
Module Name schema applicable online version external help file title
PnP.PowerShell
2.0.0
SharePoint Online
PnP.PowerShell.dll-Help.xml
Add-PnPHubSiteAssociation

Add-PnPHubSiteAssociation

SYNOPSIS

Required Permissions

  • SharePoint: Access to the SharePoint Tenant Administration site

Connects a site to a hubsite.

SYNTAX

Add-PnPHubSiteAssociation -Site <SitePipeBind> -HubSite <SitePipeBind> [-Connection <PnPConnection>]
 

DESCRIPTION

Connects an existing site to a hubsite

EXAMPLES

EXAMPLE 1

Add-PnPHubSiteAssociation -Site "https://tenant.sharepoint.com/sites/mysite" -HubSite "https://tenant.sharepoint.com/sites/hubsite"

This example adds the specified site to the hubsite.

PARAMETERS

-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type: PnPConnection
Parameter Sets: (All)

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-HubSite

The hubsite to connect the site to

Type: SitePipeBind
Parameter Sets: (All)

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Site

The site to connect to the hubsite

Type: SitePipeBind
Parameter Sets: (All)

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

RELATED LINKS

Microsoft 365 Patterns and Practices