Azure SQL Database automate scale between DTU model to vCore model

jase jackson USA 201 Reputation points
2021-01-21T08:57:52.017+00:00

Automating scaling within the DTU purchasing model is relatively straightforward (i.e. using power shell) however I'm struggling to find a way to scale between purchasing models. A typical scenario would be automating a scale from S2 tier to BC_Gen5_6 vcore model.

Can anyone advise any available scripts/options that allow this capability (with parameters covering model, storage, hybrid licensing, read replica...) or is there a valid reason why this is not possible?

Thanks

Azure SQL Database
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,367 questions
{count} votes

Accepted answer
  1. Anurag Sharma 17,631 Reputation points
    2021-01-22T06:12:46.167+00:00

    Hi @jase jackson USA , welcome to Microsoft Q&A forum.

    Please refer to below PowerShell script to migrate an existing DTU based model to vCores:

    $database = Set-AzSqlDatabase -ResourceGroupName $resourceGroupName `  
        -ServerName $servername `  
        -DatabaseName $databasename `  
        -Edition "GeneralPurpose" `  
        -RequestedServiceObjectiveName "GP_Gen4_2" `  
        -MaxSizeBytes 1099511627776 `  
        -HighAvailabilityReplicaCount 2 `  
        -LicenseType BasePrice  
    

    Values for different parameters are as below:

    Edition:
    None
    Basic
    Standard
    Premium
    DataWarehouse
    Free
    Stretch
    GeneralPurpose
    Hyperscale
    BusinessCritical

    RequestedServiceObjectiveName:
    It changes with respect to edition we choose. Please refer to below link for more details based on tier we choose:
    https://learn.microsoft.com/en-us/azure/azure-sql/database/resource-limits-vcore-single-databases

    -MaxSizeBytes: This changes the storage size of the database

    For more details related to PowerShell command you can refer to below link that has complete details about each and every parameter on top of what is mentioned in above script:

    https://learn.microsoft.com/en-us/powershell/module/az.sql/set-azsqldatabase?view=azps-5.4.0

    Please let me know if this helps or else we can discuss further on the same.

    ----------

    If answer helps, please select 'Accept Answer' as this could help other community members having similar queries.


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.