π‘οΈ Azure SQL Database serverless auto-pause is disabledπ’
- Contextual name: π‘οΈ Database serverless auto-pause is disabledπ’
- ID:
/ce/ca/azure/sql-database/serverless-auto-pause-disabled - Tags:
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
- Policy Type:
BEST_PRACTICE - Policy Categories:
COST
Statsβ
not available
Logicβ
- π§ prod.logic.yamlπ’
- π Azure SQL Databaseπ΄
- π Azure SQL Database - object.extracts.yaml
- π§ͺ test-data.json
Descriptionβ
Descriptionβ
Ensure that auto-pause is enabled for eligible Azure SQL Database serverless databases. Auto-pause suspends compute after the configured period of inactivity, which can reduce charges for intermittent workloads.
Rationaleβ
Azure SQL Database serverless automatically scales compute for variable workloads. When auto-pause is enabled, it also pauses inactive databases and resumes them when they receive a new connection. This avoids paying for idle compute while retaining the database and its configuration.
Impactβ
With auto-pause disabled, an idle serverless database continues to incur compute charges. Enabling it can add resume latency to the first connection after a pause, so it may be unsuitable for workloads that require consistently low connection latency or cannot be paused between scheduled jobs.
Auditβ
This policy evaluates an Azure SQL Database that uses the General Purpose serverless compute tier.
A Database is marked as
INCOMPLIANTwhenAuto Pause Delayis-1, which means that auto-pause is disabled.... see more
Remediationβ
Remediationβ
Before you beginβ
Review connection patterns, scheduled jobs, and the acceptable resume latency. Choose an idle delay that keeps the database active between expected workloads. Confirm that the database is eligible for auto-pause and that pausing is compatible with its replication, backup, and application requirements.
Azure portalβ
- Open SQL databases and select the affected database.
- Select Compute + storage.
- Select Configure database.
- Set Auto-pause delay to an appropriate value instead of Disabled.
- Select Apply.
Azure CLIβ
az sql db update \
--resource-group <resource-group-name> \
--server <server-name> \
--name <database-name> \
--auto-pause-delay <idle-delay-in-minutes>PowerShellβ
Set-AzSqlDatabase `
-ResourceGroupName "<resource-group-name>" `
-ServerName "<server-name>" `
-DatabaseName "<database-name>" `
-AutoPauseDelay <idle-delay-in-minutes>Verify the changeβ
az sql db show \
--resource-group <resource-group-name> \
--server <server-name> \
... [see more](remediation.md)
policy.yamlβ
Linked Framework Sectionsβ
| Section | Sub Sections | Internal Rules | Policies | Flags | Compliance |
|---|---|---|---|---|---|
| πΌ Cloudaware Framework β πΌ Resource Optimization | 37 | no data |