From 73e32db22fbdecd049bd740a45c63ec6e51b09fe Mon Sep 17 00:00:00 2001
From: Richard Lander <richard.lander@tribridge.com>
Date: Tue, 16 Dec 2014 17:28:12 -0500
Subject: [PATCH] password required

---
 cloud/azure/azure.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cloud/azure/azure.py b/cloud/azure/azure.py
index 1679fbc45d1..be9f0af56b1 100644
--- a/cloud/azure/azure.py
+++ b/cloud/azure/azure.py
@@ -442,6 +442,8 @@ def main():
             module.fail_json(msg='location parameter is required for new instance')
         if not module.params.get('storage_account'):
             module.fail_json(msg='storage_account parameter is required for new instance')
+        if not module.params.get('password'):
+            module.fail_json(msg='password parameter is required for new instance')
         (changed, public_dns_name, deployment) = create_virtual_machine(module, azure)
 
     module.exit_json(changed=changed, public_dns_name=public_dns_name, deployment=json.loads(json.dumps(deployment, default=lambda o: o.__dict__)))