章鱼Azure部署在阵列参数上失败

时间:2019-10-29 09:19:23

标签: azure octopus-deploy

通过章鱼进行部署时,

ARM模板中的数组类型参数失败

这是我声明参数的手臂模板的快照

"databaseArray" : {
  "type": "array",
  "defaultValue": [],
  "metadata" : {
      "description": "Object Array of databaseName / tier / SKU / backup"
  }
}

这是我在八达通中的变量声明。

变量名称:App.Databases

变量值:[{"databaseName": "core","tier": "Standard","SKU": "S1","backup": true}, {"databaseName": "web","tier": "Standard","SKU": "S1","backup": true}]

我不断遇到以下错误

Newtonsoft.Json.JsonReaderException:解析值后,遇到意外字符:d。路径'databaseArray.value',第1行,位置666。 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonTextReader.ParsePostValue() 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonTextReader.Read() 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonReader.Skip() 2019年10月29日19:32:53错误    在Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetExtensionData(JsonObjectContract合约,JsonProperty成员,JsonReader阅读器,字符串memberName,对象o) 2019年10月29日19:32:53错误    在Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject,JsonReader reader,JsonObjectContract contract,JsonProperty member,String id)中 2019年10月29日19:32:53错误    在Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader阅读器,Type objectType,JsonContract合同,JsonProperty成员,JsonContainerContract containerContract,JsonProperty containerMember,对象existValue)中 2019年10月29日19:32:53错误    在Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader,Type objectType,Boolean checkAdditionalContent)中 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader,Type objectType) 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonConvert.DeserializeObject(字符串值,类型,JsonSerializerSettings设置) 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonConvert.DeserializeObject [T](字符串值,JsonSerializerSettings设置) 2019年10月29日19:32:53错误    在Calamari.Azure.Deployment.Integration.ResourceGroups.ResourceGroupTemplateNormalizer.Normalize(String json) 2019年10月29日19:32:53错误    在Calamari.Azure.Deployment.Conventions.DeployAzureResourceGroupConvention.Install(运行部署部署) 2019年10月29日19:32:53错误    在Calamari.Deployment.ConventionProcessor.RunInstallConventions() 2019年10月29日19:32:53错误    在Calamari.Deployment.ConventionProcessor.RunConventions() 2019年10月29日19:32:53错误 正在运行回滚约定... 2019年10月29日19:32:53错误 解析值后,遇到意外字符:d。路径'databaseArray.value',第1行,位置666。 2019年10月29日19:32:53错误 Newtonsoft.Json.JsonReaderException 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonTextReader.ParsePostValue() 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonTextReader.Read() 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonReader.Skip() 2019年10月29日19:32:53错误    在Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetExtensionData(JsonObjectContract合约,JsonProperty成员,JsonReader阅读器,字符串memberName,对象o) 2019年10月29日19:32:53错误    在Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject,JsonReader reader,JsonObjectContract contract,JsonProperty member,String id)中 2019年10月29日19:32:53错误    在Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader阅读器,Type objectType,JsonContract合同,JsonProperty成员,JsonContainerContract containerContract,JsonProperty containerMember,对象existValue)中 2019年10月29日19:32:53错误    在Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader,Type objectType,Boolean checkAdditionalContent)中 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader,Type objectType) 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonConvert.DeserializeObject(字符串值,类型,JsonSerializerSettings设置) 2019年10月29日19:32:53错误    在Newtonsoft.Json.JsonConvert.DeserializeObject [T](字符串值,JsonSerializerSettings设置) 2019年10月29日19:32:53错误    在Calamari.Azure.Deployment.Integration.ResourceGroups.ResourceGroupTemplateNormalizer.Normalize(String json) 2019年10月29日19:32:53错误    在Calamari.Azure.Deployment.Conventions.DeployAzureResourceGroupConvention.Install(运行部署部署) 2019年10月29日19:32:53错误    在Calamari.Deployment.ConventionProcessor.RunInstallConventions() 2019年10月29日19:32:53错误    在Calamari.Deployment.ConventionProcessor.RunConventions() 2019年10月29日19:32:53错误    在Calamari.Azure.Commands.DeployAzureResourceGroupCommand.Execute(String [] commandLineArguments) 2019年10月29日19:32:53错误    在Calamari.Program.Execute(String [] args) 十月29th 2019 19:32:53致命 远程脚本失败,退出代码为100 十月29th 2019 19:32:53致命 在Azure墨尔本上部署数据库的操作失败

有人遇到过同样的问题吗?请帮助

0 个答案:

没有答案