A cloud engineer needs to launch a Compute Engine VM instance named `app-server` into a custom Virtual Private Cloud subnet named `backend-subnet`. Which `gcloud compute instances create` command flag must be used to place the VM directly into this target subnet?
- --subnet=backend-subnetCevap
- B--network-tier=backend-subnet
- C--vpc-zone=backend-subnet
- D--address=backend-subnet
Cevap
Use the `--subnet=backend-subnet` flag with `gcloud compute instances create` to deploy the virtual machine into a specific VPC subnet.
The `--subnet` flag in `gcloud compute instances create` specifies the subnetwork to which the primary network interface of the new VM instance should be attached.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine VM Networking Flags in gcloud CLI