Publish-SPServiceApplication

지정한 로컬 서비스 응용 프로그램을 팜 외부에서 공유합니다.

Syntax

Publish-SPServiceApplication
       [-Identity] <SPServiceApplicationPipeBind>
       [-AssignmentCollection <SPAssignmentCollection>]
       [-Confirm]
       [-Description <String>]
       [-InfoLink <Uri>]
       [-WhatIf]
       [<CommonParameters>]

Description

cmdlet은 Publish-SPServiceApplication Identity 매개 변수로 지정된 로컬 서비스 애플리케이션을 팜 외부에 게시합니다.

SharePoint 제품용 Windows PowerShell에 대한 사용 권한 및 최신 정보는 SharePoint Server Cmdlets를 참조하세요.

예제

---------------예제---------------

Publish-SPServiceApplication 053c34be-d251-488c-8e94-644eae94da26 -Description "Connect to this TestServiceApplcation of you want to use FeatureA in your farm" -InfoLink https://testurl

이 예제에서는 서비스 응용 프로그램을 다른 팜에 게시합니다.

서비스 응용 프로그램 GUID는 각 팜에서 고유합니다. cmdlet을 Get-SPServiceApplication 실행하여 서비스 애플리케이션의 GUID를 확인하고 다른 SPServiceApplication cmdlet에 대한 cmdlet의 결과를 Get-SPServiceApplication 사용할 수 있습니다. 예를 들면 Grant-SPServiceApplication다음과 같습니다.

매개 변수

-AssignmentCollection

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.

When the Global parameter is used, all objects are contained in the global store. If objects are not immediately used, or disposed of by using the Stop-SPAssignment command, an out-of-memory scenario can occur.

Type:SPAssignmentCollection
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Confirm

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Description

팜 외부에서 공유할 서비스 응용 프로그램을 설명합니다. 값을 지정하지 않으면 값은 공백이 됩니다.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-Identity

팜 외부에서 공유할 서비스 응용 프로그램의 GUID를 지정합니다.

형식은 12345678-90ab-cdef-1234-567890bcdefgh 형식의 유효한 GUID여야 합니다.

Type:SPServiceApplicationPipeBind
Position:1
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-InfoLink

Specifies the link to more information about the service application to share outside the farm. If no link is specified, no link is made available.

형식은 형식 https://server_name/Site_Name/page_name의 유효한 URL이어야 합니다.

Type:Uri
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition

-WhatIf

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Server Subscription Edition