Azure

1. Create an Azure Account

Go to [http://portal.azure.com] and sign up. You can use your Github credentials or create a new account.

Use [http://portal.azure.com] to sign in. This is the hub where you can manage all your services, so it's a good idea to take a moment to familiarize yourself with the layout before proceeding.

2. Create a subscription

To run services in Azure, you must have a subscription. When you sign up for a new account, you get 12 months of free usage for certain services and $200 worth of credits for 30 days.

3. Create the node

If you are running this on Windows you will first need to install Windows Subsystem for Linux. You can use this guide.

The script you fetch and run in the next step depends on the network you want to deploy your node to. Please be sure to select between mainnet and testnet as desired.

Download and run the node install script for the type of node you wish to deploy:

Mainnet Full Node:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Taraxa-project/taraxa-ops/master/scripts/one-click-Azure.sh)" mainnet

Mainnet Light Node:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Taraxa-project/taraxa-ops/master/scripts/one-click-Azure.sh)" mainnet light

You should get a Azure login window in your browser after running the script. Login to proceed.

The script will run for a while. When the script tells you to make a note of your nodes IP address, do so. The script will create SSH credentials for you to access your node.

Login via ssh

ssh <your-node-ip-address>

4. Check your node

sudo docker ps

5. Further tweaks

The node is running under root account. You might want to change that for easier access and security reasons. To do so, first, set the root password.

sudo passwd root

Now you can change into root. Make note of your current user before with whoami.

whoami
su

If you want to continue as is, all good. Save your root password and your done. If you'd rather move your node under your account, read on.

Change into root home and move your node to your personal home

cd /root
cd ./taraxa-ops/taraxa_compose
docker-compose down
cd /root
mv -R taraxa-ops /home/<your-user-account>
exit

Once back in your user account, start the node

cd ~/taraxa-ops/taraxa_compose
sudo docker-compose up -d

You should be good to go!

Last updated