Set-SPAppAutoProvisionConnection

アプリケーションのプロビジョニング接続を設定します。

構文

WebHostEndPoint

Set-SPAppAutoProvisionConnection
    -ConnectionType <ConnectionTypes>
    -EndPoint <String>
    [-AssignmentCollection <SPAssignmentCollection>]
    [-SiteSubscription <SPSiteSubscriptionPipeBind>]
    [<CommonParameters>]

WebHostSetup

Set-SPAppAutoProvisionConnection
    -ConnectionType <ConnectionTypes>
    -EndPoint <String>
    -Password <String>
    -Username <String>
    [-AssignmentCollection <SPAssignmentCollection>]
    [-SiteSubscription <SPSiteSubscriptionPipeBind>]
    [<CommonParameters>]

WebHostCredential

Set-SPAppAutoProvisionConnection
    -ConnectionType <ConnectionTypes>
    -Password <String>
    -Username <String>
    [-AssignmentCollection <SPAssignmentCollection>]
    [-SiteSubscription <SPSiteSubscriptionPipeBind>]
    [<CommonParameters>]

Remove

Set-SPAppAutoProvisionConnection
    [-Remove]
    [-AssignmentCollection <SPAssignmentCollection>]
    [-SiteSubscription <SPSiteSubscriptionPipeBind>]
    [<CommonParameters>]

説明

このコマンドレットには、複数のパラメーター セットが含まれています。 使用できるのは、1 つのパラメーター セットのパラメーターだけであり、異なるパラメーター セットのパラメーターを組み合わせることはできません。 パラメーター セットの使用法に関する詳しい情報については、「コマンドレットのパラメーター セット」を参照してください。

Set-SPAppAutoProvisionConnection コマンドレットを使用して、指定されたアプリのプロビジョニング接続設定を設定します。

Windows PowerShell for SharePoint 製品のアクセス許可と最新情報については、「SharePoint Server コマンドレット」のオンライン ドキュメントをご覧ください。

例

例 1

Set-SpAppAutoProvisionConnection -ConnectionType RemoteWebHost -EndPoint https://SPremotewebhost -Password passname -Username <username>

この例では、使用するリモート Web ホストを構成し、この機能を使用するアプリを既定のサイト サブスクリプション サーバーにプロビジョニングします https://SPremotewebhost.

例 2

C:\PS>$subscription = Get-SPSiteSubscription https://Contoso.com

Set-SPAppAutoProvisionConnection -ConnectionType RemoteWebHost -EndPoint https://SPremotewebhost -Password passname -Username <username> -SiteSubscription $subscription

この例では、使用するリモート Web ホストを構成し、この機能を使用するアプリをプロビジョニングして、サイトからサーバーへのサイト サブスクリプション Contoso.com https://SPremotewebhost.

例 3

Set-SPAppAutoProvisionConnection -ConnectionType RemoteWebHost -EndPoint https://SPremotewebhost

この例では、既定のサイト サブスクリプション用に既に構成されているリモート Web ホスト サーバーのエンドポイント https://SPRemotewebhost 更新します。

例 4

Set-SPAppAutoProvisionConnection -ConnectionType RemoteWebHost -Remove

この例では、既定のサイト購読のリモート Web ホスト構成を削除します。

パラメーター

-AssignmentCollection

適用対象: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

適切な破棄を行うためにオブジェクトを管理します。 SPWeb や SPSite などのオブジェクトの使用によって大量のメモリが使用される場合があるので、Windows PowerShell スクリプトでこれらのオブジェクトを使用するには適切なメモリ管理が必要です。 メモリの解放が必要になった場合は、SPAssignment オブジェクトを使用して、変数へのオブジェクトの割り当てとオブジェクトの破棄を行うことができます。 割り当てコレクションまたは Global パラメーターが使用されていない場合、SPWeb、SPSite、または SPSiteAdministration オブジェクトが使用されていると、オブジェクトは自動的に破棄されます。

Global パラメーターが使用されている場合は、オブジェクトはすべてグローバル ストアに格納されます。 Stop-SPAssignment コマンドを使用してオブジェクトの使用または破棄を直接行わないと、メモリ不足のシナリオになる場合があります。

パラメーターのプロパティ

型:SPAssignmentCollection
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:True
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-ConnectionType

適用対象: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

プロビジョニングする接続の種類を指定します。

パラメーターのプロパティ

型:ConnectionTypes
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

WebHostEndPoint
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
WebHostSetup
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
WebHostCredential
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-EndPoint

適用対象: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

プロビジョニング接続のエンドポイントを指定します。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

WebHostEndPoint
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
WebHostSetup
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Password

適用対象: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

プロビジョニング接続のパスワードを指定します。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

WebHostSetup
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
WebHostCredential
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Remove

適用対象: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

アプリケーションの自動プロビジョニング接続を削除します。

パラメーターのプロパティ

型:SwitchParameter
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

Remove
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-SiteSubscription

適用対象: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

プロビジョニング接続を関連付けるサイト コレクションを指定します。

パラメーターのプロパティ

型:SPSiteSubscriptionPipeBind
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-Username

適用対象: SharePoint Server 2013、SharePoint Server 2016、SharePoint Server 2019

接続のユーザー名を指定します。

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

WebHostSetup
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False
WebHostCredential
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

CommonParameters

このコマンドレットは、共通パラメーター -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction、-WarningVariable をサポートします。 詳細については、「about_CommonParameters」を参照してください。