# Enable auto-shutdown for Vertex AI Workbench user-managed Notebooks

Vertex AI Workbench user-managed notebooks instances let you create and manage deep learning virtual machine (VM) instances that are prepackaged with [JupyterLab](https://jupyterlab.readthedocs.io/en/stable/getting_started/overview.html). It is powerful but doesn't have an auto-shutdown feature. Is it possible to enable it without using Cloud Schedule and Cloud Function?

I found that, behind the scene, user-managed notebook instances are Google-prebuilt Compute Engine instances.  
From the Vertex AI console:

![](https://doitintl.zendesk.com/attachments/token/iBs0B26q5CVV2tZPvV5ZgCKgz/?name=image.png align="left")

From Compute Engine console, it is shown as a normal instance:

![](https://doitintl.zendesk.com/attachments/token/BsHtTiUha6WPhUeohg1vydEgh/?name=image.png align="left")

Since it is just a normal Compute Engine VM, I wonder if it can leverage the built-in `INSTANCE SCHEDULES` [feature](https://cloud.google.com/compute/docs/instances/schedule-instance-start-stop).

During my lab, I set up my Compute Engine schedule looks like this:

![](https://doitintl.zendesk.com/attachments/token/jJX4KvwIBIJEvWQlbzYqdnd0Y/?name=image.png align="left")

From the logs, I can find that the instance was stopped:

![](https://doitintl.zendesk.com/attachments/token/DX5Aumj0fQBGMVW48lh38v5AN/?name=image.png align="left")

Note that for some reason, there was a delay in scheduling the shutdown events. From the logs, it was roughly 14-15 minutes.

Anyway, it worked! Now you can rest assure that your Vertex AI Workbench user-managed notebooks won't cost money during the nights.
