Note: This article was originally published in 2013. Some steps, commands, or software versions may have changed. Check the current JuJu documentation for the latest information.
In this step-by-step guide, you’ll learn deploy juju on windows azure.
How to: Deploy JuJu on Windows Azure
There are great guides on how to do this on Canonical’s (http://www.ubuntu.com “Ubuntu (operating system)”) site but there are a few details one must keep in mind while trying to deploy JuJu on Windows Azure:
- JuJu on Windows looks broken to me. I downloaded the JuJu client for Windows, followed all the instructions and read them like 5 times… no luck. I ended up with a Crypto/TLS error and gave up. I then tried on an Ubuntu machine and guess what: It worked.
- You need to upload the JuJu tools for the bootstrap to work
So here are a few errors you might encounter:
ERROR PUT request failed: BadRequest - XML Schema validation error in network configuration at line 75,18. (http code 400: Bad Request)
ERROR PUT request failed: BadRequest - XML Schema validation error in network configuration at line 46,18. (http code 400: Bad Request) To resolve this is quite simple: You need to deploy the JuJu tools. When you run the bootstrap add the —upload-tools switch to do so. I read you might need to delete the azure environment file at: .juju/environments/azure.jenv too.
Windows PowerShell Copyright (C) 2013 Microsoft Corporation. Todos los derechos reservados. PS C:WINDOWSsystem32> cd “C:Program Files (x86)Juju” PS C:Program Files (x86)Juju> juju bootstrap ERROR crypto/tls: failed to parse key: ASN.1 structure error: tags don’t match (2 vs {class:0 tag:16 length:1113 isCompo und:true}) {optional:false explicit:false application:false defaultValue:
(http://img.zemanta.com/zemified_e.png?x-id=c704e23e-12cf-4e15-abf7-7434fdc3a709)](http://www.zemanta.com/?px “Enhanced by Zemanta”)
Summary
You’ve successfully learned deploy juju on windows azure. If you run into any issues, double-check the prerequisites and ensure your JuJu environment is properly configured.