无法对ARM模板应用自动缩放设置 [英] Cannot apply autoscale settings with ARM template

查看:45
本文介绍了无法对ARM模板应用自动缩放设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我最近在我的ARM模板中添加了以下代码段,以使我的appservice能够运行2个实例而不是1. 

i recently added the following snippet to my ARM template to enable my appservice to run 2 instances instead of 1. 

  { 

      "type":"microsoft.insights / autoscalesettings","
      " name":"[concat(variables('serviceplanname'),' - ',resourceGroup()。name)]",

      "apiVersion":"2015-04-01","
      "location":"[resourceGroup()。location]",$
      "properties":{

        "个人资料":[

          {

            "name":"自动创建的比例条件",

            "容量":{

              "minimum":"2","
              "maximum":"2","
              "default":"2"和"b $ b            },b $ b            "规则":[]

          }¥b $ b        ],
        "启用":真实,

        " name":"[concat(variables('serviceplanname'),' - ',resourceGroup()。name)]",

        "targetResourceUri":" [resourceId('Microsoft.Web / serverfarms',variables('serviceplanname'))]"

      },b $ b      "dependsOn":[

        " [resourceId('Microsoft.Web / serverfarms',variables('serviceplanname'))]"

      ]¥b $ b    }

 { 
      "type": "microsoft.insights/autoscalesettings",
      "name": "[concat(variables('serviceplanname'), '-', resourceGroup().name)]",
      "apiVersion": "2015-04-01",
      "location": "[resourceGroup().location]",
      "properties": {
        "profiles": [
          {
            "name": "Auto created scale condition",
            "capacity": {
              "minimum": "2",
              "maximum": "2",
              "default": "2"
            },
            "rules": []
          }
        ],
        "enabled": true,
        "name": "[concat(variables('serviceplanname'), '-', resourceGroup().name)]",
        "targetResourceUri": "[resourceId('Microsoft.Web/serverfarms', variables('serviceplanname'))]"
      },
      "dependsOn": [
        "[resourceId('Microsoft.Web/serverfarms', variables('serviceplanname'))]"
      ]
    }

部署此模板无法提供此错误

Deploying this template fails giving this error


2018-01-11T10:22:34.9611858Z ## [错误]冲突:{

推荐答案

你能分享规模规则刀片的截图吗?要隔离问题,请尝试将自动缩放规则添加到不同的/新的Web应用程序,如果可行,请参阅

< span style ="margin:0px; line-height:107%; font-family:'Verdana',sans-serif; font-size:10pt"> ---------------- -------------------------------------------------- -----------------------------

点击"标记为答案"在帮助您的帖子上"投票有用",这对其他社区成员有益。


这篇关于无法对ARM模板应用自动缩放设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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