- 
                Notifications
    You must be signed in to change notification settings 
- Fork 390
Description
Reporting an Issue or Missing Feature
We have identified an issue when provisioning SharePoint sites using the New-PnPSite command.
When creating Team Sites with this command, the site and its contents do NOT appear in search results.
The inability to search applies both to content within the site and to the site itself.
In contrast, when creating Communication Sites using the same command, search functionality works as expected. Both the site and its contents are indexed and returned in search results.
This suggests a potential difference in how search indexing is triggered or configured for Team Sites created via New-PnPSite.
We have tested this in different tenants with the same results. However, creating sites manually via SharePoint Admin this issue does not occur. It only occurs when provisioning team sites via powershell.
Expected behavior
We should be able to search for a teamsite and its content.
Actual behavior
No content appears in search when searching on a teamsite created using New-PNPSite
Steps to reproduce behavior
$site = New-PnPSite -Type TeamSite -Title "MyTestTitle" -Alias "MyTestAlias" -Owner "MyTestOwner@email.com" -Connection $con -Wait | Out-Null
What is the version of the Cmdlet module you are running?
PNP.Powershell is version 3.1.0
Which operating system/environment are you running PnP PowerShell on?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Powershell
- Other : please specify