title: Is there a way to find the GCP VM startup script's return code
body: <p>I have startup scripts associates with the Compute Engine VMs. I would like to know if there is a way to find out the return code of these startup scripts. I currently tail the serial port logs to check the return code. But, is there any other place where i can look this up?</p>
  
  <pre><code>gcloud compute instances tail-serial-port-output compute-vm-1 \
      --project=gcp-project-hw1 --zone=us-central1-a | egrep "Return code "
  </code></pre>