ARM Templates for Azure Functions with many appSettings for different environments and slots

后端 未结 3 600
迷失自我
迷失自我 2020-12-10 19:02

I\'ve got two Azure Function apps that use deployment slots, stage and production. These two Azure Function apps have about 50~ key:value pairs in Application Settings to de

3条回答
  •  有刺的猬
    2020-12-10 19:30

    To answer this piece:

    Is it also true that all parameters defined in the parameter file have to be defined in the deployment template file in the parameters object?

    Yes everything in the parameters file needs to be defined in the deployment file. The opposite is not true. Everything defined in your deployment file does not need to be defined in your parameters file. The definition in the deployment file can have a default value:

    "location": {
      "type": "string",
      "defaultValue": "Central US",
      "metadata": {
        "description": "Specifies the Azure location where the key vault should be created."
      }
    },
    

    Alternatively a parameter can be passed in as an override parameter in a release task.

提交回复
热议问题