17. Deployment
Azure resources
All resources are defined in Bicep:
| Resource | Role |
|---|---|
| Functions app | The engine: API, interpreter, activities, event and schedule functions |
| Durable Task Scheduler | Live run state |
| Azure SQL | Definitions and history |
| Service Bus | Worker queues, topics |
| Blob storage | Payloads and archive |
| Event Grid topics | Events in and out |
| API Management | Gateway: authentication, tool endpoints, AI policies |
| App Configuration and Key Vault | Configuration and secrets |
| Application Insights and Log Analytics | Traces, metrics, audit |
| Container Apps environment | Worker hosting |
| Logic Apps Standard | SaaS connectors |
| Foundry project | Models |
Pipeline
- Validate every definition in the repository against the schema and the registration checks.
- Register changed definitions, task definitions, and instruction texts. Create Service Bus queues for new task types.
- Regenerate the gateway tool policy from the definitions and deploy it.
- Deploy the engine only when engine code changed.
- Build and deploy changed worker images.
Steps 1 to 3 run for every definition change. Steps 4 and 5 run only when code changed.