Download presentation
Presentation is loading. Please wait.
1
Linux on Azure SmartLab
Azure + Open Source Last Updated: 9/25/16 Warren du Toit
2
Linux on Azure SmartLab
Microsoft is now the leading open-source contributor in the world, they have just over taken Facebook and now provide the most source to communities to use and contribute. Microsoft have also given us command line children many great ways of installing, provisioning, automating and using Linux(nix) distributions in Azure. Linux on Azure SmartLab
3
Linux on Azure Smartlab
Awesomeness Awesomeness Run existing and new business-critical enterprise Linux infrastructure workloads in the cloud to leverage hyper-scale economics Make the most out of your Azure investment but also take advantage of quick and easy free deployment methods. Use Microsoft’s robust cloud to enhance your open-source experience. Microsoft Loves Linux Satya Nadella, CEO, Microsoft
4
The CLI and quick-create
Linux on Azure Smartlab The CLI and quick-create Installing the Azure command line interface and using quick-create Head over to Microsoft and get the CLI package. Install the Azure CLI For Mac, it’s a simple installer pkg file. For Linux, use node package manager. apt-get install npm nodejs npm install -g azure-cli Fast and Easy Authentication After installing, you can authenticate your CLI so it receives a token so you can easily access your Azure subscription. ~ $ azure login info: Executing command login info: To sign in, use a web browser to open the page Enter the code CUUU9MQZM to authenticate. ~ $ azure account list info: Executing command account list data: Name Id Current State data: data: Visual Studio Enterprise bd10f6e4-500a-44bd-872c-85b999df7c3f true Enabled info: account list command OK When in doubt “azure help” Using quick-create. Quick create is a super one liner to create Azure VM’s azure vm quick-create \ -g newResourceGroup \ -n LinuxVMtoASR \ -l northeurope \ -y Linux \ -u wdt \ -M ~/.ssh/id_rsa.pub \ -Q UbuntuLTS Adding in the –M allows you to transfer your ssh key straight in, allowing only ssh key auth to the newly created box. This will disallow password authentication to the box as well. Quick-create assigns network, an external DNS name and the port forwards for ssh. All the defaults to get your box out there.
5
Demo Azure + Open Source
6
Microsoft’s Open-Source Repo’s
Linux on Azure Smartlab Microsoft’s Open-Source Repo’s Using Microsoft’s open source repo’s, templates and contributing. Huge Repo’s on Github and Microsoft Website Azure on GitHub Azure quick-start templates Microsoft Azure Templates Documentation Blank Template Example Contributing You can contribute your own quick-start templates if you find there is a need for one Contributing guide and rules Example LAMP App Server on Ubuntu Typical JSON metadata example { "itemDisplayName": "Blank template", "description": "A blank template and empty parameters file.", "summary": " ", "githubUsername": "bmoore-msft", "dateUpdated": " " } Typical Azure Deploy JSON "$schema": " 01/deploymentTemplate.json#", "contentVersion": " ", "parameters": { }, "variables": { "resources": [ ], "outputs": { Hosting or creating a link that auto links to Azure.
7
Azure AD Authentication
Linux on Azure Smartlab Azure AD Authentication Using Azure Active Directory to Authenticate on Linux. Authenticate PAM with AAD Connect. With a script found on GitHub, written by this guy We are able to allow the PAM authentication system on Linux to send authentication requests to Azure AD, allowing us to manage authentication across all our Linux machines anywhere. They do not need to be hosted in Azure. The script only needs http access out, nothing is required to come back in on the Firewall. The script can be deployed after the creation of the VM automatically using custom extension scripts. Requirements for AAD authentication to work Make sure that your server has access to the internet, it needs to get to your AAD and to install specific packages unless you have added them to your image. You can lock this down later. Install npm, nodejs on the server (git is optional) Aad-login files from GitHub Client-ID or App-ID created inside the Azure Active Directory Users in Active Directory (password cannot have reset flag active) they will need to login to the azure portal via web and reset their password. ssh -l wdt linux-north bla bla bla apt-get update apt-get upgrade apt-get install npm npm install azure-cli -g azure ln -s /usr/bin/nodejs /usr/bin/node vim parameters.txt apt-get instll git nodejs npm git clone cd aad-login/ mkdir /opt/aad-login cp aad-login.js package.json /opt/aad-login/ cp aad-login /usr/local/bin cd /opt/aad-login/ package.json npm install vim aad-login.js vim /etc/pam.d/common-auth useradd -m linuxguy vim /etc/ssh/sshd_config service sshd restart service ssh restart chsh linuxguy vi /etc/sudoers adduser -m otherdude useradd -m otherdude chsh otherdude
8
Demo Azure + Open Source
9
Azure Site Recovery Migration
Linux on Azure Smartlab Azure Site Recovery Migration Migrating Linux workloads to Azure. Why use ASR to migrate ? The ability to migrate without downtime. You don’t need to migrate at all, it’s a means of making sure your workloads are redundant for future Changing Azure regions can mean less cost. You can reduce your on premise footprint. Fast and Easy. Pre-Reqs Azure Subscription Configuration Server either On-Premise or in Azure Backup vault to connect the configuration Server to.
10
Demo Azure + Open Source
11
Enterprise Linux Cloud Infrastructure
Technical Resources an-unplanned-failover
12
More Resources Visit Microsoft Open Source Website: Microsoft Open Source Blog: Twitter: Try Sign up for a Free Azure Trial: Try Open Source on Azure: Contact Us us at See how customers are using Open Source + Microsoft Azure:
13
Thank you!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.