Category : SharePoint Administration | Date : 12/26/2017 5:35:29 AM | ID : BLOG500122

Extend Web Applications in SharePoint 2013

Here we will discuss how we can extend web application in SharePoint 2013. Here we will check how to extend web application sharepoint 2013 powershell. The same steps will work for sharepoint 2016 extend web application.

Why / when should we extend a Web Application in SharePoint 2013?
In any web application we could see 2 type of users Internal or External. If we want to collaborate the SharePoint site with both Internal and External users the best approach from Microsoft is Extend the Web Application. Once we extend the web application we can configure different set of permissions to that users. However both the web applications communicate the same Content DB.

Note: When you extend the Web Application SharePoint creates only a new IIS site in Application Pool and connects with the same content database.
SharePoint & Office 365 Tool. Simple & Easy to Use. 15-Day Trial!

extend web application sharepoint 2013

Business example:
In an organization we have 2 verticals Finance and BPO. If we need share the same web application between verticals without breaking the permissions! The best way is Extending Web Application.
In this article we are going to learn how to extend a web application in both
- Central Administration
- PowerShell Commands

Approach-1: Extending web application in SharePoint 2013 in Central Administration:
Follow the below steps to extend a web application in SharePoint 2013 through Central Administration.
- Log-on to Application Server with FARM administrator account
- Select the required web application under Manage Web Applications
Central Administration -> Application Management -> Manage Web Applications
extend web application sharepoint 2016

extend web application sharepoint 2013 powershell
- Click on Extend option as part ribbon control to extend the web application
- Provide all the details of new extending web application in the model dialogue window

extend web application sharepoint 2016 powershell

Also read some SharePoint 2016 tutorials:

In this model dialogue window do can’t see the below option which you see while creating a new web application as they carry forward from the original Web Application.
1. Database server name
2. Failover DB server name
3. Application services

- Once you provide all the details click on OK at the end of model dialogue window to create the extended web application.

Approach-1: PowerShell Commands:
Follow the below steps to extend the web application using PowerShell commands.
- Log-On to Application server with FARM administrator account
- Open SharePoint 2013 Management Shell with FARM administrator account
- Run the below command to extend the desired web application


$ap = New-SPAuthenticationProvider -ASPNETRoleProviderName roleprovidername -ASPNETMembershipProvider membershipprovidername

Get-SPWebApplication -Identity <Existing Web Application> | New-SPWebApplicationExtension -Name <Web Application Name> -HostHeader <HostHeader> -Zone <Zone> -URL <URL> -Port <Port> -AuthenticationProvider $ap

<Name> is the name of the new IIS web site in the web application. - Mandatory
<HostHeader> is the hostname assigned to this zone of the web application. - Optional
<Zone> is the zone with which this new extension is to be associated. - Mandatory
<URL> is the public URL for this web application zone. - Mandatory
<Port> is the port on which this zone of the web application can be accessed. - Mandatory

$ap = New-SPAuthenticationProvider -ASPNETRoleProviderName roleprovidername -ASPNETMembershipProvider membershipprovidername

Get-SPWebApplication -Identity | New-SPWebApplicationExtension -Name IntranetSite -Zone Intranet -URL -Port 9876 -AuthenticationProvider $ap

Enjoy administration in SharePoint !!!