Recently I worked with a team having a requirement to send ad-hoc queries to an Azure Synapse Analytics database using front-end tools such as Power BI and Excel. Users would need to query Synapse periodically a few times a week without a set schedule or specific working hours. Behind the SQL endpoint, the underlying Azure Synapse Dedicated SQL Pools provide the power of a Cloud MPP database for massive data volumes (potentially billions of rows) receiving complex queries. When the Synapse Dedicated SQL Pools are running, they are also running up a bill. The situation presented a unique problem - How can I give non-technical ad-hoc users the ability to resume Synapse without taking the risk that they forget to pause it and run up unnecessary charges by leaving it running while nobody is sending queries?
Fortunately, integration with other tools in the Microsoft ecosystem provided a solution. In less than an hour (a few minutes once you've done it before) you can enable those non-technical ad-hoc users to simply enter a keyword into Teams to Resume Synapse, run it for a set length of time, and then have it automatically Pause again.
I've embedded two videos below that walk you through the process of setting up a Microsoft Teams "Keyword Trigger" to Resume and then Pause Synapse Dedicated SQL Pools. Here's a quick list of the Microsoft tools you will need to build it yourself:
Video #1 - Create Azure Data Factory Pipelines to Pause & Resume Azure Synapse Dedicated SQL Pools
Steps:
Video #2 - Use a Keyword in Microsoft Teams with a Power Automate Flow to Resume & Pause Azure Synapse
Steps:
Those of you who have experience with either Azure Data Factory or Power Automate will realize that this architectural pattern can be extended to a great deal of new possibilities. For example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.