Demonstrates the fundamentals of using the Azure Managed Durable Task Scheduler (DTS) with the JavaScript SDK, including connection strings and DefaultAzureCredential authentication.
| Feature | API |
|---|---|
| Connection string auth | createAzureManagedClient(connectionString) |
| DefaultAzureCredential | createAzureManagedClient(endpoint, taskHub, credential) |
| Activity sequence | ctx.callActivity() in a loop |
| Fan-out/fan-in | whenAll() with parallel callActivity() |
| Azure logger | createAzureLogger() |
- Node.js ≥ 22
- Docker (for the DTS Emulator)
# From the repository root
cd examples/azure-managed
docker compose up -d # start DTS emulator
cp .env.emulator .env # configure for local emulator
cd ../..
npm install && npm run buildnpm run example -- ./examples/azure-managed/basics/index.tsSee the parent README for instructions on running against a real Azure Managed DTS resource.