an example azure ubuntu virtual machine
Install the tools:
./provision-tools.sh
Login into azure-cli:
az login
List the subscriptions and select the current one if the default is not OK:
az account list
az account set --subscription=<id>
Review main.tf
and maybe change the location
variable.
Initialize terraform:
make terraform-init
Launch the example:
make terraform-apply
At VM initialization time a Custom Script Extension will run the provision.ps1
script to customize the VM and launch the example web application.
After VM initialization is done (the log is stored at c:\AzureData\provision-log.txt
), test the app
endpoint:
wget -qO- "http://$(terraform output app_ip_address)/test"
You can also list all resources:
az resource list --resource-group rgl-windows-vm-example --output table