https://github.com/inspec/inspec/issues/3689 (includes replication steps)
inspec/lib/resources/http.rb
def body
@worker.body
end
When running the http resource locally, @worker is set properly. When running the http resource on an Azure load balancer, @worker is set to nil.
This is where that error is being generated - in the instance_eval method
inspec/lib/inspec/rule.rb