Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.16 KB

HOWTO-azure.md

File metadata and controls

52 lines (39 loc) · 1.16 KB

Microsoft Azure HowTo

Azure Commandline Tool for Mac and Linux

Install azure-cli

npm install -g azure
azure account download

Import Azure Account information

cd ~/Downloads
azure account import Kostenlose\ Testversion-12-26-2014-credentials.publishsettings
azure account list

Create SSH Key

mkdir cert
cd cert
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout azurePrivateKey.key -out azureCert.pem
chmod 600 azurePrivateKey.key
openssl x509 -outform der -in azureCert.pem -out azureCert.cer
cd ..

Create Ubuntu VM

azure vm create drone-ss b39f27a8b8c64d52b05eac6a62ebad85__Ubuntu-14_04_1-LTS-amd64-server-20141125-en-us-30GB drone --location "West Europe" -z ExtraSmall -e -P -t cert/azureCert.pem
ssh-keygen -R drone-ss.cloudapp.net

Login to VM

ssh -i cert/azurePrivateKey.key [email protected]

Other commands

azure vm location list
azure vm image list | grep 14_04
azure vm endpoint list drone-ss
azure vm endpoint create drone-ss 80 8080
azure vm endpoint delete drone-ss tcp-80-8080