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

Extend New-GceAttachedDiskConfig to support local SSD scratch disks #615

Closed pjmcc2009 closed 6 years ago

pjmcc2009 commented 6 years ago

Currently there is no way to use the Google Cloud Powershell tools to create a GCE instance with one or more local SSD scratch disks. This can be implemented by extending the New-GceAttachedDiskConfig cmdlet to include support for local SSD disks.

Proposed solution:

Extend the parameter set for New-GceAttachedDiskConfig to include a single parameter ScratchDiskZone which takes in a GCE zone as input. The cmdlet then returns a AttachedConfig object of type SCRATCH and diskType /zones/{zone}/diskTypes/local-ssd

quoctruong commented 6 years ago

This fix is available in version 1.0.1.8 of the module.