Is it possible to make azure elastic pool scale automatically?

Hang Heng 20 Reputation points
2023-07-26T07:56:02.42+00:00

I was wondering on how to make azure elastic pool scale automatically?

For an example, from 06:00AM to 06:00PM, I would like to use SQL Elastic Pools's Pricing tire is Standard: 100eDTus and from 06:01PM to 05:59AM, I would like to use SQL Elastic Pools's Pricing tire is Standard: 50eDTus.

Please help, I am looking forward to hearing from all of you.

Thank you.

Azure SQL Database
{count} votes

Accepted answer
  1. Alberto Morillo 34,671 Reputation points MVP Volunteer Moderator
    2023-07-26T12:32:10.8266667+00:00

    Yes, you can. You can schedule a PowerShell script using Azure Automation to scale up the eDTUs and another one to scale down the eDTUs, Below, you will find how to scale up or down using PowerShell:

    # Scale the pool
    $elasticPool = Set-AzSqlElasticPool -ResourceGroupName $resourceGroupName `
        -ServerName $serverName `
        -ElasticPoolName $poolName `
        -Edition "Standard" `
        -Dtu 100 `
        -DatabaseDtuMin 20 `
        -DatabaseDtuMax 100
    
    
    

    To get started with Azure Automation, try this short training.


0 additional answers

Sort by: Most helpful

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.