google compute builder documentation example code cleanup (#8551)

This commit is contained in:
chrisL 2020-01-27 07:53:17 -07:00 committed by Adrien Delorme
parent eab8f43151
commit 63cba2dc00
1 changed files with 7 additions and 2 deletions

View File

@ -45,8 +45,13 @@ scopes when launching the instance.
For `gcloud`, do this via the `--scopes` parameter:
``` shell
$ gcloud compute --project YOUR_PROJECT instances create "INSTANCE-NAME" ... \
--scopes "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/devstorage.full_control" \
$ gcloud compute instances create INSTANCE-NAME \
--project YOUR_GCP_PROJECT \
--image-family ubuntu-1804-lts \
--image-project gce-uefi-images \
--network YOUR_GCP_NETWORK \
--zone YOUR_GCP_ZONE \
--scopes "https://www.googleapis.com/auth/compute,https://www.googleapis.com/auth/devstorage.full_control"
```
For the [Google Developers Console](https://console.developers.google.com):