gpt4 book ai didi

Azure DevOps 部署 : Task failed while parsing with following error: Unexpected end of JSON input

转载 作者:行者123 更新时间:2023-12-03 04:09:29 24 4
gpt4 key购买 nike

我尝试使用 Azure DevOps Pipeline (CI/CD) 从 GitHub 部署 ARM 模板。我创建了一个空白参数文件,因为我现在没有使用它,但是当我单击部署按钮时,出现以下错误。

Error: Ensure the Parameters file ( 'd:\a\r1\a\Github drops\azuredeploy.parameters.json' ) is valid. Task failed while parsing with following error: Unexpected end of JSON input

这是parameters.json的内容

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
},
"resources": [ ]
}

最佳答案

参数文件必须采用以下格式:

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"storageAccountType": {
"value": "Standard_GRS"
}
}
}

正在阅读:https://learn.microsoft.com/en-us/azure/azure-resource-manager/resource-group-template-deploy#parameter-files

关于Azure DevOps 部署 : Task failed while parsing with following error: Unexpected end of JSON input,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57539441/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com