github.com/paybyphone/terraform@v0.9.5-0.20170613192930-9706042ddd51/examples/azure-traffic-manager-lb-scale-set/Readme.md (about) 1 # Azure traffic manager with load balanced scale sets 2 3 This example shows how to create a load balanced scale set in multiple locations and then geographically load balance these using traffic manager. This example the scale set uses a market place Ubuntu image, this could be customised using an extension or a generalized image created using packer. 4 5 This script demonstrates how variable can be passed in and out of reusable modules. You will need to run `terraform get` for terrafrom to get so that modules are pre-processed. 6 7 ## Keys and variables 8 9 To use this you will need to populate the `terraform.tfvars.example` file with your Azure credentials and key. Rename this to `terraform.tfvars` and copy this somewhere private. If you need to generate credentials follow the instructions on the Azure provider documented [here](https://www.terraform.io/docs/providers/azurerm) 10 11 You may also want to modify some of the settings in `variables.tf`, DNS names must be unique within an Azure location and globally for traffic management 12 13 ## To start the script 14 15 ### Planning 16 17 `terraform get` 18 19 `terraform plan -var-file="C:\Users\eltimmo\.terraform\keys.tfvars"` 20 21 ### Apply phase 22 23 `terraform apply -var-file="C:\Users\eltimmo\.terraform\keys.tfvars"` 24 25 ### Destroy 26 27 `terraform destroy -var-file="C:\Users\eltimmo\.terraform\keys.tfvars"`