Did you use the feature "Idle Shutdown"?
As per the documentation, a compute instance is considered inactive if the below conditions are met:
-
No active Jupyter Kernel sessions (which translates to no Notebooks usage via Jupyter, JupyterLab or Interactive notebooks)
-
No active Jupyter terminal sessions
-
No active AzureML runs or experiments
-
No SSH connections
-
No VS code connections; you must close your VS Code connection for your compute instance to be considered inactive. Sessions are auto-terminated if VS code detects no activity for 3 hours.