Create Service Application Proxy Group in SharePoint 2013 using PowerShell

What is Proxy Group in SharePoint?
SharePoint 2016 groups service applications together for consumption of the web application through proxy groups. These are simply groupings of service applications that you can deploy to different web applications. In other words, A proxy group is a link between a web application and service application proxies.

Default proxy group in SharePoint 2013
SharePoint Proxy groups associates service application proxies with Web Applications. By default, SharePoint creates a proxy group called “Default” and adds new service applications to “Default Proxy Group” when created via SharePoint central administration. A Service Application Proxy can be associated with multiple Proxy Groups using PowerShell. Similarly, a Proxy Group is NOT required to host all available Service Applications within the farm.

You can get the available proxy groups by going to Central Admin >> Application Management >> Manage Web Applications >> Select any web application and click on “Service Connections” from the ribbon.

create proxy group in sharepoint 2016 powershell

When you create web applications, you can select “custom” group under service application association, and pick relevant service applications from the list. This lets that specific web application to consume the selected services (and this custom selection is not re-usable!).

While creating Service applications through PowerShell, You have to explicitly specify “-DefaultProxyGroup” switch to add the service application proxy to default group. E.g.

New-SPStateServiceDatabase -Name "StateServiceDB" -DatabaseServer $databaseServerName | New-SPStateServiceApplication -Name $stateSAName | New-SPStateServiceApplicationProxy -Name "$stateSAName Proxy" -DefaultProxyGroup 

Manage Proxy Group in SharePoint 2013 using PowerShell
To provide custom service applications grouping to web applications, you can create a new proxy group! There are no UI in SharePoint to create our own proxy group. So, Lets create a proxy group in SharePoint using PowerShell:

Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

#Get all proxy groups
Get-SPServiceApplicationProxyGroup  | Format-Table -Wrap

Create Proxy Group in SharePoint 2013 using PowerShell 
Proxy groups are created using PowerShell as there is no way to create proxy groups from SharePoint Central Administration. To create a new service application proxy group SharePoint 2013, use:

#Create new proxy group
$NewProxyGroup = New-SPServiceApplicationProxyGroup -Name "Intranet Service Applications"

Add a service application proxy to proxy group: 
Lets add managed metadata service application to the new proxy group we created.

#Get an existing Proxy Group
$ProxyGroup = Get-SPServiceApplicationProxyGroup -Identity "Intranet Service Applications"

#Get an existing Service App proxy to add to New Proxy group
$MMSProxy = Get-SPServiceApplicationProxy | ? { $_.DisplayName -eq "Managed Metadata Service Proxy"}
#Add new member to new Proxy group
Add-SPServiceApplicationProxyGroupMember -identity $NewProxyGroup -Member $MMSProxy

Add all available service application proxies to New Proxy group in SharePoint using PowerShell

#Add All existing Service App proxies to New Proxy group
Get-SPServiceApplicationProxy | ForEach-Object { Add-SPServiceApplicationProxyGroupMember -identity $NewProxyGroup -Member $_ }

How to remove a member from Proxy Group?

#To Remove Proxy group member
Remove-SPServiceApplicationProxyGroupMember -Identity $NewProxyGroup -Member $MMSProxy

Remove a Proxy Group in SharePoint using PowerShell

#Remove a Group Group
Remove-SPServiceApplicationProxyGroup -Identity "Intranet Service Applications" 

Here is the screenshot of new proxy group created:

sharepoint 2013 create proxy group PowerShell

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

One thought on “Create Service Application Proxy Group in SharePoint 2013 using PowerShell

  • Thanks a lot, solved my issue.


Leave a Reply

Your email address will not be published. Required fields are marked *