Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 1.62 KB

README.md

File metadata and controls

71 lines (51 loc) · 1.62 KB

Overview

Deploy AWX environment to Azure VM.

Environment to be deployed

Azure VM

OS

  • Ubuntu 17.10

Installed software

  • Ansible
  • Docker CE
  • docker-py
  • build-essential
  • git

About AWX

About AWX, please refer awx/INSTALL.md at devel · ansible/awx.

How to deploy to Azure

Deploy by using Azure portal

Deploy to Azure

Deploy by using Azure CLI 2.0

You need Azure CLI 2.0.

First you should fill parameters.publicKey.value in azure/parameters.json by your public key.

{
    ...
    "parameters": {
        ...
        "publicKey": {
            "value": "ssh-rsa ..."
        },
        ...

Then you can deploy like following commands.

az login
az group create -n <resource group name> -l japaneast
az group deployment create -g <resource group name> --template-file azure/azuredeploy.json --parameters @azure/parameters.json

After deployment finished, you can access the vm by http. You can get public IP of the vm by following command.

az vm list-ip-addresses -g <resource group name> --query "[].virtualMachine.network.publicIpAddresses[].ipAddress" -o tsv

Default password to AWX

http://ipaddress admin/password

If first time, you may need wait a moment until finish provisioning.