githubEdit

Repairing Missing Function App Settings

Use these steps when a CIPP function app has lost its required environment variables and you need to restore them manually without scripted access.

Prerequisites

Identify Affected Function Apps

1

In the Azure Portal, navigate to Resource Groups.

2

Open the resource group for the affected CIPP instance (e.g. CIPP).

3

Locate the Function App resource — it will be the one whose name contains no hyphen (e.g. cippxyz123, NOT cippxyz123-proc).

4

Click the Function App to open it.

5

In the left menu, go to Settings → Environment variables.

6

Click the App settings tab.

7

Review the list — a healthy app should have 15+ settings. Fewer than 10 indicates missing settings.

Retrieve Storage Connection String

You need the connection string for the storage account in the same resource group.

1

In the same resource group, find the Storage account (name starts with cipp, e.g. cippstgabc123).

2

Open it and go to Security + networking → Access keys.

3

Click Show next to key1.

4

Copy the full Connection string value — it looks like:

DefaultEndpointsProtocol=https;AccountName=cippstgabc123;AccountKey=<key>;EndpointSuffix=core.windows.net

Keep this — it is the value for AzureWebJobsStorage.

Required Settings

Navigate to the function app → Settings → Environment variables → App settings.

Use + Add for each missing setting. Use Edit if the key exists but has a wrong value.

Click Apply (bottom of page) then Confirm after adding all settings.

Core Runtime Settings (all app types)

Setting
Value
Notes

FUNCTIONS_WORKER_RUNTIME

powershell

Must be lowercase

FUNCTIONS_EXTENSION_VERSION

~4

AzureWebJobsStorage

DefaultEndpointsProtocol=https;AccountName=...

Full connection string from storage account

WEBSITE_RUN_FROM_PACKAGE

(see below)

URL to the zip package

WEBSITE_ENABLE_SYNC_UPDATE_SITE

true

WEBSITE_RUN_FROM_PACKAGE value

In a self-hosted environment the package URL points to a zip file inside your own storage account. The easiest way to restore it correctly is to re-run the GitHub Actions deployment workflow, which will write the correct URL automatically.

See the CIPP documentation for instructions: Setup Automatic API Updates

Verify the Fix

After saving all settings (the function app will restart automatically):

1

Wait ~2 minutes for the restart to complete.

2

Function app → Overview — Status should show Running.

3

Function app → Functions — the function list should populate (5 functions visible).

4

If the list is empty after 5 minutes, check Log stream for startup errors.

Last updated

Was this helpful?