Azure防火墙-转换值\"Dnat \"时出错输入 [英] Azure Firewall - Error converting value \"Dnat\" to type

查看:65
本文介绍了Azure防火墙-转换值\"Dnat \"时出错输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试通过ARM模板将更新部署到我的Azure防火墙.使用API​​版本2018-08-01

Trying to deploy updates to my Azure firewall thru ARM templates. Using API version 2018-08-01

我收到以下错误消息

New-AzureRmResourceGroupDeployment:10:10:05-资源Microsoft.Network/azureFirewallsrg"失败,并显示消息"{
  错误":{
    "代码":"InvalidRequestFormat",
    " message":无法解析该请求.",
    详细信息":[
     {
       代码":"InvalidJson",
       "message":错误转换值\" Dnat \".键入"Microsoft.WindowsAzure.Networking.Nrp.Frontend.Contract.Csm.Public.SecureGateway.NatRuleCollectionAction".路径"properties.natRuleCollections [0] .properties.action", 第1行,位置3000
     }
    ]
  }
}'

New-AzureRmResourceGroupDeployment : 10:10:05 - Resource Microsoft.Network/azureFirewalls 'rg' failed with message '{
  "error": {
    "code": "InvalidRequestFormat",
    "message": "Cannot parse the request.",
    "details": [
      {
        "code": "InvalidJson",
        "message": "Error converting value \"Dnat\" to type 'Microsoft.WindowsAzure.Networking.Nrp.Frontend.Contract.Csm.Public.SecureGateway.NatRuleCollectionAction'. Path 'properties.natRuleCollections[0].properties.action', line 1, position 3000
      }
    ]
  }
}'

配置片段

"natRuleCollections" :[

推荐答案

使用模板时,始终最好使用门户或Powershell/CLI进行更改,然后再使用 Resources.Azure.Com 来查看JSON会发生什么.您可以比较差异,以查看模板如何接收新数据. 
When working with templates, it is always best to use the portal or Powershell / CLI to make the change, and then use Resources.Azure.Com to see what happens with the JSON. You can compare the difference to see how templates would like to receive the new data. 


这篇关于Azure防火墙-转换值\"Dnat \"时出错输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆