To automate the lab2nd step of instruction should be able to cover with hints given here: https://github.com/terraform-providers/terraform-provider-azurerm/issues/417