Implementing vertical scaling for an Azure SQL database using PowerShell
An Azure SQL Database has multiple purchase models and service tiers for different workloads. There are two purchasing models: DTU-based and vCore-based. There are multiple service tiers within these purchasing models.
Having multiple service tiers provides us with the flexibility to scale up or scale down based on the workload or activity in an Azure SQL database.
In this recipe, we’ll learn how to automatically scale up an Azure SQL Database whenever the CPU percentage is above 40%.
Getting ready
In a new PowerShell window, execute the Connect-AzAccount
command and follow the steps to log in to your Azure account.
You will need an existing Azure SQL database for this recipe. If you don’t have one, create an Azure SQL database by following the steps mentioned in the Provisioning and connecting to an Azure SQL database using PowerShell recipe of Chapter 5, Configuring and Securing...