Skip to main content

Triage and Remediation

Remediation

Using Console

Below are concise, console‑only steps to ensure automatic upgrades are enabled for Vertex AI Workbench notebooks (both Managed and User-managed), since both appear in the same UI.

1. Open Vertex AI Workbench

  1. Go to the Google Cloud Console: https://console.cloud.google.com
  2. In the top bar, select the correct project.
  3. From the left navigation menu, go to:
    Vertex AI → Workbench.
You will see two tabs (or filters), commonly:
  • Managed notebooks
  • User-managed notebooks

2. Managed Notebooks: Enable automatic upgrades

  1. Click the Managed notebooks tab (if not already selected).
  2. Find the notebook instance you want to fix.
  3. Click the notebook’s name to open its Details page.
  4. On the details page, look for a section named Environment, Runtime, or Auto-upgrade (label can vary slightly by UI version).
  5. Look for an option like:
    • Auto-upgrade (or Notebook upgrades)
    • A toggle such as Enable automatic upgrades or Enable auto-upgrade
  6. If it is off, click Edit at the top of the page (or Edit settings / Edit runtime).
  7. Turn on the Auto-upgrade / Enable automatic upgrades toggle.
  8. Click Save (or Save changes / Update).
If the UI does not allow changing this on an existing managed notebook (older versions sometimes restrict it), you must:
  1. Click New notebook.
  2. During creation, under Environment / Advanced / Upgrade settings, make sure Enable automatic upgrades is checked.
  3. Recreate your environment and migrate notebooks from the old instance.

3. User-managed Notebooks: Enable automatic upgrades

User-managed notebooks are usually tied to a Compute Engine VM and often have an “Enable upgrades” or similar flag in their configuration.
  1. Click the User-managed notebooks tab.
  2. Locate your notebook instance and click its name to open details.
  3. Look for:
    • An Edit button (or Open in AI Platform / Edit VM)
    • A configuration section showing Upgrade schedule or Enable upgrades.
  4. If present and editable:
    • Click Edit.
    • Turn on Enable upgrades / Auto-upgrade (or similar wording).
    • Click Save or Update.
If there is no way to change it on the existing instance:
  1. Click New notebook → choose the appropriate image/type.
  2. In the creation form, expand Advanced options (or similar).
  3. Ensure the checkbox for Enable upgrades / Auto-upgrade or equivalent is checked.
  4. Create the instance and migrate your notebooks/workloads from the old instance.

4. Verification

For each notebook:
  1. Open its Details page again in Vertex AI → Workbench.
  2. Confirm that:
    • The Auto-upgrade / Automatic upgrades / Enable upgrades field is shown as Enabled or On.
That satisfies the requirement “Ensure that automatic upgrades are enabled for your Vertex AI notebook instances” via the GCP Console.
On Vertex AI Workbench (user-managed) notebooks, “automatic upgrades” are tied to the instance being upgradeable. If an instance was created with --no-upgradeable, it will not receive automatic upgrades; this cannot be flipped in-place and you must recreate the instance as upgradeable.Below are CLI steps to (1) verify and (2) remediate by recreating:

1. Verify whether an instance is upgradeable

Look at the upgradeable field:
  • upgradeable: true → automatic upgrades are enabled.
  • upgradeable: false → instance will not receive automatic upgrades; proceed to remediation.

2. Capture the current configuration (for recreation)

Note the following fields you will reuse:
  • machineType
  • bootDiskType, bootDiskSizeGb
  • dataDiskType, dataDiskSizeGb (if present)
  • vmImage or containerImage
  • network, subnet
  • Any labels or metadata you care about.

3. Stop the existing instance

(Wait until it reaches state: STOPPED.)

4. Create a new upgradeable instance

Create a new instance that is upgradeable by not using --no-upgradeable (upgradeable is the default).Example (adjust with values from step 2):
Key point: do not pass --no-upgradeable. If you omit it, the instance is upgradeable and will receive automatic upgrades.You can confirm again:
upgradeable: true confirms auto-upgrades are enabled.

5. Move notebook files and delete old instance

  1. Start both old and new instances.
  2. Copy notebooks (e.g., via:
    • gsutil to a Cloud Storage bucket, or
    • SSH / SCP between VMs, or
    • direct file upload/download in the Jupyter UI).
  3. Once everything is migrated and verified, delete the old non‑upgradeable instance:
After this, your notebooks will run on an upgradeable (auto‑updating) Vertex AI Workbench instance.
Below is how to enable automatic upgrades for Vertex AI Workbench (Managed Notebooks) instances using Python.

1. Prerequisites

  1. Have gcloud configured and authenticated:
  2. Install the Notebooks client library:

2. Enable automatic upgrades on an existing instance

3. Create a new instance with automatic upgrades enabled

4. Notes

  • UpgradeType.AUTOMATIC is the key setting to ensure automatic upgrades.
  • Replace project_id, location, instance_id, and machine_type with your actual values.