azure-resource-manager-sql-dotnet

Provision and manage Azure SQL resources via Azure Resource Manager using the .NET SDK.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-resource-manager-sql-dotnet-davidrrowley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-resource-manager-sql-dotnet
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-resource-manager-sql-dotnet
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-resource-manager-sql-dotnet-davidrrowley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Enables developers and operators to automate management-plane provisioning and ongoing management of Azure SQL infrastructure so teams can avoid manual portal actions and brittle scripts.

Core Features & Use Cases

  • Server and Database Provisioning: Create and manage SqlServerResource and SqlDatabaseResource programmatically.
  • Cost and Scale Management: Create and manage ElasticPoolResource, scale SKUs, and move databases into/out of pools.
  • Networking and Security: Configure SqlFirewallRuleResource and VirtualNetworkRuleResource, manage private endpoints and auditing policies.
  • Operational Tasks: Check name availability, perform backups/restores, export/import bacpac, enable TDE, and handle long-running ARM operations with proper error handling.
  • Use Case: Automate CI/CD environment provisioning that creates a server, provisions a database in an elastic pool, configures firewall rules, and registers auditing and encryption settings.

Quick Start

Create a SQL server and a Standard S0 database in resource group rg-demo in EastUS using DefaultAzureCredential and ensure AZURE_SUBSCRIPTION_ID is set.

Frequently Asked Questions about azure-resource-manager-sql-dotnet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Azure SQL database provisioning in .NET CI/CD pipelines?

You can automate Azure SQL database provisioning in .NET by using the Azure.ResourceManager.Sql SDK to programmatically create SQL servers, databases, and elastic pools. This management-plane automation replaces manual portal actions and brittle scripts.

What is the best way to manage Azure SQL elastic pools and scale SKUs programmatically?

Managing Azure SQL elastic pools programmatically involves using the Azure.ResourceManager.Sql .NET SDK to create ElasticPoolResource instances, scale SKUs, and move databases into or out of pools. This enables cost and scale management directly within your applications.

Do I need DefaultAzureCredential and AZURE_SUBSCRIPTION_ID to provision Azure SQL via ARM?

Yes, provisioning Azure SQL via ARM in .NET requires DefaultAzureCredential for authentication and the AZURE_SUBSCRIPTION_ID environment variable. These prerequisites ensure secure access and proper routing of management-plane operations.

How does .NET handle long-running ARM operations when creating Azure SQL servers?

The .NET SDK handles long-running ARM operations for creating Azure SQL servers through proper async handling of methods like CreateOrUpdateAsync. Developers must also implement RequestFailedException-aware error handling to manage operational failures.

Can I configure Azure SQL firewall rules and virtual network rules using .NET?

Yes, you can configure Azure SQL firewall rules and virtual network rules using the Azure.ResourceManager.Sql .NET SDK. It allows you to manage SqlFirewallRuleResource and VirtualNetworkRuleResource to control networking and security access.

Why does my Azure SQL provisioning fail with RequestFailedException in .NET?

Azure SQL provisioning can fail with RequestFailedException due to invalid parameters, insufficient permissions, or network conflicts when calling CreateOrUpdateAsync. The Skill requires RequestFailedException-aware error handling to manage these operational scenarios.