Last Updated March 28, 2014
Description
This post describes how to configure the SharePoint Server 2013 Subscription Settings Service Application using PowerShell.
Solution
1) Document the Naming Convention
Document a naming convention for each of the Subscription Settings Service Application components.
Example:
Application Pool Service Account: Domain\SvcAccount (this should already be created)
Application Pool: SvcApp_SPServiceApplicationPool_03 (this should already be created)
Service Application: SvcApp_SPSubscriptionSettingsServiceApplication_01
Service Application Database: SvcApp_SPSubscriptionSettingsServiceApplication_01_DB_01
Service Application Proxy: The Proxy is named automatically by SharePoint
2) Open the SharePoint 2013 Management Shell as Administrator.
3) Verify the Name of the Application Pool.
PS C:\ Get-SPServiceApplicationPool | Select Name
4) Set the Service Application Pool in a variable.
$SvcAppPool03 = Get-SPServiceApplicationPool "SvcApp_SPServiceApplicationPool_03"
5) Create the Service Application and assign it to the Application Pool.
$SvcApp = New-SPSubscriptionSettingsServiceApplication -ApplicationPool $SvcAppPool03 -Name "SvcApp_SPSubscriptionSettingsServiceApplication_01" -DatabaseName "SvcApp_SPSubscriptionSettingsServiceApplication_01_DB_01" -DatabaseServer "MSSQL Client Alias"
6) Verify the Service Application.
PS C:\ Get-SPServiceApplication | Select Name
5) Create the Service Application Proxy and assign it to the Service Application.
$SvcAppProxy = New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication $SvcApp
It does not appear that the name of the Proxy can be set using the cmdlet. SharePoint will name the Proxy automatically.
7) Verify Service Application Proxy.
PS C:\ Get-SPServiceApplicationProxy | Select Name
8) Start the Service Instance.
Get-SPServiceInstance | where{$_.TypeName -eq "Microsoft SharePoint Foundation Subscription Settings Service"} | Start-SPServiceInstance
References
Microsoft TechNet (2012). New-SPSubscriptionSettingsServiceApplication. Retrieved November 27, 2012 from http://technet.microsoft.com/en-us/library/ff607823.aspx.
Microsoft TechNet (2012). Service application cmdlets in SharePoint 2013. Retrieved November 27, 2012 from http://technet.microsoft.com/en-us/library/ee906561.aspx.
Microsoft TechNet (2012). SharePoint 2013 - Service Applications. Retrieved November 27, 2012 from http://social.technet.microsoft.com/wiki/contents/articles/12512.sharepoint-2013-service-applications.aspx.
No comments:
Post a Comment