compute-envs

Create compute environment

Changed on

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

post/compute-envs

Request

  • The document declares no server URL.
  • Auth
    HTTP bearer

Query parameters

workspaceIdinteger

Workspace numeric identifier

Request body

labelIdsinteger[]

Example request

{
  "computeEnv": {
    "config": {
      "forge": {
        "bootDiskSizeGB": 100,
        "containerRegIds": [
          "2dzgMSW1UqQHFhZqGQZ99X"
        ],
        "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

Changes

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • breaking

      added the pattern ^[0-9A-Za-z]{1,22}$ to the request property /////

    • info

      added the new optional request property ///

    • info

      added the new optional request property ///

    • info

      the request property //// became nullable