@Vinayak_Nagpal,
I have experimented a little on my side :
SPOT e2-medium NO GPU
SPOT n1-standard-1 + GPU NVIDIA T4
SPOT n1-standard-1 + GPU NVIDIA P100
STANDARD g2-standard-4 L4 GPU
SPOT g2-standard-4 L4 GPU
All template used Rocky Linux 8 with the latest Nvidia driver (570) x86/64, x86_64 optimized for GCP built on 20250710
.
I have reproduced the same error :
Job gets non-retryable information Batch Error: code - CODE_GCE_UNSUPPORTED_OPERATION, description - Creating queued resource with SPOT VMs is not supported..
Surprisingly, I was able to create a SPOT g2-standard-4 L4 GPU
VM from the same template.
Using STANDARD g2-standard-4 L4 GPU
was, at first, delayed :
Waiting for resources. Currently there are not enough resources available to fulfill the request
But ended up with success after a while.
Using T4
or even P100
works fine, even on SPOT.
I’ve also seen 2 things that are interesting.
From Log Explorer :

From the failed job itself :

The VM provisioning model is stuck at Pending, even once it failed.
Also, when you create a Cloud Batch and select a GPU oriented VM type, you can’t select an L4
type.
Per my understanding,
- You can use SPOT VM with Cloud Batch, even with GPU
- There is an issue with
L4
GPU x Cloud Batch that may be linked to insufficient ressources
- OR, you never used
L4
before and something/someone updated your template, leading to this issue
- OR, GCP without communication, decided to remove
L4
from Cloud Batch (point 2 ?). I found nothing in the documentation saying that L4
cannot be used in Cloud Batch
As a workaround, I think that you should update your template in order to use another type of GPU (T4
, P100
).
I’ve opened a ticket with all these information.