Skip to content

Site AppSetting Apis

Suwat Ch edited this page Jan 16, 2015 · 6 revisions
  • Get AppSettings
ARMClient.exe post https://management.azure.com/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/config/appSettings/list?api-version=2014-06-01

Note: it is a POST since the result contains sensitive site info (only Owner and Contributor allowed).

  • Update AppSettings
ARMClient.exe put https://management.azure.com/{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/config/appSettings?api-version=2014-06-01 @payload.json

Example payload.json below to add DUMMY appSettings.

{
  "location": "West US",
  "properties": [
    {
      "name": "WEBSITE_NODE_DEFAULT_VERSION",
      "value": "0.10.32"
    },
    {
      "name": "DUMMY",
      "value": "1"
    }
  ]
}

Note: The update will replace the existing appSettings entirely. Hence, roundtripping any existing values is required.

Clone this wiki locally