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)
shawn
), not admin
ssh-rsa
and end with your email addressmyosslabvm
, but you should pick something uniqueAfter 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.