azuresql-db-local-to-cloud

azuresql-db-local-to-cloud is a skill for Claude Code, Codex from microsoft/azure-sql-database-container. It costs 185 tokens per session (3,473 once invoked), scanned A, original, MIT.

A guide for building and testing an application against the local Azure SQL Database container, then running the same application against Azure SQL Database in the cloud. Only the connection string—the setting that tells the app where the database is—changes.

In plain words
What is it for?
Use it to check that local database work will run in Azure, and to configure local and cloud deployments with the same application code.
Why use it?
It removes the need to maintain separate queries, drivers, or schema versions for local development and the cloud.

Skill for Claude CodeCodex

Part of the azure-sql-database-container plugin — 17 skills shipped together

About the project

Azure SQL Database container packages the Azure SQL Database engine so developers can run it locally in a container while building and testing applications before deploying to Azure. It is intended for local development and continuous integration, with catalogue add-ons helping coding agents work with the container.

microsoft/azure-sql-database-container · 17 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/microsoft/azure-sql-database-container/azuresql-db-local-to-cloud
Any agent
npx skills add microsoft/azure-sql-database-container --skill azuresql-db-local-to-cloud
Clone the repo
git clone --depth 1 https://github.com/microsoft/azure-sql-database-container

Made for: Claude Code, Codex.

Or install azure-sql-database-container, the plugin that ships this one along with the rest of its 17 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azuresql-db-local-to-cloud

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/azure-sql-database-container/azuresql-db-local-to-cloud.svg)](https://agentmods.dev/skills/microsoft/azure-sql-database-container/azuresql-db-local-to-cloud)
Your own site
<a href="https://agentmods.dev/skills/microsoft/azure-sql-database-container/azuresql-db-local-to-cloud"><img src="https://agentmods.dev/badge/skills/microsoft/azure-sql-database-container/azuresql-db-local-to-cloud.svg" alt="Measured on agentmods" height="20"></a>
Per session 185 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00185 $0.03473
Opus 5 $0.00093 $0.01736
Sonnet 5 $0.00037 $0.00695
Haiku 4.5 $0.00018 $0.00347

Measured today against content hash aba2faac5279, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

azuresql-db-local-to-cloud scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/azuresql-db-local-to-cloud/SKILL.md · 264 lines

How it starts

The opening of the file, as written. The whole thing — 264 lines — stays where its author put it; the contents beside it link to each section on GitHub.

From the Azure SQL Database container to Azure SQL Database: same code, local to cloud

Build and test against the local container, then deploy the same application code to Azure SQL Database in the cloud. Only the connection string changes. Nothing else.

This works because the local container is the Azure SQL Database engine, not the SQL Server image. SELECT SERVERPROPERTY('EngineEdition') returns 5 and SERVERPROPERTY('Edition') returns 'SQL Azure', the same as the cloud. So the SQL surface your code depends on is the same in both places.

The one rule

Do not change application code between local and cloud. The application reads its connection string from a single environment variable, SQL_CONNECTION_STRING. Local development sets it to the container; cloud deployment sets it to the Azure SQL server. Same binaries, same queries, same schema.

If you find yourself editing queries, drivers, or schema to "make it work in Azure", stop: that is a bug. The only thing that legitimately differs is the connection string (and, with it, the auth method).

The single env var, two values

Standardize on SQL_CONNECTION_STRING. House style spells the keywords User Id= / Password= / Database= so every example matches. Uid= and Pwd= are documented SqlClient synonyms and work too. ODBC strings are a separate grammar and use Uid= / Pwd= as their own keywords.

Local (container, SA auth):

Server=localhost,1433;Database=appdb;User Id=sa;Password=YourStr0ng_Passw0rd;TrustServerCertificate=true

Cloud (Azure SQL Database, Microsoft Entra auth):

Server=your-server.database.windows.net,1433;Database=appdb;Authentication=Active Directory Default;Encrypt=true

Note what stays identical: Database=appdb, the table names, the parameterized SQL. Only Server, the auth fields, and TLS posture move.

Local SA auth vs cloud Entra auth (why, not just how)

Local: the container is provisioned with one bootstrap login, sa, set via the MSSQL_SA_PASSWORD environment variable. There is no identity provider required in front of a container on your laptop, so password auth over a trusted self-signed cert (TrustServerCertificate=true) is the pragmatic local default.

Read the full file on GitHub · 264 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +6 lines aba2faac5279
  2. 5d ago First seen · 258 lines · 185 tokens per session scan A 1ab8a4f98012

Subscribe to this mod's changes

azuresql-db-local-to-cloud is a skill published in the GitHub repository microsoft/azure-sql-database-container (17 stars, last pushed today), licensed MIT. It adds 185 tokens to every session and 3,473 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

google-cloud-storage-fuse

Mounts Cloud Storage buckets as a POSIX file system with Cloud Storage FUSE (gcsfuse). Use when interacting with gcsfuse: decide whether FUSE, native gs:// reads, or Filestore/Managed Lustre fits a workload, deploy tuned mounts on GKE, Compute Engine, or Cloud Run, enable and size file, stat, and list caches, tune…

google/skills · 214 tokens

cloud-databases-onboarding

Guides users through discovering their database requirements, recommends a Google Cloud database based on a recommendation matrix, and assists in database creation. Use when a user asks 'What database service should I use?', 'Help me pick a database', or when a user wants to create a new database on Google Cloud.…

google/skills · 83 tokens

cloud-sql-basics

This file generates or explains Cloud SQL resources. Use this file when the user asks to create a Cloud SQL instance or database for MySQL, PostgreSQL, or SQL Server. Cloud SQL manages third-party MySQL, PostgreSQL, and SQL Server instances as resources in Cloud SQL. For example, when Cloud SQL creates an open-source…

google/skills · 108 tokens

azure-resource-manager-mysql-dotnet

Azure MySQL Flexible Server SDK for .NET. Database management for MySQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "MySQL", "MySqlFlexibleServer", "MySQL Flexible Server", "Azure Database for MySQL", "MySQL database…

microsoft/skills · 87 tokens

azure-mgmt-mongodbatlas-dotnet

Manage MongoDB Atlas Organizations as Azure ARM resources using Azure.ResourceManager.MongoDBAtlas SDK. Use when creating, updating, listing, or deleting MongoDB Atlas organizations through Azure Marketplace integration. This SDK manages the Azure-side organization resource, not Atlas clusters/databases directly.

microsoft/skills · 64 tokens

azure-resource-manager-redis-dotnet

Azure Resource Manager SDK for Redis in .NET. Use for MANAGEMENT PLANE operations: creating/managing Azure Cache for Redis instances, firewall rules, access keys, patch schedules, linked servers (geo-replication), and private endpoints via Azure Resource Manager. NOT for data plane operations (get/set keys, pub/sub) …

microsoft/skills · 114 tokens