Azure CLI samples for Azure SQL Database

The following table includes links to Azure CLI script examples for Azure SQL Database.

Create a single database and an elastic pool
Create a single database and configure a firewall rule This CLI script example creates a single Azure SQL database and configures a server-level firewall rule.
Create elastic pools and move pooled databases This CLI script example creates SQL elastic pools, and moves pooled Azure SQL databases, and changes performance levels.
Scale a single database and an elastic pool
Scale a single database This CLI script example scales a single Azure SQL database to a different performance level after querying the size information for the database.
Scale an elastic pool This CLI script example scales a SQL elastic pool to a different performance level.