CycleCloudCommunity / cyclecloud_arm

5 stars 8 forks source link

CycleCloud ARM

Deploying Azure CycleCloud into a subscription using an Azure Resource Manager template

Introduction

Pre-requisites

  1. Service Principal

    • Azure CycleCloud requires a service principal with contributor access to your Azure subscription.

    • The simplest way to create one is using the Azure CLI in Cloud Shell, which is already configured with your Azure subscription:

      $ az ad sp create-for-rbac --name CycleCloudApp --years 1
      {
              "appId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
              "displayName": "CycleCloudApp",
              "name": "http://CycleCloudApp",
              "password": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
              "tenant": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      }
      • Save the output -- you'll need the appId, password and tenant.
    • Alternatively, follow these instructions to create a Service Principal

      • In this case, the authentication key is the password
  2. An SSH key

    • An SSH key is needed to log into the CycleCloud VM and clusters
    • Specify a SSH public key, and that will be used in all CycleCloud Clusters as well as the application server.
    • See section below for instructions on creating an SSH key if you do not have one.

Deploying Azure CycleCloud

From the Azure Portal

Deploy to Azure

Using the AZ CLI

The deployment process runs an installation script as a custom script extension, which installs and sets up CycleCloud. This process takes between 5-8mins

Login to the CycleCloud application server

You could also reach the webserver through the VM's public IP address:

    $ az network public-ip show -g ${RESOURCE-GROUP} -n cycle-ip --query dnsSettings.fqdn

createuser

Initialize the CycleCloud CLI

Trouble with SSH