Azure PowerShell Runbook Error - Internet Explorer engine is not available

Azure PowerShell Runbook Error - Internet Explorer engine is not available

Raymond Tang Raymond Tang 0 1295 0.98 index 11/16/2021

Error detail

The response content cannot be parsed because the Internet Explorer engine is not available, or Internet Explorer's first-launch configuration is not complete. Specify the UseBasicParsing parameter and try again. 

How to reproduce

  • Create an Azure automation account.
  • Go to Process Automation -> Runbooks
  • Click button Create a runbook
  • Choose PowerShell as runbook type and select the runtime version: 2021111683023-image.png
  • In the content area, input PowerShell script: Invoke-WebRequest "https://google.com/" | Select-Object StatusCode,StatusDescription
  • Click Test panel
  • Click Run button to run and the following error will show up: 2021111683448-image.png

Resolution

The printed out error message already provides the solution: we just need to add parameter -UseBasicParsing to the command:

Invoke-WebRequest "https://google.com/" -UseBasicParsing  | Select-Object StatusCode,StatusDescription

The result looks like the following screenshot:

2021111683843-image.png

azure powershell

Join the Discussion

View or add your thoughts below

Comments