/azure-sql-database-container:azuresql-db-seedfrom azure-sql-database-container
Populates a local Azure SQL Database container's appdb with realistic sample/test data for development and testing. Activated by phrases like 'seed the database' or 'add test data'.
Ships in azure-sql-database-container. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fill an existing appdb with realistic sample data so the app has something to render, query, and test against. This is the Azure SQL engine (Private Preview), not the SQL Server image.
Use this skill for populating data. For bootstrapping a whole new app use azuresql-db-scaffold;
for restoring an existing .bacpac use azuresql-db-import.
Verified on 2026-09-05 against the container image
sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io/azure-sql/db-dev:latest, reporting EngineEdition
5, Edition SQL Azure, build 12.0.2000.8. All seven executable checks behind this skill
passed: the engine identity, Msg 12713 for BULK INSERT and for OPENROWSET(BULK ...)
against a local file, Msg 547 for a child row inserted before its parent, OUTPUT ... INTO
capturing generated identity values, the tally recipe fanning out 1000 rows, and bcp
shipping in the image.
sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io/azure-sql/db-dev:latest (multi-architecture: linux/amd64 and linux/arm64).
Do NOT use mcr.microsoft.com/mssql/server (the SQL Server image).docker login sqldbpreview-dpgaeqhmgphzd4bk.azurecr.io
first with the pull-only credentials from https://aka.ms/sqldbcontainerpreview-signup (they may rotate).SELECT SERVERPROPERTY('EngineEdition') returns 5 and
SERVERPROPERTY('Edition') returns 'SQL Azure'.ACCEPT_EULA=Y and a complex MSSQL_SA_PASSWORD
(example literal used throughout: YourStr0ng_Passw0rd). The engine listens on 1433.--platform linux/amd64
only to explicitly test x64 emulation.CREATE DATABASE appdb on a master
connection before you seed anything.USE appdb to switch databases. In a user-database session USE returns
Msg 40508. Always select the target database in the connection string (Database=appdb, or
-d appdb for sqlcmd).SQL_CONNECTION_STRING. Strings use User Id= / Password= /
Database= and TrustServerCertificate=true. sqlcmd uses -C to trust the self-signed cert.Seeding into a database that does not exist fails. Create appdb on a master connection first:
docker exec sqldb /opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P "$MSSQL_SA_PASSWORD" -C -b \
-Q "IF DB_ID('appdb') IS NULL CREATE DATABASE appdb;"
If the container is not running yet, start it and provision appdb using the canonical start recipe in the azuresql-db-container skill, then come back here.
Referential integrity is enforced. A child row whose foreign key points at a parent that does not
exist yet fails with Msg 547 (conflict with the FOREIGN KEY constraint). So insert in dependency
order: parents first, then the rows that reference them.
For a simple dbo.author -> dbo.book model that means: insert authors, capture their ids, then
insert books that reference those author ids. Open references/seed-snippets.md
when you need the copy-pasteable T-SQL for a model with more than two tables.
Rules of thumb:
IF NOT EXISTS or MERGE, or DELETE children then
parents before re-inserting) so re-running does not duplicate rows or leave orphans.To create realistic volume (hundreds or thousands of rows) do it set-based with a numbers/tally approach rather than a row-by-row loop. A tally derived from system views produces a sequence you join against to fan out rows in a single statement. Open references/seed-snippets.md when you want the runnable version, which generates 1000 rows. Wrap large inserts in an explicit transaction so a mid-load failure rolls back cleanly.
Per-stack seed recipes live in references/seed-snippets.md; open it once you know your data source and your stack:
dbo.author -> dbo.book) run via
docker exec -i sqldb ... -d appdb -i seed.sql, plus the set-based "generate 1000 rows" example.bcp for local CSV files, and BULK INSERT from Azure Blob Storage (the engine does not read local files: local BULK INSERT fails with Msg 12713, Azure-parity).@faker-js/faker generating rows, inserted with the mssql driver using parameters.Faker generating rows, inserted with pyodbc (ODBC Driver 18) using parameters.bcp streams the file over the connection, so it loads a local CSV that
BULK INSERT cannot reach. Copy the file in, then load it (-u trusts the
container's self-signed certificate, -F 2 skips the header row):
docker cp authors.csv sqldb:/tmp/authors.csv
docker exec sqldb /opt/mssql-tools18/bin/bcp dbo.author_stage in /tmp/authors.csv \
-S localhost -U sa -P "$MSSQL_SA_PASSWORD" -d appdb -u -c -t ',' -F 2
The staging table and the follow-up insert into the real table are in references/seed-snippets.md; read it when the CSV columns do not line up with the target table.
User Id=/Password=/Database=.mcr.microsoft.com/mssql/server; EngineEdition is 5.Msg 547).mcr.microsoft.com/mssql/server).USE appdb; select the database in the connection string or with -d appdb.bcp for local CSVs and Blob-based BULK INSERT, and Node (@faker-js/faker + mssql) and Python (Faker + pyodbc) parameterized inserts. Read it once you know your data source and stack.Authoritative, version-pinned references for the tools this skill uses (read the one you need):
If the Microsoft Learn MCP server is configured, use mcp__microsoft-learn__microsoft_docs_search or mcp__microsoft-learn__microsoft_docs_fetch to fetch the current version of any of these on demand. It is optional; when it is unavailable, the references above are authoritative.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
azure-sql, seed-data, test-fixtures, sample-data, dev-database
17 skills in this plugin
/azuresql-db-authConnects an app to the Azure SQL Database container securely, with a least-privilege database user instead of the sa login, the right auth method per environment, and safe handling of the connection secret. Use when a user asks "don't use sa in my app", "create a least-privilege database user", "app login for SQL", "which authentication should my app use", "secure the connection string", "Encrypt / TrustServerCertificate", "store the connection string in Key Vault", "dotnet user-secrets", "managed identity for Azure SQL", or "grant only the roles my app needs". SQL auth locally, Microsoft Entra or managed identity in the cloud, changing only the connection string. Reach for this before wiring an app to connect as sa, or before committing a connection string to source./azuresql-db-ciRuns integration tests against the Azure SQL Database container (Private Preview, local engine) in CI. Use when setting up GitHub Actions, Azure Pipelines, or GitLab CI to test against Azure SQL DB; when adding a database service container to a CI workflow; when tests need a real Azure SQL engine in the pipeline; or when you see "service container", "health-cmd", "ACR_USERNAME/ACR_PASSWORD", "MSSQL_SA_PASSWORD secret", or "integration test database". Also use when a workflow was about to pull the SQL Server image mcr.microsoft.com/mssql/server, in which case stop and use the Azure SQL Database engine image instead. Covers pulling from the private ACR with credentials, the service health check that runs sqlcmd inside the container so the runner needs no client tools, provisioning appdb before tests, and pointing the test connection string at the user database not master.npx claudepluginhub microsoft/azure-sql-database-container --plugin azure-sql-database-containerOther plugins' skills for the same job