capabilities.work

Update Function App Site Configuration and Restart

A 3-step recipe with Microsoft Azure Functions. We can help you get access.

Recipe · 3 steps

Update Function App Site Configuration and Restart

Read, update, and apply site configuration with a restart.

  1. Read the current web site configuration so the caller has the baseline before applying changes.
  2. Apply the supplied configuration via create-or-update of the web config.
  3. Restart the function app so the new configuration takes effect.
What you'll need to have ready
  • subscriptionId: The Azure subscription identifier (GUID).
  • resourceGroupName: The resource group that contains the function app.
  • name: The name of the function app.
  • config: The SiteConfig properties object to apply (e.g. {alwaysOn:true}).
  • apiVersion: The ARM api-version to use for all requests.
For your developer

Arazzo workflow microsoft-azure-functions:update-site-config, 3 operations: WebApps_GetConfiguration → WebApps_CreateOrUpdateConfiguration → WebApps_Restart. Specs on APIs.io.