Deploying a Shielded VM FortiGate-VM
This is an example FortiGate-VM deployment leveraging Shielded VM features in GCP Compute Engine. The networks that this example uses have been created prior to running the command. Edit the commands to fit your environment prior to running the commands. This document assumes that the GCloud SDK CLI is installed and is ready to use for your environment. This method applies the bring your own license licensing method. For more information on GCP Shielded VM, see Shielded VMs.
Downgrading to a previous GA version when using a UEFI-enabled FortiGate instance is not possible. |
GCP marketplace deployments do not support enabling Shielded VM features. |
To deploy FortiGate-VM leveraging Shielded VM in GCP Compute Engine:
- Define environment variables:
project=<your project ID> zone=us-central1-a serviceaccount=<your service account> image=projects/fortigcp-project-001/global/images/fortinet-fgt-724-20230310-001-w-license
- Edit and run the following commands in GCP:
gcloud compute instances create shielded-vm-fortigate \ --project=$project \ --zone=$zone \ --machine-type=n2d-standard-2 \ --network-interface=network-tier=PREMIUM,private-network-ip=10.0.1.10,subnet=unprotected-public-subnet \ --network-interface=private-network-ip=10.0.2.10,subnet=protected-private-subnet,no-address \ --shielded-secure-boot \ --can-ip-forward \ --service-account=$serviceaccount \ --scopes=https://www.googleapis.com/auth/cloud-platform \ --create-disk=auto-delete=yes,boot=yes,device-name=shielded-vm-fortigate,image=$image,mode=rw,size=10,type=projects/$project/zones/$zone/diskTypes/pd-balanced \ --create-disk=auto-delete=yes,device-name=shielded-vm-fortigate-log,mode=rw,name=shielded-vm-fortigate-log,size=10,type=projects/$project/zones/$zone/diskTypes/pd-balanced
The
--shielded-secure-boot
flag explicitly enables the Shielded VM features for the instance that the aforementioned command creates. - View instance details and verify Shielded VM features are enabled, including trusted platform module (TPM) support:
To check TPM status in the FortiOS CLI, see TPM support for FortiGate-VM. |