You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case where the actual WebApplication is using port 443 or any port other that 80, the resulting config, where port property is not specified, causes SharePoint to generate a SPWebApplication with a randomly generated port.
To resolve, suggest:
<# Removing port will cause randomly generated port value, don't do thisif($results.WebAppURl.Contains(":") -and $results.Port -and $results.Port -ne 80){ $results.Remove("Port")}#>#If port value is not supplied, assume port 80if(!$results.WebAppUrl.Contains(":") -and!$results.Port)
{
$results.Add("Port",80)
}
The text was updated successfully, but these errors were encountered:
kayodebristol
pushed a commit
to kayodebristol/SharePointDSC.Reverse
that referenced
this issue
Nov 8, 2019
Function Read-SPWebApplication produces DSC Configuration where Port property is blank if actual port doesn't equal 80
In the case where the actual WebApplication is using port 443 or any port other that 80, the resulting config, where port property is not specified, causes SharePoint to generate a SPWebApplication with a randomly generated port.
To resolve, suggest:
The text was updated successfully, but these errors were encountered: