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¶
- Review and update the Terraform variable template.
- Sign in with
az loginand select the target subscription. - Run
terraform init, then reviewterraform plan -var-file terraform.tfvars. - 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.