Extend a Web Application
Scenario/Problem: You need to extend a web application to a new zone.
Solution: Use the New-SPWebApplicationExtension cmdlet.
If you need to extend a web application to a different zone, that zone must not already be in use. New-SPWebApplicationExtension requires only the web application identity, the name of the new website that will extend the web application, and the zone. However, it is a good idea to include the new URL and HostHeader that the web application extension will use for the zone. Listing 5.6 shows an example command-line entry for extending the main SharePoint web application.
Listing 5.6. Extending a Web Application Example
New-SPWebApplicationExtension -Identity "SharePoint - 80" -Name "SPInternet ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access