Install Docker on a Azure Linux VM, upload a docker image to Azure Container Registry and Deploy a Azure Container Instance Part 2 – Install a linux VM in Azure

First let’s create the VM. You can read more about it in Azure docs here.

First create a resource group to hold your VM and other resources.

az group create --name TutorialResources --location eastus

Next let’s create the Ubuntu VM.

az vm create --resource-group TutorialResources \
  --admin-username azureuser
  --name TutorialVM1 \
  --image UbuntuLTS \
  --generate-ssh-keys \
  --output json \
  --verbose

Once done try and connect using ssh and the public IP adress that displayed as part of the verbose output.

ssh azureuser@ip-adress

There we go! Now in the next post we’ll install docker.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s