Proxy groups in SharePoint

A Proxy Group is a mechanism which defines the relationship between a web application and the proxy (or connection) for a service application. This proxy enables the web applications associated with the Proxy Group to consume services (Managed Metadata, Search, User Profiles, etc.) from the service application.

By default when you install a new Farm, you will only have one Proxy Group and that group is called “ default”.

Whenever you create a new Service Application in Central Administration, this new service application will automatically be added to this “ Default Proxy Group”. When you create a new service application via PowerShell, the new service application will NOT automatically be assigned to the Default or any other Proxy group.

To see the available Proxy groups in your SharePoint 2013 Farm, you can run the following command in the SharePoint 2013 management shell (run as administrator)

Get‐SPServiceApplicationProxyGroup

And if you want to see them with all service application proxies

Get‐SPServiceApplicationProxyGroup | Format‐Table ‐wrap

To create a new proxy group and define your own name, use the following command;

New-SPServiceApplicationProxyGroup -Name "new name of your proxy group"

A Service Application Proxy can be associated with multiple Proxy Groups using PowerShell. Also, a Proxy Group is NOT required to host each and every available Service Application available within the farm.

In order to associate a Service Application to a proxy via PowerShell . Use Get-SPServiceApplicationProxy
with a where clause to obtain the identity of the service application.

$SAProxy = Get‐SPServiceApplicationProxy | ? {$_.DisplayName ‐eq "Name of Service Application"}

You can then use this variable in the Add-SPServiceApplicationProxyGroupMember cmdlet to add the Service Application’s proxy to the proxy group you want to

Add‐SPServiceApplicationProxyGroupMember "name of proxy group" ‐Member $SAProxy
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s