Get-SPAppAutoProvisionConnection
Published: July 16, 2012
Applies to: SharePoint Foundation 2013 | SharePoint Server 2013 Enterprise
Returns provision connection settings for an app.
Get-SPAppAutoProvisionConnection [-AssignmentCollection <SPAssignmentCollection>] [-ConnectionType <RemoteWebHost>] [-SiteSubscription <SPSiteSubscriptionPipeBind>]
Parameters
| Parameter | Required | Type | Description | ||
|---|---|---|---|---|---|
| AssignmentCollection | Optional | Microsoft.SharePoint.PowerShell.SPAssignmentCollection | Manages objects for the purpose of proper disposal. Use of objects, such as SPWeb or SPSite, can use large amounts of memory and use of these objects in Windows PowerShell scripts requires proper memory management. Using the SPAssignment object, you can assign objects to a variable and dispose of the objects after they are needed to free up memory. When SPWeb, SPSite, or SPSiteAdministration objects are used, the objects are automatically disposed of if an assignment collection or the Global parameter is not used.
| ||
| ConnectionType | Optional | Microsoft.SharePoint.Administration.SPAppCmdlets.GetAppAutoProvisionCmdlet+ConnectionTypes | Specifies the connection type to provision the app. | ||
| SiteSubscription | Optional | Microsoft.SharePoint.PowerShell.SPSiteSubscriptionPipeBind | Specifies the site collection from which to return the provision connection. |
Detailed Description
Use the Get-SPAppAutoProvisionConnection cmdlet to return the provision connection settings for an app.
Input Types
Return Types
---------------EXAMPLE 1----------
Get-SpAppAutoProvisionConnection
This example returns the entire app auto provisioning connection information for the default site subscription.
---------------EXAMPLE 2----------
$subscription = Get-SPSiteSubscription http://Contoso.com
Get-SPAppAutoProvisionConnection -SiteSubscription $subscription -ConnectionType RemoteWebHost
This example returns the remote web host app auto provisioning connection information for the site subscription for Contoso.com site
Change History
| Date | Description |
|---|---|
| July 16, 2012 | Initial publication |

Note: