Step 1b - Configuring the Virtual Machine Scale Set using Terraform¶
Rename of organization
Due to the renaming of Company, the Github organization has changed name from "amestofortytwo" to "fortytwoservices". Pre-existing Terraform code would need to change that in code.
Prereqs¶
Deployment¶
We have published this Terraform module for simplified deployment. If you are not familiar with using Terraform, consider using the manual method instead, but it should be fairly easy for most people.
Start by creating an empty folder with a single file main.tf
, with the below content, and running ther terraform.ps1
code line by line:
az login
az account set --subscription "<your subscription id>"
az vm image terms accept --offer self_hosted_runner_github --plan ubuntu-latest --publisher amestofortytwoas1653635920536
az vm image terms accept --offer self_hosted_runner_github --plan windows-latest --publisher amestofortytwoas1653635920536
terraform init
terraform apply
Continue to step 2 - Configuring the virtual machine scale set for auto registration