Azure SQL Database Documentation

Configure Serverless resource limits

The Serverless compute tier automatically scales compute resources based on workload demand. You can define minimum and maximum compute limits to control cost and performance.

Prerequisites

Step‑by‑step guide

  1. Open the Azure portal and navigate to your SQL Database.
  2. Select Compute + storage in the left menu.
  3. Under Compute tier, choose Serverless.
  4. Set the Minimum vCores and Maximum vCores values.
  5. Click Save to apply changes.

Example using Azure CLI

az sql db update \
  --resource-group MyResourceGroup \
  --server myserver \
  --name mydatabase \
  --capacity 0.5 \
  --family Gen5 \
  --tier GeneralPurpose \
  --compute-model Serverless \
  --min-capacity 0.5 \
  --max-capacity 2

Resource limits reference

ParameterAllowed rangeDefault
Min vCores0.5 – 80.5
Max vCores1 – 404
Auto‑pause delay (min)0 – 6060

Monitoring usage

Use Azure Monitor metrics cpu_percent and vCores to track scaling behavior. Set alerts to be notified when usage reaches the maximum limit.

FAQ

What happens if the workload exceeds the maximum vCores?
The database throttles queries until usage drops below the limit.
Can I change limits without downtime?
Yes, adjustments are applied dynamically without restarting the database.