You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Google Cloud创建Workforce Identity Pool时提示global位置不存在

解决Workforce身份池创建报错:Locations instance [global] not found

常见修复方案:

  1. 升级gcloud CLI到最新版本
    旧版gcloud可能不兼容workforce-pools命令的global位置参数,执行升级命令:
gcloud components update

升级完成后重新运行创建命令。

  1. 启用IAM Workforce Identity Federation相关API
    未激活对应API会导致方法未找到错误,运行以下命令启用:
gcloud services enable iam.googleapis.com
  1. 核对组织ID格式
    确保<my org id>是正确的组织ID(可直接使用数字ID,或格式为organizations/[数字ID]),格式错误会引发请求异常。

  2. 检查命令拼写与格式
    修正命令里的拼写小问题(不影响功能但提升可读性),确保语法正确:

gcloud iam workforce-pools create my-workforce-pool \
    --organization=<my org id> --location=global \
    --description="My workforce pool description."

如果以上操作无效,确认当前账号拥有roles/iam.workforcePoolAdmin或组织级的IAM创建权限,权限不足也可能导致类似错误。

内容的提问来源于stack exchange,提问作者itinneed2022_1

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.10 13:30:47