FY18P20Labs

View the Project on GitHub

Open Source Workloads in Azure with Linux

Create a Linux VM in Azure

Lets start by defining two variables to hold the name of our resource group and the Azure region that we want it to live in.

RG="osslab-rg"

REGION="westus2"

Now lets create a resource group, using the variables we defined in the last step

az group create --location $REGION --name $RG

Now using an ARM template, lets deploy a VM into the resource group we just created.

az group deployment create -g $RG --template-uri https://raw.githubusercontent.com/shawnweisfeld/FY18P20Labs/master/AzureIaaS/AzureOSS/assets/azuredeploy.json

You will be prompted to provide the following: (NOTE: everything should be lowercase)

  1. Your admin user name (i.e. shawn), not admin
  2. A DNS Custom Name (two random characters)
  3. Your SSH key, we created this earlier. Remember it should start with ssh-rsa and end with your email address
  4. The name of the VM, I used myosslabvm, but you should pick something unique

After a few minutes you should see some JSON in the shell, these are the details about the VM you just provisioned.

While you are waiting take read through the ARM template to get an idea of what you are building. You can see the template here.

Lab Navigation

  1. Overview
  2. Setup your environment
  3. Create a Linux VM in Azure <– you are here
  4. Connect to a Linux VM in Azure
  5. Install components to make our VM a Web Server
  6. Cleanup

Back to Index