【问题标题】:InvalidXmlDocument: XML specified is not syntactically validInvalidXmlDocument:指定的 XML 在语法上无效
【发布时间】:2021-10-23 14:11:48
【问题描述】:

我正在遵循以下教程 https://docs.microsoft.com/en-us/azure/storage/common/storage-account-move?tabs=azure-portal 部署资源时显示验证已通过,但随后部署失败并出现以下错误,

{
  "code": "DeploymentFailed",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
  "details": [
    {
      "code": "InvalidXmlDocument",
      "message": "XML specified is not syntactically valid.\nRequestId:xxxx-xxx-xxx-36f2-xxx\nTime:2021-08-23T07:41:21.5159975Z"
    }
  ]
}

只有 json 文件,没有任何地方的 XML?只需导出模板并部署即可。

【问题讨论】:

    标签: azure azure-resource-manager azure-template


    【解决方案1】:

    读了很多,

    https://docs.microsoft.com/en-us/answers/questions/340510/arm-templates-storageaccountsfileservices-error-34.html Facing Issues on Deploying template for Azure File Share Storage Account

    我已经从 template.json 文件中删除了 fileServices、queueServices 和 tableServices,它可以工作了。

    【讨论】:

    • 就我而言,错误源于我基于 api 版本使用的无效/不推荐使用的属性。特别是 fileServices 上的 smb 属性。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-04-11
    • 1970-01-01
    • 2012-06-24
    • 1970-01-01
    • 2020-01-16
    相关资源
    最近更新 更多