Hello:
I was able to find python commands in Microsoft Documentations, I need help for scripting on Azure Synapse.
How to stop Azure ML Compute Instance using Python. (I hope it will help others)
https://github.com/dem108/azureml-compute-instance-mgmt
-- get_status() gets the latest status of the ComputeInstance target
instance.get_status()
-- stop() is used to stop the ComputeInstance
-- Stopping ComputeInstance will stop the billing meter and persist the state on the disk.
-- Available Quota will not be changed with this operation.
instance.stop(wait_for_completion=True, show_output=True)
-- start() is used to start the ComputeInstance if it is in stopped state
instance.start(wait_for_completion=True, show_output=True)
-- restart() is used to restart the ComputeInstance
instance.restart(wait_for_completion=True, show_output=True)
Thanks