1 | initial version |
You need to add the -UseBasicParsing parameter when calling Invoke-WebRequest from a userdata script. Reason for this is that otherwise Invoke-WebRequest will try to parse the response using IE components, not available in this context.