Azure resource manager template website app settings

后端 未结 4 1364
慢半拍i
慢半拍i 2021-01-05 16:35

I am trying to add app settings to my Azure Website via the JSON template files as part of the Azure Resource Manager.

In an Azure Resource template json file, there

4条回答
  •  旧时难觅i
    2021-01-05 16:57

    I have a sample that shows how to do this here. It looks like this:

        {
          "apiVersion": "2014-11-01",
          "name": "appsettings",
          "type": "config",
          "dependsOn": [
            "[resourceId('Microsoft.Web/Sites', parameters('siteName'))]"
          ],
          "properties": {
            "AppSettingKey1": "Some value",
            "AppSettingKey2": "My second setting",
            "AppSettingKey3": "My third setting"
          }
        }
    

    Please make sure you use the newest 2014-11-01 API, as the way it deals with app settings is a bit different from the older API.

提交回复
热议问题