GoogleCloudPlatform / google-cloud-powershell

PowerShell cmdlets for the Google Cloud Platform
http://googlecloudplatform.github.io/google-cloud-powershell/
Apache License 2.0
135 stars 61 forks source link

Remove-GceDisk - regional disks are not supported #662

Open abullo-clgx opened 1 year ago

abullo-clgx commented 1 year ago

Hello there,

I'm trying to remove regional disk, but I'm not able to to so. When I execute Remove-GceDisk diskname it says that "Parameter Zone was not set and does not have a default value." When I set the zone, it says "Google.Apis.Requests.RequestError The resource ... was not found" At same time I'm not able to set the Region for that request. As workaround, instead of Remove-GceDisk I use gcloud compute disks delete $disk --region=$region --quiet My expectation that Remove-GceDisk in addition to -Zone should have -Region parameter so it could be used for regional disks removal as well.

Thanks.