NOTE every time you start or stop the machine the IP address will change; choose a static IP if you want to change this behavior
The Azure Command Line interface tools are needed to manage virtual machines; this is a OS-independent library. These tools are already installed in the virtual machine named VM manager that can be called up from the Azure portal
The Azure CLI is available from https://azure.microsoft.com/en-us/documentation/articles/xplat-cli-install/
Install Node.js first available from https://nodejs.org/en/download/package-manager/
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install azure-cli -g
Log into the Azure account
azure login
Switch to Resource Manager mode
azure config mode arm
Regions are centralus, westus, eastus
azure network vnet create <your-new-resource-group-name> <your-vnet-name> -l "region"
azure network vnet subnet create <your-new-resource-group-name> <your-vnet-name> <your-subnet-name>
for example: azure network vnet subnet create 'DataScience' 'DataScience' 'default'
azure network public-ip create <your-new-resource-group-name> <your-ip-name> -l "region"
for example: azure network public-ip create 'DataScience' datamodelrep4 -l "westus"
azure network nic create <your-new-resource-group-name> <your-nic-name> -k <your-subnetname> -m <your-vnet-name> -p <your-ip-name> -l "region"
for example: azure network nic create 'DataScience' 'datanic4' -k 'default' -m 'DataScience' -p datamodelrep4 -l "westus"
Show the NIC ID
azure network nic show <your-new-resource-group-name> <your-nic-name>
Scroll up to the nic ID Copy starting in '/subscriptions'
It should look like this (Note the networkInterfaces/
data: Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups//providers/Microsoft.Network/networkInterfaces/
Enter the editor
Scroll down or rigth until you find a string that starts "vhd": { "uri" Example: https://datamodelrep3.blob.core.windows.net/vmcontainer9d9ea85c-dd89-4458-a4e1-d6b2c3c2bee1/osDisk.5d4ea85c-dd65-4458-a4e9-d6b8c3c2bee2.vhd
Change the last digit before the extension .vhd
cp myimage.json newmyimage.json
sudo nano newmyimage.json
Use the new json file you edited previously
azure group deployment create <your-new-resource-group-name> <your-new-deployment-name> -f <your-template-file-name.json>
for example: azure group deployment create 'DataScience' 'deployanalysistemplate3' -f mynewimage.json
Supply a new VM name, the admin user name and password, and the Id of the NIC you created previously.
myvmrep
myuser
password
Tne networkInterfaceID will look like:
/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups//providers/Microsoft.Network/networkInterfaces/
Specify user password
sudo passwd atlantis
crontab -e
If prompted choose nano as editor
@reboot /home/.dropbox-dist/dropboxd
1 0-23/1 * * * /home/.dropbox-dist/dropboxd
@reboot ~/bin/dropbox.py start
The latter of those two lines tells crontab to run the dropbox daemon on the first minute of every hour... important if the dropbox connection closes as it sometimes does.
sudo apt-get remove dropbox; rm -rvf ~/.dropbox ~/.dropbox-dist
rm -rv ~/Dropbox
sudo nano ~/.profile
Add the following line. Check if R version is correct
R_LIBS_USER='/home/atlantis/R/x86_64-pc-linux-gnu-library/3.3.1'
svn co https://svnserv.csiro.au/svn/ext/atlantis/Atlantis/branches/bec_dev --username yourusername --password yourpassword
cd bec_dev/atlantis
aclocal
autoheader
autoconf
automake -a
./configure
make
sudo make install
cd atlantismainIf building Atlantis does not work, switch to root user
sudo su -and try again
ls -l
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
Allows upload of data to a blob storage account. Install .Net Core first
sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > ./microsoft-prod.list
sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/
sudo apt-get update
sudo apt-get install azcopy