You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/general-development/site-collection-app-catalog.md
+5-15Lines changed: 5 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -67,18 +67,13 @@ Alternatively, you can use the [Office 365 CLI](https://sharepoint.github.io/off
67
67
To create a site collection app catalog, use the `Add-SPOSiteCollectionAppCatalog` cmdlet passing the site collection where the app catalog should be created as the `-Site` parameter.
68
68
69
69
```powershell
70
-
# get a reference to the site collection where the
Alternatively, use the `spo site appcatalog add` command if you are using the Office 365 CLI:
@@ -92,26 +87,21 @@ After executing this script, the **Apps for SharePoint** library will be added t
92
87
### Disable the site collection app catalog
93
88
94
89
> [!NOTE]
95
-
> Before running the following script, connect to your SharePoint Online tenant using the `Connect-SPOService` cmdlet for the SharePoint Online PowerShell or `spo connect` command for the Office 365 CLI.
90
+
> Before running the following script, connect to your SharePoint Online tenant using the `Connect-SPOService` cmdlet for the SharePoint Online PowerShell, `Connect-PnPOnline -Url https://<tenant>-admin.sharepoint.com -UseWebLogin` for PnP PowerShell or `spo connect` command for the Office 365 CLI.
96
91
97
92
To disable the site collection app catalog in your site collection, use the `Remove-SPOSiteCollectionAppCatalog` cmdlet passing the site collection where the app catalog should be disabled as the `-Site` parameter. Alternatively, if you have your site collection's ID, you can use the `Remove-SPOSiteCollectionAppCatalogById` cmdlet instead.
98
93
99
94
> [!NOTE]
100
95
> Despite the naming, the `Remove-SPOSiteCollectionAppCatalog` and `Remove-SPOSiteCollectionAppCatalogById` cmdlets don't remove the site collection app catalog from the site collection. Instead, they disable it so that it's not possible to deploy or use any solutions deployed in it.
101
96
102
97
```powershell
103
-
# get a reference to the site collection in which
104
-
# the site collection app catalog should be disabled
Alternatively, use PnP PowerShell to remove the site app catalog functionality from your site after having connected to the SharePoint Online Admin site:
0 commit comments