"Invoke-WebRequest" doesn't work in Automation

Category: azure automation


Alan Cowzer (MSFT CSG) on Mon, 16 May 2016 19:48:09

From Jeremy Mill @living_syn via Twitter

Customer: Hey @Azure , "Invoke-WebRequest" doesn't work in Automation - RunBooks, requires IE to have been run at least once on server

Thanks for the information. We have created a forum on your behalf to discuss with an engineer:  http://aka.ms/fc65982  ^AL




Joe Levy_ on Mon, 16 May 2016 20:08:04


If you add the -UseBasicParsing parameter to the Invoke-WebRequest call, it should work.

Joe Levy
Twitter: @Jodoglevy
Blog: http://jodoglevy.com

If this post was helpful to you, please upvote it and/or mark it as an answer so others can more easily find it in the future.