provision-azure-sql-db
Installation
SKILL.md
Provision an Azure SQL Database
Creating the database is the easy part. Three things go wrong: nothing can reach it, the free offer is configured with a value the CLI rejects, and the free offer runs out saying nothing.
The flags below, and the help text quoted for them, are those of Azure CLI 2.90.0. The free offer numbers are the product documentation's.
The shape of a working provision
Four commands, not one. A plan with fewer than four is incomplete.
# 1. resource group
az group create -n <rg> -l <region>
# 2. logical server
az sql server create -g <rg> -n <server> -l <region> \
--admin-user <admin> --admin-password <password>