title: Upgrade instance with a GPU from gcloud command
body: <p>I have an instance that I can upgrade and downgrade machine type from gcloud command. For example, I can do </p>
  
  <pre><code>gcloud compute instances set-machine-type instance-name --machine-type f1-micro
  </code></pre>
  
  <p>to downgrade an existing instance and </p>
  
  <pre><code>gcloud compute instances set-machine-type ubuntu --machine-type n1-standard-1
  </code></pre>
  
  <p>to upgrade the machine type. But I need to also attach an GPU when I upgrade. I can do that on web interface but I need to do this on command line. </p>