使用Azure Resource Manager部署node.js站点

时间:2016-03-11 22:11:20

标签: node.js azure azure-resource-manager

我正在努力使用我的node.js应用程序的ARM部署脚本。如果我指向一个带有MVC应用程序的repo,它一切正常,但不使用node.js应用程序。

node.js网站是否有任何特定设置? 这是我的脚本的资源部分:

{
  "apiVersion": "2015-08-01",
  "name": "[parameters('nodeName')]",
  "type": "Microsoft.Web/sites",
  "location": "[resourceGroup().location]",
  "tags": {
    "[concat('hidden-related:', resourceGroup().id, '/providers/Microsoft.Web/serverfarms/', parameters('nodeName'))]": "Resource",
    "displayName": "Website"
  },
  "dependsOn": [
    "[concat('Microsoft.Web/serverfarms/', parameters('nodeName'))]"
  ],
  "resources": [
    {
      "apiVersion": "2015-08-01",
      "name": "web",
      "type": "sourcecontrols",
      "dependsOn": [
        "[resourceId('Microsoft.Web/Sites', concat(parameters('nodeName')))]"
      ],
      "properties": {
        "repoUrl": "https://github.com/microServiceBus/microservicebus.node.git",
        "branch": "master",
        "IsManualIntegration": true
      }
    }
  ],
  "properties": {
    "name": "[parameters('nodeName')]",
    "serverFarmId": "[resourceId('Microsoft.Web/serverfarms', parameters('nodeName'))]",
    "siteConfig": {
      "appSettings": [
        {
          "Name": "hubUri",
          "Value": "[parameters('hubUri')]"
        },
        {
          "Name": "nodeName",
          "Value": "[parameters('nodeName')]"
        },
        {
          "Name": "organizationaId",
          "Value": "[parameters('organizationaId')]"
        }
      ]
    }
  }
}

1 个答案:

答案 0 :(得分:0)

问题是repo的名称中有一个点(microservicebus.node.git)。我相信这个错误已经修复或即将修复。