You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure MySQL Flexi Server跨区域复制CLI命令--location参数报错咨询

Azure MySQL Flexible Server CLI跨区域副本创建问题

核心结论

az mysql flexible-server replica create命令不支持--location参数,这是你收到unrecognized arguments报错的直接原因。

正确的跨区域副本CLI创建方式

要在东部区域创建跨区域副本,需使用--replica-location参数指定目标区域(确保你的Azure CLI版本为最新,旧版本可能未支持该参数),命令示例:

az mysql flexible-server replica create --replica-name az-flexi-master-west-dr -g primary-DB --source-server az-flexi-master --replica-location eastus

补充说明

  • 门户支持直接选择目标区域是因为后台集成了区域配置逻辑,而CLI的参数设计需使用专门的副本区域参数,而非通用的--location。
  • 跨区域复制的前提条件:源服务器需启用Geo冗余备份、且不在基本定价层。

内容的提问来源于stack exchange,提问作者BSG

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.11 00:32:46