# Create a resource group
az group create --name armfromcli --location 'Central US'
# Create a deployment with in this resource group
az group deployment create --resource-group armfromcli --template-file main.json
# if you want to change any parameter
az group deployment create --resource-group armfromcli --template-file main.json --parameters vnetname='ntier1'
Refer Here for azure resource manager deployment from cli
Exercise 9: Deploy this template using azure powershell
Exercise 10: Create two vnets as shown below by using copy on vnet
Note: Refer Here for git repo maintained by microsoft for ARM templates