01 Vertex AI notebook instances must be stopped before updating the shielded_instance_config configuration parameters. To stop your notebook instance, run workbench instances stop command (Windows/macOS/Linux) with the name of the instance that you want to stop as the identifier parameter:
gcloud workbench instances stop tm-vertex-ai-notebook-instance
--location=us-central1-a
--format="yaml(state)"
02 The command output should return the new operational status for the selected notebook instance:
Waiting for operation on Instance [tm-vertex-ai-notebook-instance] to be updated with [projects/cc-vertex-project-123123/locations/us-central1-a/operations/operation-abcd1234abcd-abcd1234abcd-abcd1234-abcd1234]...done.
Updated workbench instance tm-vertex-ai-notebook-instance [https://notebooks.googleapis.com/v2/projects/cc-vertex-project-123123/locations/us-central1-a/operations/operation-abcd1234abcd-abcd1234abcd-abcd1234-abcd1234].
state: STOPPED
03 Integrity Monitoring requires Virtual Trusted Platform Module (vTPM). To enable vTPM for your notebook instance, follow the steps outlined on this page. Once vTPM is enabled, run workbench instances update command (Windows/macOS/Linux) with the name of the Vertex AI notebook instance that you want to update as the identifier parameter, to enable Integrity Monitoring for the selected notebook instance:
gcloud workbench instances update tm-vertex-ai-notebook-instance
--location=us-central1-a
--shielded-integrity-monitoring true
--format="yaml(gceSetup.shieldedInstanceConfig.enableIntegrityMonitoring)"
04 The command output should return the current status of the Integrity Monitoring feature:
Waiting for operation on Instance [tm-vertex-ai-notebook-instance] to be updated with [projects/cc-vertex-project-123123/locations/us-central1-a/operations/operation-abcd1234abcd-abcd1234abcd-abcd1234-abcd1234]...done.
Updated workbench instance tm-vertex-ai-notebook-instance [https://notebooks.googleapis.com/v2/projects/cc-vertex-project-123123/locations/us-central1-a/operations/operation-abcd1234abcd-abcd1234abcd-abcd1234-abcd1234].
gceSetup:
shieldedInstanceConfig:
enableIntegrityMonitoring: true
05 To restart your Vertex AI notebook instance, run workbench instances start command (Windows/macOS/Linux) with the name of the instance that you want to start as the identifier parameter:
gcloud workbench instances start tm-vertex-ai-notebook-instance
--location=us-central1-a
--format="yaml(state)"
06 The command output should return the new status of the selected notebook instance:
Waiting for operation on Instance [tm-vertex-ai-notebook-instance] to be updated with [projects/cc-vertex-project-123123/locations/us-central1-a/operations/operation-abcd1234abcd-abcd1234abcd-abcd1234-abcd1234]...done.
Updated workbench instance tm-vertex-ai-notebook-instance [https://notebooks.googleapis.com/v2/projects/cc-vertex-project-123123/locations/us-central1-a/operations/operation-abcd1234abcd-abcd1234abcd-abcd1234-abcd1234].
state: PROVISIONING
07 Repeat step no. 1 – 6 for each Vertex AI notebook instance that you want to update, created for the selected GCP project.
08 Repeat steps no. 1 – 7 for each GCP project deployed in your Google Cloud account.