Using Console
Using CLI
gcloud compute instances list --format="table(name, shielded-vm-integrity-enabled)"
This will list all the compute instances in your project along with their shielded VM integrity status.
gcloud compute instances update INSTANCE_NAME --shielded-vm-integrity-enabled
Replace INSTANCE_NAME with the name of the instance that needs to be remediated.
gcloud compute instances list --format="table(name, shielded-vm-integrity-enabled)"
This will list all the compute instances in your project along with their shielded VM integrity status. All instances should now have “true” in the “shielded-vm-integrity-enabled” column.
Using Python