I just got back from vacation and discovered that Invoke-WebRequest seems to be broken. Apparently, this started back in December. For context, Microsoft has updated it such that every script requires the -UseBasicParsing switch now, unlike before when it would run without it. Has anyone else had to go through their entire repository to adjust for this change?
5 Answers
I think this change was covered well before it happened. Unfortunately, I’m on mobile now and can’t find all the links. Check the posts from back then; they might help!
You might want to consider upgrading to PowerShell 7.x. This issue is a good reason to do it since most of my pipelines run on the newer version without those hiccups!
We were aware of this issue since Microsoft released the patch in early December. It’s not something we used often, so it didn’t hit us too hard, but definitely something to keep in mind.
Yeah, this was officially announced on December 9. If you want more info, I can share the support link for it.
There’s a script available that might help you out: [script link]. That should ease some of the workload!

Totally agree. Managing these changes could be tough without the update.