Skip to content

SPAlternateUrl

Brian Farnhill edited this page Jun 2, 2016 · 19 revisions

Parameters

Parameter Attribute DataType Description Allowed Values
WebAppUrl Key String The URL of the web application to apply the alternate URL to
Zone Key String The Zone to use for the alternate URL Default, Intranet, Extranet, Custom, Internet
Url Write String The new alternate URL
Ensure Write string Present ensures the URL is set for this zone on this web app, Absent ensures it is removed Present, Absent
InstallAccount Write String POWERSHELL 4 ONLY: The account to run this resource as, use PsDscRunAsAccount if using PowerShell 5

Description

This resource is used to define an alternate access mapping URL for a specified web application.

Example

SPAlternateUrl CentralAdminAAM
{
    WebAppUrl            = "http://sharepoint1:9999"
    Zone                 = "Intranet"
    Url                  = "https://admin.sharepoint.contoso.com"
    PsDscRunAsCredential = $SPSetupAccount
}
Clone this wiki locally