How to create HPC Cluster based on Azure CycleCloud

From PUBLIC-WIKI
Revision as of 14:10, 11 July 2019 by Eyales (talk | contribs)
Jump to navigation Jump to search

Installing Azure CLI

  • Login to the machine using privileged account.
  • Download the latest build of Azure CLI:
  • Windows download instruction and location:
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest
  • Linux download instruction and location:
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest

Login to the Azure subscription

  • Run the command below to login to the Azure subscription:
az login
  • List available subscriptions:
az account list --output table
  • Change the context to a specific Azure subscription:
az account set --subscription "My Subscription"
Note: Replace "My Subscription” with the relevant subscription name
  • Run the command below to verify the currently selected Azure subscription:
az account show

Configure CycleCloud pre-requirements

  • From a command prompt, run the command below to configure a service principal:
az ad sp create-for-rbac --name CycleCloudApp-MySubscription --years 1
Note: Replace CycleCloudApp-MySubscription with a unique name, relevant to the target Azure subscription
  • Document the command output (appId, displayName, name, password, tenant)
  • From Linux command prompt, run the command below to generate SSH key pair:
ssh-keygen -f ~/.ssh/id_rsa -m pem -t rsa -N "" -b 4096