Skill 1.2.4

Integrate Foundry projects with continuous integration and continuous deployment (CI/CD) pipelines

Key Concepts

Infrastructure as code (IaC) with Bicep or Terraform defines the Foundry resource, projects, model deployments, connections, networking and role assignments. The Azure Developer CLI (azd) packages IaC and application code into templates. Pipelines in GitHub Actions or Azure Pipelines authenticate to Azure with workload identity federation (OpenID Connect), so no secret is stored in the pipeline.

Agent definitions, prompts and evaluation datasets are stored in source control. A pipeline creates a new agent version with the SDK in a test project, runs quality and safety evaluations against a fixed dataset, and promotes the version only if the scores meet thresholds. The same thresholds then guard later changes, so a prompt edit that reduces groundedness fails the build instead of reaching users.