diff --git a/lib/pkgcloud/azure/compute/client/index.js b/lib/pkgcloud/azure/compute/client/index.js
index <HASH>..<HASH> 100644
--- a/lib/pkgcloud/azure/compute/client/index.js
+++ b/lib/pkgcloud/azure/compute/client/index.js
@@ -37,8 +37,12 @@ var Client = exports.Client = function (options) {
 
   // The https agent is used by request for authenticating TLS/SSL https calls
   if (this.protocol === 'https://') {
-    this.before.push(function(req, options) {
-      req.agent = new https.Agent({host: this.serversUrl, key: options.key, cert: options.cert});
+    this.before.push(function (req) {
+      req.agent = new https.Agent({
+        host: this.serversUrl,
+        key: options.key,
+        cert: options.cert
+      });
     });
   }
 };
[fix] Use `options` passed to constructor, not `before`