Provisioning and configuring a wake-up script for a serverless SQL database
Azure SQL Database is offered in two compute tiers: provisioned, and serverless. While a provisioned SQL database will be always running, a serverless database can pause when not in use and start again when connections flow in. Automatically pausing an Azure SQL database helps to save costs when the database is not being used.
While pausing the database is automatic, the database only starts when the first connection request comes in. Starting a database can take a few minutes of waiting time and cause inconvenience to customers. Configuring a wake-up script to start a paused database is a proactive method to reduce this waiting time. The following recipe will configure a serverless database and deploy a wake-up script to start the database at a specific schedule. At a high level, we will be doing the following:
- Configuring the serverless compute tier for an existing database
- Creating an Azure...