azure regions - download.microsoft.comdownload.microsoft.com/.../2016-01-azure...webinar.pdf ·...

24

Upload: others

Post on 21-May-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,
Page 2: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,
Page 3: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

AZURE REGIONS

Page 4: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

More details here: https://azure.microsoft.com/en-us/regions

Page 5: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,
Page 6: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

6

Page 7: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

7

Page 8: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

8

Page 9: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

9

Page 10: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

10

Page 11: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

11

Page 12: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

12

Page 13: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

13

Page 14: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,
Page 15: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

Debian on Azure

Microsoft partnered with Credativ, a member of the Linux Foundation, to bring Debian into the Microsoft Azure Marketplace as one of the Azure-endorsed Linux distributions.

• Create Debian VM from the Azure Marketplace

• Bring your own Debian in Azure

15

Page 16: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

Bring your own Debian in Azure

• Make sure your Network is configured• Update the Kernel boot line in grub configuration to include additional

kernel parameters for Azure• Install Azure Linux Agent• Install and enable SSH server• Make sure swap space is not created on OS disk• Make sure the VM is de-provisioned before shut down

More details & step by step:https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-create-upload-vhd-debian/

Page 17: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,
Page 18: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

1. First we will set up a Linux virtual machine in the cloud and mount a SMB file system.

2. Then we will schedule a regular backup of the data from the local Linux server to cloud file share using

rsync utility.

3. We will automate this daily procedure and turn off cloud VM resources when we don’t need them (and save

money).

Page 19: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

1. If you do not have an active Azure subscription yet, sign up for a free monthly trial and you will get

$200 to spend on Azure resources.

2. Install Azure CLI on your machine

3. Run provision script on local machine or create the machine using GUI in the Azure portal

4. Install RSYNC on the machine that you want to backup

Page 20: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

1. Make sure you have SMB CIFS installed

2. Mount the SMB Share

3. Create SSH certificate & upload it to your local machine

Page 21: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

Compose a script that will do the following:

1. Send a command to turn cloud virtual machine on

2. Wait while virtual machine is ready to use

3. Run data backup

4. Turn cloud virtual machine off to save money

Page 22: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

Linux virtual machine time

$0.018 VM cost per hour

5 hours for the initial setup and first sync of all the data.

Then for the daily incremental backup 30 minutes will be more than enough

Total cost per month for VM usage will be $0.018/hour * 17 hours = $0.30/month.

Storage

$0,05 * 1,5GB = $0,08 per month.

$0.10 * 5GB = $0,5 per month.

Total storage cost is $0,08 for image + $0,5 for backup storage = $0,58

Traffic

All inbound traffic is free. 5GB of outgoing traffic per month is also free but in our scenario we would not

exceed the limit. So the traffic cost is $0.

Therefore, the total cost of such backup solution will be ~$0.88 per month.

Page 23: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,

Usefull links

• Azure trial

https://azure.microsoft.com/trial/free-trial-open-source/

• About Azure

https://azure.microsoft.com/en-us/overview/what-is-azure/

• Prepare a Red Hat-based Virtual Machine for Azure

https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-create-upload-vhd-redhat/

• Prepare Debian VHD for Azure

https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-linux-create-upload-vhd-debian/

• Cloud Backup for Linux server

https://www.microsoft.com/en-mt/azureboxes/linuxbackup/

Page 24: AZURE REGIONS - download.microsoft.comdownload.microsoft.com/.../2016-01-Azure...webinar.pdf · Debian on Azure Microsoft partnered with Credativ, a member of the Linux Foundation,