Skip to main content

Batch accounts

Processes normally run in the OpenDataDSL batch account. On the Batch accounts tab you can register your own Azure Batch accounts, so processes that run a container image run on your own machines, in your own network, with their logs in your own storage.

The Batch accounts tab with two of Northgate's accounts


In Azure: what you do on your side​

StepWhoWhat
1. Create or choose a batch accountAnyone who can create resourcesNote its Account endpoint, for example https://ngebatch.westeurope.batch.azure.com
2. Create a pool that runs containers, and a job on itWhoever manages the batch accountThe pool needs a container-enabled image and access to your container registry. OpenDataDSL adds a task to the job for each process run
3. Grant consentA Microsoft Entra administratorOnce for all resources, see Before you start
4. Give the application the Azure Batch Job Submitter roleAn Owner or User Access Administrator of the batch accountOn the batch account only. It lets OpenDataDSL add and stop tasks, with no access to the account keys

In OpenDataDSL: what you do here​

Select Add a batch account:

Registering and testing a batch account

FieldExampleNotes
Namenge-gpuThe name processes use. Letters, digits, _ and -
Account endpointngegpu.northeurope.batch.azure.comFrom the batch account's Overview page
Your Microsoft Entra tenant idFilled in and fixed: the account must be in your own tenant
Default jobodsl-gpuUsed when a process does not set its own job
DescriptionGPU pool for the weather models

Test lists the jobs in the account and checks the default job exists. In the list, Test, Change and Remove work on each registered account.

Then name the account in the settings of each process that should run there:

"settings": {
"image": "northgate.azurecr.io/weather-model:2.1",
"batchAccount": "nge-gpu"
}

What changes​

TopicDetail
Which processesOnly processes that run a container image and name the batch account. Every other process keeps running in the OpenDataDSL batch account
What the task getsNo OpenDataDSL database, application secret or account keys. The task gets ODSL_TOKEN (a short-lived token for the user the process runs as), ODSL_TASK, ODSL_PROCESS, ODSL_TASKID, ODSL_STAGE, ODSL_SB_CPM (the connection the OpenDataDSL Python SDK uses to report the run's status) and the storage settings ODSL_STORAGE_URL, ODSL_STORAGE_CONTAINER and ODSL_LOG_CONTAINER
Who can see those valuesAnyone who can read the tasks in your batch account: keep read access to the people who run it
Logs and outputStay in your batch account, kept as long as the process's retention setting says
Removing an accountProcesses that name it fail when they next run, and cannot be saved, until their settings are changed

For the full detail for your IT team, see Running processes on your own Azure Batch account.