Register-PnPAppCatalogSite
SYNOPSIS
Required Permissions
- SharePoint: Access to the SharePoint Tenant Administration site
Creates a new App Catalog Site and sets this site as the Tenant App Catalog
SYNTAX
Register-PnPAppCatalogSite -Url <String> -Owner <String> -TimeZoneId <Int32> [-Force]
[-Connection <PnPConnection>]
DESCRIPTION
Allows to create a new App Catalog Site and sets this site as the Tenant App Catalog.
EXAMPLES
EXAMPLE 1
Register-PnPAppCatalogSite -Url "https://yourtenant.sharepoint.com/sites/appcatalog" -Owner admin@domain.com -TimeZoneId 4
This will create a new appcatalog site if no app catalog is already present. Use -Force to create a new appcatalog site if one has already been registered. If using the same URL as an existing one and Force is present, the current/existing appcatalog site will be deleted.
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
-Force
If specified, and an app catalog is already present, a new app catalog site will be created. If the same URL is used the existing/current app catalog site will be deleted first.
Type: SwitchParameter
Parameter Sets: (All)
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Owner
The login account of the user designated to be the admin for the site, e.g. user@domain.com
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-TimeZoneId
Use Get-PnPTimeZoneId to retrieve possible timezone values
Type: Int32
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
The full url of the app catalog site to be created, e.g. https://yourtenant.sharepoint.com/sites/appcatalog
Type: String
Parameter Sets: (All)
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False