dcloud ci runner-pools create-azureCreate a Windows runner pool of spot VMs in your own Azure subscription
One VM per job, deleted with its NIC, public IP and disk when the job ends. The first scaling pass bakes the pool’s image into a Compute Gallery in the resource group (about 40 minutes, one regular VM); jobs wait for it. Give the app registration a federated credential with the issuer, subject and audience the pool shows, and Virtual Machine Contributor and Network Contributor plus Compute Gallery write on the resource group (or Contributor on it). The pool’s lastScaleReason says what Azure answered.
Synopsis
dcloud ci runner-pools create-azure --name name --labels labels --max-size maxSize --azure azure [flags]Flags
--nameRequiredstring
Name of the pool, lower-case letters, digits and -, up to 40, unique in the organization (409); its group and template are named runner-pool-<name>
Constraints: /^[a-z0-9][a-z0-9-]{0,39}$/
--labelsRequiredarray of string
Jobs whose runs-on labels are all among these go here, e.g. windows-latest, windows-2025, windows-2022; 1 to 20; a Linux or macOS label is refused (400). The VMs also carry self-hosted, windows and x64
Constraints: /^[a-z0-9][a-z0-9._-]{0,49}$/
--max-sizeRequirednumber
Most job VMs at once, 1 to 50
Constraints: integer, 1-50
--monthly-cloud-cap-eurOptionalnumber
Most the pool's VMs may cost per billing month, euros net: started minutes × azure.hourlyEur. At the cap no VM starts and jobs wait. Omitted or null: no cap
Constraints: 0-1000000
May be null.
--runner-group-idOptionalstring
A runner group whose repository and ref rules decide which runs reach the pool
Constraints: uuid
--azureRequiredobject
Where and how the VMs run. No secret: the pool signs in by workload identity federation; the pool shows the issuer, subject and audience its app registration must trust
Constraints: JSON
Example
dcloud ci runner-pools create-azure --name example --labels '["example"]' --max-size 1 --azure '{}'Generated from the API description, the same one the API checks requests against and the CLI is built from.