How to Auto scaleup and scaledown the DWU in Azure Synapse Dedicated SLQ Pool by pipeline?

K Madhavi 5 Reputation points
2023-03-20T10:28:24.43+00:00

How do you Auto increase or auto decrease the DWU in Azure synpase Dedicated SQL Pool using a pipeline?

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.
5,379 questions
{count} votes

2 answers

Sort by: Most helpful
  1. AnnuKumari-MSFT 34,556 Reputation points Microsoft Employee Moderator
    2023-03-21T10:35:33.5266667+00:00

    @K Madhavi ,

    Welcome to Microsoft Q&A platform and thanks for posting your query here.

    As I understand your question, you want to know how to create a pipeline which automatically scales up and down the dedicated sql pool in synapse . Please let me know if thats not the ask here.

    Pre-requisite: Provide contributor access to synapse managed identity in synapse workspace.

    Follow the below steps while creating the synapse pipeline:

    1. Inside the web activity settings, use the URL:

    https://management.azure.com/subscriptions/{SubscriptionID}/resourceGroups/{ResourceGroupName}/providers/Microsoft.Synapse/workspaces/{SynapseWorkspaceName}/sqlPools/{SQLPoolName}?api-version=2021-04-01-preview

    2. Select method as PUT

    3. Provide Header as : Content-Type application/json

    4. Provide body in this format :

    { "location": "eastus", "sku": {"name": "DW200c"} }

    Other supported api-versions are '2019-06-01-preview, 2020-12-01, 2021-03-01, 2021-04-01-preview, 2021-05-01, 2021-06-01-preview, 2021-06-01, 2020-04-01-preview'. Other supported locations are 'westus2, eastus, northeurope, westeurope, southeastasia, australiaeast, westcentralus, southcentralus, eastus2, uksouth, westus, australiasoutheast, eastasia, brazilsouth, centralus, centralindia, japaneast, northcentralus, canadacentral, canadaeast, koreacentral, southafricanorth, ukwest, japanwest, francecentral, switzerlandnorth, germanywestcentral, norwayeast, uaenorth, westus3, jioindiawest, southindia'

    5. Provide authentication method as : 'System Assigned Managed Identity' and resource as : https://management.azure.com/

    Attaching the video for reference:

    229009-scaleup2.gif

    Helpful Resources:

    https://erwindekreuk.com/2021/02/scale-your-sql-pool-dynamically-in-azure-synapse/

    https://learn.microsoft.com/en-us/answers/questions/931306/unable-scale-synapse-pool-using-adf-managed-identi


    Hope it helps. Kindly accept the answer by clicking Accept answer and mark it as helpful by clicking yes.


  2. Nandan Hegde 36,156 Reputation points MVP Volunteer Moderator
    2023-03-21T16:29:31.0766667+00:00

    Hey, Can you be a little more clear w.r.t your ask as to when do you need auto increase or decrease?
    scenarios at which you want to upgrade or downgrade?

    But you can use TSQL script :

    ALTER DATABASE MySQLDW MODIFY (SERVICE_OBJECTIVE = 'DW1000c') ;

    to modify the DWUs

    0 comments No comments

Your answer

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