This looks like support for proxy. And last line is automatic registration of our resource provider - something we needed to add to PowerShell cmdlets, but which we may take advantage of in node.js CLI infrastructure. Haven't tested if it works for HDInsight though.