I have set my compute region and zone to us-east4
using Google Cloud SDK
$ gcloud init
$ gcloud config set compute/region us-east4
$ gcloud config set compute/zone us-east4
however the AutoML Vision model keeps defaulting to us-central1
. I have tried restarting terminal and training a new model after confirming that my compute region is set to us-east4
and the project/account are correct.
$ gcloud config configurations list
NAME IS_ACTIVE ACCOUNT PROJECT DEFAULT_ZONE DEFAULT_REGION
default True xxxxxxxxxxxxx@gmail.com xxxxx-xxxxx-xxxxxxxxxxxxxx us-east4-b us-east4
When I request a prediction in Python with my compute region argument set to us-east4
I get an error saying:
400 List of found errors: 1.Field: name; Message: The provided location ID is not valid. : InvalidArgument
However when I request a prediction with the compute region argument set to us-central1
it works and I get a prediction response. I am not sure why this is or if I'm missing something.