Skip to content

Terraform Deployment Template

Use the repository Terraform template to provision the Azure infrastructure, create the configured Foundry resources and agents, and deploy the application.

Review values before applying

The supplied terraform.tfvars is a demo configuration. Review regions, resource names, model availability, quotas, and subscription constraints before running an apply in your environment.

Template files

File Purpose
main.tf Defines the infrastructure resources and their relationships.
variables.tf Declares the configurable template inputs.
terraform.tfvars Provides the demo deployment values to adapt for your environment.
provider.tf Configures Terraform providers.
outputs.tf Exposes the resulting resource and application details.

Deploy

  1. Review and update the Terraform variable template.
  2. Sign in with az login and select the target subscription.
  3. Run terraform init, then review terraform plan -var-file terraform.tfvars.
  4. Apply the approved plan with terraform apply -var-file terraform.tfvars.

Deployment flow

graph TD A[az login] --> B[terraform init] B --> C{Terraform provisioning stage} C -->|Review| D[terraform plan] C -->|Apply| E[terraform apply] C -->|Remove resources| F[terraform destroy]

For prerequisites, screenshots, and the full provisioning procedure, open the Terraform deployment guide.