Skip to content

Site AppSetting Apis

David Ebbo edited this page Jan 31, 2015 · 6 revisions
  • Get AppSettings
ARMClient.exe post /{subscription}/resourceGroups/{resourceGroup}/providers/Microsoft.Web/sites/{site}/config/appSettings/list?api-version=2014-11-01

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

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

Example payload.json below to add DUMMY appSettings.

{
  "properties": {
    "WEBSITE_NODE_DEFAULT_VERSION": "0.10.32",
    "DUMMY": "1"
  }
}

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

Clone this wiki locally