gcloud compute tpus queued-resources create (QUEUED_RESOURCE : --zone=ZONE) --runtime-version=RUNTIME_VERSION (--accelerator-type=ACCELERATOR_TYPE | --topology=TOPOLOGY --type=TYPE) (--node-id=NODE_ID | [--node-count=NODE_COUNT : --node-prefix=NODE_PREFIX]) [--async] [--boot-disk=[KEY=VALUE,…]] [--data-disk=[mode=MODE],[source=SOURCE]] [--description=DESCRIPTION] [--guaranteed] [--internal-ips] [--labels=[KEY=VALUE,…]] [--metadata=[KEY=VALUE,…]] [--metadata-from-file=[KEY=VALUE,…]] [--network=NETWORK; default="default"] [--range=RANGE] [--reserved] [--scopes=[SCOPES,…]] [--service-account=SERVICE_ACCOUNT] [--shielded-secure-boot] [--spot] [--subnetwork=SUBNETWORK] [--tags=[TAGS,…]] [--valid-after-duration=VALID_AFTER_DURATION] [--valid-after-time=VALID_AFTER_TIME] [--valid-until-duration=VALID_UNTIL_DURATION] [--valid-until-time=VALID_UNTIL_TIME] [--reservation-host-folder=RESERVATION_HOST_FOLDER --reservation-host-organization=RESERVATION_HOST_ORGANIZATION --reservation-host-project=RESERVATION_HOST_PROJECT] [GCLOUD_WIDE_FLAG …]
my-queued-resource in zone
us-central2-b and project my-project, run:
gcloud compute tpus queued-resources create my-queued-resource --accelerator-type=v4-8 --runtime-version=v2-alpha-tpuv4 --node-id=my-node-001 --zone=us-central2-b --project=my-projectTo create a Queued Resource with multiple nodes, run:
gcloud compute tpus queued-resources create my-queued-resource --accelerator-type=v4-8 --runtime-version=v2-alpha-tpuv4 --node-count=2 --zone=us-central2-b --project=my-project
To set the project attribute:
queued_resource on the command line with a
fully specified name;
--project on the command line;
core/project.
QUEUED_RESOURCE
To set the queued_resource attribute:
queued_resource on the command line.
--zone=ZONEdefault compute/zone.
To set the zone attribute:
queued_resource on the command line with a
fully specified name;
--zone on the command line;
compute/zone.
--runtime-version=RUNTIME_VERSIONtpu-ubuntu2204-base.
--accelerator-type=ACCELERATOR_TYPE--topology=TOPOLOGY--type=TYPETYPE must be one of: v2,
v3, v4.
This flag argument must be specified if any of the other arguments in this group
are specified.
Specify TPU node(s) with either a single node id or a node count and an optional
node prefix
Exactly one of these must be specified:
Single node creation
--node-id=NODE_ID--node-id,
use --node-count to specify the number of nodes and optionally use
--node-prefix to specify the prefix for each node.
Multinode creation
--node-count=NODE_COUNT--node-prefix=NODE_PREFIX--node-count.
--async--boot-disk=[KEY=VALUE,…]gcloud compute tpus queued-resources create --boot-disk kms-key=<full_kms_key_name_here>kms-key--data-disk=[mode=MODE],[source=SOURCE]This flag must be repeated to provide multiple data disks. For example:
gcloud compute tpus queued-resources create --data-disk source=projects/my-project/zones/us-central1-c/disks/my-disk,mode=read-onlysourcemode--description=DESCRIPTION--guaranteed--internal-ips--labels=[KEY=VALUE,…]--metadata=[KEY=VALUE,…]--metadata='key1=value1,key2=value2'
--metadata-from-file=[KEY=VALUE,…]--metadata except the value for the entry will be read from
a local file. Example: --metadata-from-file='key1=value1.txt'
--network=NETWORK; default="default"--range=RANGE/29 range, for example 192.168.0.0/29.
Errors will occur if the CIDR range has already been used for a currently
existing TPU, the CIDR range conflicts with any networks in the user's provided
network, or the provided network is peered with another network that is using
that CIDR range.
--reserved--reservation-host-project,
--reservation-host-folder, or
--reservation-host-organization are present then this flag has no
effect.
--scopes=[SCOPES,…]--service-account=SERVICE_ACCOUNT--shielded-secure-boot--spot--subnetwork=SUBNETWORK--tags=[TAGS,…]--valid-after-duration=VALID_AFTER_DURATION--valid-after-time=VALID_AFTER_TIME--valid-until-duration=VALID_UNTIL_DURATION--valid-until-time=VALID_UNTIL_TIME--reservation-host-folder=RESERVATION_HOST_FOLDER--reservation-host-organization=RESERVATION_HOST_ORGANIZATION--reservation-host-project=RESERVATION_HOST_PROJECT--access-token-file,
--account, --billing-project,
--configuration,
--flags-file,
--flatten, --format, --help, --impersonate-service-account,
--log-http,
--project, --quiet, --trace-token, --user-output-enabled,
--verbosity.
Run $ gcloud help for details.
tpu/v2 API. The full documentation for this
API can be found at: https://cloud.google.com/tpu/
gcloud alpha compute tpus queued-resources create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.