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

创建Azure恢复服务Vault时API报错:redundancySettings参数无效

解决Azure Recovery Services Vault创建API的redundancySettings参数错误问题

你的请求体存在两个关键结构错误,导致API返回redundancySettings parameter is invalid的报错:

  • SKU属性位置错误
    你将sku嵌套在properties对象内,但根据API规范,sku是顶层属性,需要和location、properties同级。

  • 请求结构解析失败连锁报错
    虽然standardTierStorageRedundancy的取值LocallyRedundant是合法选项,但因为SKU位置错误,API无法正确解析整个请求结构,进而判定redundancySettings无效。

修正后的请求体代码如下:

backup_storage_config = {
    "location": location,
    "sku": {
        "name": "Standard"
    },
    "properties": {
        "publicNetworkAccess": "Enabled",
        "redundancySettings": {
            "standardTierStorageRedundancy": "LocallyRedundant"
        }
    }
}

额外注意:确保location传入的是有效的Azure区域名称(例如eastus),同时验证订阅ID、资源组名称、Vault名称等路径参数均正确无误。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.07.14 14:27:38