Scripting Auto Pause & Resume for two azure services

Jayesh Dave 1 Reputation point
2021-08-07T20:50:13.923+00:00

Hello All:

I am looking for script that can auto pause & resume Azure Synapse Dedicated SQL Pool & Azure ML Compute Node.

I need a pointer and or a link which will help me to get a head start.

Any help or link is greatly appreciated.

Thanks

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
{count} votes

2 answers

Sort by: Most helpful
  1. Jayesh Dave 1 Reputation point
    2021-08-07T21:11:26.88+00:00

    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

    0 comments No comments

  2. HimanshuSinha 19,547 Reputation points Microsoft Employee Moderator
    2021-08-09T21:29:35.513+00:00

    Hello @Jayesh Dave ,
    Thanks for the ask and using the Microsoft Q&A platform .
    Just wanted to point you to the below document , Its should help .

    https://learn.microsoft.com/en-us/azure/synapse-analytics/sql/how-to-pause-resume-pipelines#:~:text=Pause%20and%20resume%20for%20dedicated,an%20existing%20data%20orchestration%20process.

    Please do let me know how it goes .
    Thanks
    Himanshu
    Please do consider clicking on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.