Description
This post describes how to configure the SharePoint Server 2013 State Service Application using PowerShell.
Solution
1) Document the Naming Convention.
Document a naming convention for each of the State Service Application components.
Example:
Application Pool Service Account: Domain\SvcAccount (this should already be created)
Application Pool: SvcApp_SPServiceApplicationPool_02 (this should already be created)
Service Application: SvcApp_SPStateServiceApplication_01
Application Pool Service Account: Domain\SvcAccount (this should already be created)
Application Pool: SvcApp_SPServiceApplicationPool_02 (this should already be created)
Service Application: SvcApp_SPStateServiceApplication_01
Service Application Database: SvcApp_SPStateServiceApplication_01_DB_01
Service Application Proxy: SvcApp_SPStateServiceApplication_01_Proxy_01
2) Open the SharePoint 2013 Management Shell as Administrator.
3) Verify the Name of the Application Pool.
Get-SPServiceApplicationPool | Select Name
4) Set the Service Application Pool in a variable.
$SvcAppPool02 = Get-SPServiceApplicationPool "SvcApp_SPServiceApplicationPool_02"
5) Create the Service Application and assign it to the Application Pool.
3) Verify the Name of the Application Pool.
Get-SPServiceApplicationPool | Select Name
4) Set the Service Application Pool in a variable.
$SvcAppPool02 = Get-SPServiceApplicationPool "SvcApp_SPServiceApplicationPool_02"
5) Create the Service Application and assign it to the Application Pool.
New-SPStateServiceDatabase -Name SvcApp_SPStateServiceApplication_01_DB_01 |
New-SPStateServiceApplication -Name SvcApp_SPStateServiceApplication_01 |
New-SPStateServiceApplicationProxy -Name SvcApp_SPStateServiceApplication_01_Proxy_01 | -DefaultProxyGroup
Get-SPStateServiceApplication | Select Name
7) Verify State Service Database.
Get-SPStateServiceDatabase | Select Name
9) Verify State Service Application Proxy.
Get-SPStateServiceApplicationProxy | Select Name
References
Microsoft TechNet (2012). New-SPStateServiceApplication. Retrieved November 27, 2012 from http://technet.microsoft.com/en-us/library/ff608084.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.
Microsoft TechNet (2012). State service and session state cmdlets in SharePoint 2013. Retrieved November 27, 2012 from http://technet.microsoft.com/en-us/library/ee890113.aspx.
1 comment:
I noticed after executing the command, the Service Application proxy was not in the service application associations. ca -> manage web apps -> selected webapp -> Service Connections button in ribbon.
Reviewed POSH and determined there was what appeared to be a pipe on the line before the para-meter -defaultgroup
Removed applicationproxy, removed service application, removed database
Re-executed and voila, me happy it worked.
Post a Comment