无法通过 gcloud google 云平台删除磁盘

Can´t delete disks through gcloud google cloud platform

我正在尝试通过 gcloud 删除磁盘,但它不起作用:/。 其他所有命令都有效(创建、附加、分离)。

这是我使用的代码:

gcloud auth activate-service-account account@project.iam.gserviceaccount.com --key-file=KEY
gcloud compute disks delete disk_name --zone=europe-west3-b

当我执行代码时没有任何反应。如果我按 "stop operation" 它将永远保持该状态,我必须重新启动 Powershell。服务帐户具有计算实例管理员权限 (v1),因此不可能。

已更新到最新版本,但没有任何变化。

提前致谢:)

此问题与 Powershell ISE 相关,无法 return 从 gcloud 提示。可以按照文档 Scripting gcloud CLI commands:

解决

Cloud SDK comes with a variety of tools like filtering, formatting, and the --quiet flag, enabling you to effectively handle output and automate tasks.

并使用标志 -q.