-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoSPInstallerModule.psm1 - Line 2882 - Fails to get existing web app for HNSC on multiple servers #59
Comments
This also affects lines 2917 and 2924: should be Line 2994: should be: |
Specified in my installer config is:
The localhost is being translated in the script to be the server running it. Perhaps this is not the best practice? |
It's not best practice to use the server name or http://localhost as a SharePoint URL. Use a real DNS name instead, different from the server name. |
What is your scenario? I build multi server environment over the weekend but have not seen this issue. Any thing different may be ?
Get Outlook for Android<https://aka.ms/ghei36>
…________________________________
From: Brian Lalancette <[email protected]>
Sent: Tuesday, March 31, 2020 12:09:03 PM
To: brianlala/AutoSPInstaller <[email protected]>
Cc: Subscribed <[email protected]>
Subject: Re: [brianlala/AutoSPInstaller] AutoSPInstallerModule.psm1 - Line 2882 - Fails to get existing web app for HNSC on multiple servers (#59)
It's not best practice to use the server name or http://localhost as a SharePoint URL. Use a real DNS name instead, different from the server name.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#59 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHLKYY2DTY4GOXQQ4GFXB4TRKIIR7ANCNFSM4LWEUVAQ>.
|
Line 2882 - AutoSPInstallerModule.psm1:
$getSPWebApplication = Get-SPWebApplication -Identity $fullUrl -ErrorAction SilentlyContinue
Should be:
$getSPWebApplication = Get-SPWebApplication -Identity $webAppName -ErrorAction SilentlyContinue
This way it will pick up the web application using the name instead of url, which for host named site collections is created using the machine name.
The text was updated successfully, but these errors were encountered: