microsoft/skills

azure-resource-manager-mysql-dotnet

用 .NET 管理 MySQL Flexible Server、网络、备份和扩缩

  • SKILL.md 已保存
  • 中文用法已整理
  • 安装与运行未实测
先判断是否解决你的问题

azure-resource-manager-mysql-dotnet 是什么?

此 Skill 使用 Azure.ResourceManager.MySql 管理 Azure Database for MySQL Flexible Server:服务器、数据库、firewall、配置项、Entra管理员、备份恢复、启停和扩缩。SQL查询/应用连接仍要使用 MySqlConnector 等数据面客户端。

中文说明由本站依据来源整理;英文原文保留在页面下方。

按客户端选择安装入口

怎么接入你的 Agent?

  1. 定位完整 Skill 目录

    打开本项目来源,核对 SKILL.md 及其引用的脚本和资料。

  2. 交给你正在用的 Agent

    在下面选择客户端,展开并复制安装指令,让 Agent 读取来源后选择安装方式。

  3. 确认识别,再做具体任务

    让 Agent 回报安装目录和识别到的名称 azure-resource-manager-mysql-dotnet,然后按本页使用示例提供材料。

展开并复制给 Codex 的安装指令
发送给 Codex

安装并检查 azure-resource-manager-mysql-dotnet

请在 Codex 的当前工作环境中安装并检查 azure-resource-manager-mysql-dotnet 这个 Skill。

项目身份:microsoft/skills / azure-resource-manager-mysql-dotnet
来源:https://github.com/microsoft/skills/blob/f03ec5392f7a0f3aca12af47477e92f1edf7b44c/.github/plugins/azure-sdk-dotnet/skills/azure-resource-manager-mysql-dotnet/SKILL.md
已定位的源文件:.github/plugins/azure-sdk-dotnet/skills/azure-resource-manager-mysql-dotnet/SKILL.md

1. 先阅读真实 SKILL.md 和它引用的必要文件,确认触发条件、安装方式、依赖与权限;尊重源文件要求的审批步骤。
2. 按当前客户端支持的方式安装完整 Skill 目录,保留已有配置,不只复制一段提示词。涉及缺失凭证、目标目录或权限时先列出缺项并向我确认。
3. 安装后回读实际目录、Skill 名称和识别结果,说明哪些步骤已完成,哪些只是文档检查,不得把安装成功当作任务已经实测。
4. 如来源提供了可安全验证的示例,在我提供所需输入后做一个最小任务;创建、修改、删除、部署或发送内容前,按源文件和我的授权执行。
准备输入,再按步骤执行

装好以后,具体怎么用?

准备哪些材料

  • 安装 Azure.ResourceManager.MySql 与 Azure.Identity,准备 subscription/resource group和管理员权限。
  • 先决定区域、SKU/存储、HA、备份保留、私网/防火墙和身份认证;创建数据库服务器会计费。
  • 密码示例为占位,应从 Key Vault 或受控配置注入;生产环境先设计恢复验证和变更窗口。

实际使用顺序

  1. 先只读枚举 server、version、state、SKU、databases、backup policy 与网络规则。
  2. 创建时设置Flexible Server参数和安全认证,确认版本仍支持、HA区域匹配且备份满足RPO/RTO。
  3. 逐条增加窄范围 firewall rule;禁止把 0.0.0.0 “允许Azure服务”规则当作默认最安全选项。
  4. 调整参数/扩容/启停前看影响;Point-in-Time Restore 应创建恢复副本并核验数据,不直接覆盖源库。
使用示例

从一个具体任务开始

本站根据源文件编写的使用示例,未在本站实际运行。示例中的文件由你提供。

安装并识别 Skill 后发送

复制一个具体任务

请按此 Skill 对现有 MySQL Flexible Server 做只读运维检查草案:列server版本/state、backup retention、HA、storage、firewall rule,不读密码、不执行更改。
预期结果

得到只读配置盘点方案;未访问数据库或云资源。

使用前先看这些限制

使用条件与边界

  • ARM SDK管理实例配置,不执行 SQL 查询或应用数据迁移。
  • Stop/Start、Restart、更新 SKU/存储和 firewall 都会影响服务可用性或安全边界。
  • 源文连接字符串里的管理员密码是占位示例,不应复用或写入日志。
针对这个 Skill 的疑问

常见问题

允许 Azure 服务访问是否等于只允许自己的Azure资源?

该规则通常放宽到服务定义的 Azure IP 范围,并非只限你订阅内资源。生产环境优先评估私网或精确源地址。

恢复操作会覆盖原服务器吗?

源文示例以新名称创建 Point-in-Time Restore 副本;先校验恢复点和结果,再决定切换应用连接。

需要核对时再展开原文

来源原文与资料状态

源文件
已保存 SKILL.md,抓取于 2026-11-16T12:36:35.145Z
中文使用说明
已针对下方源文件版本整理用途、用法和常见问题
安装与任务测试
本站未执行安装或任务测试
来源复核
本页中文用法已对照保存版本的完整 SKILL.md 阅读整理
展开 SKILL.md 原文、章节与历史收录资料

.github/plugins/azure-sdk-dotnet/skills/azure-resource-manager-mysql-dotnet/SKILL.md · 抓取时间 2026-11-16T12:36:35.145Z

以下保留源文件的 description、章节及摘录,供核对中文说明;完整文件通过上方链接打开。

抓取成功不代表已完成安装或任务测试。

来源 description(原文)

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 management", "MySQL firewall", "MySQL backup".

查看源文件章节 / Source sections
  • 原文:Azure.ResourceManager.MySql (.NET)
  • 安装 / Installation
  • 原文:Environment Variables
  • 原文:Authentication
  • 原文:Resource Hierarchy
  • 原文:Core Workflows
  • 原文:1. Create MySQL Flexible Server
  • 原文:2. Create Database
  • 原文:3. Configure Firewall Rules
  • 原文:4. Update Server Configuration
  • 原文:5. Configure Entra ID Administrator
  • 原文:6. List and Manage Servers
  • 原文:7. Backup and Restore
  • 原文:8. Stop and Start Server
  • 原文:9. Update Server (Scale)
  • 原文:10. Delete Server
  • 原文:Key Types Reference
  • 原文:SKU Tiers
  • 原文:High Availability Modes
  • 原文:Best Practices
  • 原文:Error Handling
  • 原文:Connection String
  • 原文:Related SDKs
  • 原文:Reference Links
原文:Azure.ResourceManager.MySql (.NET)

Azure Resource Manager SDK for managing MySQL Flexible Server deployments.

安装 / Installation

```bash dotnet add package Azure.ResourceManager.MySql dotnet add package Azure.Identity ``` **Current Version**: v1.2.0 (GA) **API Version**: 2023-12-30 > **Note**: This skill focuses on MySQL Flexible Server. Single Server is deprecated and scheduled for retirement.

原文:Environment Variables

```bash AZURE_SUBSCRIPTION_ID=<your-subscription-id> # Required: Azure subscription ID AZURE_RESOURCE_GROUP=<your-resource-group> # Required: resource group name AZURE_MYSQL_SERVER_NAME=<your-mysql-server> # Required: MySQL Flexible Server name AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production ```

原文:Authentication

```csharp using Azure.Identity; using Azure.ResourceManager; using Azure.ResourceManager.MySql; using Azure.ResourceManager.MySql.FlexibleServers; // Local dev: DefaultAzureCredential. Production: set AZURE_TOKEN_CREDENTIALS=prod or AZURE_TOKEN_CREDENTIALS=<specific_credential> var credential = new DefaultAzureCredential( DefaultAzureCredential.DefaultEnvironmentVariableName ); // Or use a specific credential directly in production: // See https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet#credential-classes // var credential = new ManagedIdentityCredential(); ArmClient client = new ArmClient(credential); ```

原文:Resource Hierarchy

``` Subscription └── ResourceGroup └── MySqlFlexibleServer # MySQL Flexible Server instance ├── MySqlFlexibleServerDatabase # Database within the server ├── MySqlFlexibleServerFirewallRule # IP firewall rules ├── MySqlFlexibleServerConfiguration # Server parameters ├── MySqlFlexibleServerBackup # Backup information ├── MySqlFlexibleServerMaintenanceWindow # Maintenance schedule └── MySqlFlexibleServerAadAdministrator # Entra ID admin ```

原文:1. Create MySQL Flexible Server

```csharp using Azure.ResourceManager.MySql.FlexibleServers; using Azure.ResourceManager.MySql.FlexibleServers.Models; ResourceGroupResource resourceGroup = await client .GetDefaultSubscriptionAsync() .Result .GetResourceGroupAsync("my-resource-group"); MySqlFlexibleServerCollection servers = resourceGroup.GetMySqlFlexibleServers(); MySqlFlexibleServerData data = new MySqlFlexibleServerData(AzureLocation.EastUS) { Sku = new MySqlFlexibleServerSku("Standard_D2ds_v4", MySqlFlexibleServerSkuTier.GeneralPurpose), AdministratorLogin = "mysqladmin", AdministratorLoginPassword = "YourSecurePassword123!", Version = MySqlFlexibleServerVersion.Ver8_0_21, Storage = new MySqlFlexibleServerStorage { StorageSizeInGB = 128, AutoGrow = MySqlFlexibleServerEnableStatusEnum.Enabled, Iops = 3000 }, Backup = new MySqlFlexibleServerBackupProperties { BackupRetentionDays = 7, GeoRedundantBackup = MySqlFlexibleServerEnableStatusEnum.Disabled }, HighAvailability = new MySqlFlexibleServerHighAvailability { Mode = MySqlFlexibleServerHighAvailabilityMode.ZoneRedundant, StandbyAvailabilityZone = "2" }, AvailabilityZone = "1" }; ArmOperation<MySqlFlexibleServerResource> operation = await servers .CreateOrUpdateAsync(WaitUntil.Completed, "my-mysql-server", data); MySqlFlexibleServerResource server = operation.Value; Console.WriteLine($"Server created: {server.Data.FullyQualifiedDomainName}"); ```

文件 SHA256:b84da3a18d7e44d9598c9462a085638a7e0a8b4cfe020767ef844321960e346e

仓库许可证记录:MIT;skill-declaration-captured-not-interpreted,查看来源。

SKILL.md原文description · 2026-11-16T12:36:35.145Z

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 management", "MySQL firewall", "MySQL backup".

查看历史简介来源

历史收录数据

来源仓库microsoft/skills
Skill源路径.github/plugins/azure-sdk-dotnet/skills/azure-resource-manager-mysql-dotnet/SKILL.md

安装前请让使用的Agent先读取这个SKILL.md及其所在目录,确认依赖和所需权限。此页不生成未经来源验证的安装命令。

返回 Skills 目录,按任务继续筛选 · MCP与Skills教程与资源