v12

latestOpenAPI 3.0.1raw.githubusercontent.com2026-08-01252498556.8 KB
compute-envs

Create compute environment

Creates a new compute environment. Append ?workspaceId to create the environment in a workspace context.

post/compute-envs

Query parameters

workspaceIdinteger

Workspace numeric identifier

Request body

labelIdsinteger[]

Example request

{
  "computeEnv": {
    "config": {
      "forge": {
        "bootDiskSizeGB": 100,
        "headPool": {
          "bootDiskSizeGB": 100
        },
        "workerPool": {
          "bootDiskSizeGB": 100
        }
      },
      "headJobCpus": 1,
      "headJobMemoryMb": 4096,
      "jobMaxWallClockTime": "7d",
      "subnetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRg/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"
    }
  }
}

Response

OK

computeEnvIdstring