当尝试使用以下命令从谷歌云项目中删除默认网络时:
gcloud compute networks delete default
返回以下错误:
`ERROR: (gcloud.compute.networks.delete) Could not fetch resource:
- The network resource 'projects/<PROJECT-NAME>/global/networks/default'
is already being used by 'projects/<PROJECT-NAME>/global/addresses/google-
managed-services-default'`
如何解决?
我也遇到了这个问题:
但是 CLI 在删除时会选择错误的区域:
解决方案是将
--global
标志添加到delete
命令中:我的错误
gcloud compute addresses list
显示了资源并将gcloud compute addresses delete google-managed-services-default
其删除