Skip to content

Durable Task Scheduler

Cloud Foundations provisions one Azure Durable Task Scheduler and one default task hub in each environment: platformdev, test, qa, uat, and prod. Forge can derive the scheduler name as saif-<environment>-dts. The scheduler endpoint and resource IDs are available from module.environment.durable_task in the saif-foundation module.

The durable_task object contains:

Field Description
scheduler_id Scheduler Azure resource ID
scheduler_name Deterministic scheduler name
endpoint Scheduler endpoint used by Durable Functions
taskhub_id Default task hub resource ID
taskhub_name default

SKU configuration

The environment-specific inputs DurableTask_SkuName and DurableTask_SkuCapacity configure each scheduler. Non-production defaults to Consumption; production uses Dedicated with one capacity unit. Dedicated capacity is configurable from one to three units. Consumption must not send a capacity: DurableTask_SkuCapacity is ignored and the field is omitted from the API request. UAT remains Consumption unless performance testing requires matching production.

Environment SKU Capacity
platformdev Consumption N/A
test Consumption N/A
qa Consumption N/A
uat Consumption N/A
prod Dedicated 1

The API requires ipAllowlist = ["0.0.0.0/0"]; network allowlisting is not used for user access. Entra ID authentication and scheduler-scoped RBAC control dashboard and data access.

Access

The environment's Viewer Entra group receives Durable Task Data Reader and the Contributor group receives Durable Task Data Contributor, both scoped to the scheduler. Production uses the Corporate Prod groups; all other environments use the Corporate Non Production groups.

The iac-<environment> Forge deployment identity already has Owner on its environment subscription, granted by infra/bootstrap. That inherited subscription-scope grant allows Forge to create the Durable Task Data Contributor role assignments for function identities on the task hub, so no additional scheduler-scoped role-assignment grant is needed.

Deployment notes

The environment stack registers Microsoft.DurableTask in each subscription before creating the scheduler. The Azure Durable Task Scheduler API is 2026-02-01; AzAPI is used because the AzureRM provider has no native resource for this service.

If Microsoft.DurableTask is already registered in a subscription, import the registration into that environment's Terraform state before the first pipeline deployment. Run the command from the infra/environments root with the same backend and credentials used by the environment pipeline:

terraform import \
  'module.saif-environment-sharedservices.azurerm_resource_provider_registration.durable_task' \
  '/subscriptions/<subscription-id>/providers/Microsoft.DurableTask'

For subscriptions where the provider is not registered, do not import it; the pipeline will register it before creating the scheduler.

After deployment, verify in platformdev that the dashboard loads for a Reader without requiring Contributor. If the dashboard requires Contributor, update the Viewer assignment based on the observed result.