The infrastructure created is composed of:
- 1 Resource Group
- 1 Vnet
- 1 Subnet
- 1 SQL Server (IaaS)
- Multiple VMs based on the amount of people involved in the coaching (It will create 3 VMs for each person)
If first time running a Terraform template, please do the following:
-
Install Azure CLI for Windows, Mac OS or Linux (It can take around 5 minutes to complete).
-
Once Azure CLI is installed, from PowerShell / Bash run
az login
to ensure the installation of Azure CLI is completed and you’re able to connect to your Azure subscription. -
Download version 1.1.9 of Terraform and make sure you update the path environment variable Example steps for Windows:
- Go to Terraform 1.1.9 Download link.
- Download the applicable package to your local system.
- Extract the package to the folder
C:\Program Files (x64)
. This path is used as an example. However, you can also the Terraform executable to any other location in your local system. - Update the path environment variable to include the folder where your Terraform executable is located.
- Go to the Control Panel.
- Click System.
- On a Windows 10 system, click Advanced system settings.
- Click Environment Variables near the bottom of the window.
- In the System variables pane, click Path and then click Edit.
- Click New. Add the path to the folder where your Terraform executable is located.
- Click OK to save your changes and then click OK to exit the Environment Variables windows. Then click OK again to exit the System Properties window.
-
To verify your Terraform installation and check the version, launch PowerShell / Bash and run:
terraform -version
If you already installed Terraform and Azure CLI, then you can proceed with the provisioning of the resources in Azure.
- Download/clone this repo.
- Within PowerShell / Bash change directory to where you downloaded the Terraform Script on Step 1
- Run
terraform init
- Run
terraform apply
and fill out the requested fields - Enter
yes
to confirm the provisioning of the resources
Terraform takes around 10-15 minutes to provision the resources. Once it finishes provisioning the resources, an output is presented within PowerShell / Bash with all relevant information.