Skip to content

Deprecate Get-PnPSearchCrawlLog cmdlet#5229

Draft
wobba wants to merge 1 commit intodevfrom
wobba/deprecate-crawllog
Draft

Deprecate Get-PnPSearchCrawlLog cmdlet#5229
wobba wants to merge 1 commit intodevfrom
wobba/deprecate-crawllog

Conversation

@wobba
Copy link
Contributor

@wobba wobba commented Feb 3, 2026

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A - API deprecation by Microsoft

What is in this Pull Request ?

Deprecates the Get-PnPSearchCrawlLog cmdlet as the underlying API has been deprecated by Microsoft and no longer returns results.

Changes:

  • Added [Obsolete] attribute to the cmdlet class
  • Modified ExecuteCmdlet to throw NotSupportedException instead of calling the deprecated API
  • Removed unused helper methods
  • Updated documentation with deprecation warning
  • Added changelog entry
  • Removed predictor suggestions for the cmdlet

The underlying API has been deprecated by Microsoft and no longer returns results. The cmdlet now throws a NotSupportedException and will be removed in a future version.
@reshmee011
Copy link
Collaborator

@wobba : Sad to hear the API behind this cmdlet has been deprecated. I’ve been using it a lot during a migration to make sure the tenant isn’t impacted and that crawls finish on schedule so content stays searchable. Are there any alternatives you’d recommend? It’s such a handy way to check indexing and crawl status.

@wobba wobba marked this pull request as draft February 4, 2026 08:42
@reshmee011
Copy link
Collaborator

I am receiving the message Error: "GetCrawledUrls" has been deprecated when executing Get-PnPSearchCrawlLog.

@wobba , is there an alternative approach you’d recommend?

In the migration project I’m currently working on, one of the go-live criteria is to ensure that all migrated files have been indexed so users can search and access content from day one.

@wobba
Copy link
Contributor Author

wobba commented Feb 18, 2026

@reshmee011 you can use the search API to find files instead of the crawl log as an alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments