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
Access to the Azure Portal (portal.azure.com)
Contributor (or higher) role on the resource group containing the function app
The storage account connection string for the CIPP resource group (see Retrieve Storage Connection String below)
Identify Affected Function Apps
In the Azure Portal, navigate to Resource Groups.
Open the resource group for the affected CIPP instance, for example CIPP.
Locate the Function App resource. It is the one whose name contains no hyphen, for example cippxyz123 rather than cippxyz123-proc.
Click the Function App to open it.
In the left menu, go to Settings → Environment variables.
Click the App settings tab.
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.
In the same resource group, find the Storage account (name starts with cipp, for example cippstgabc123).
Open it and go to Security + networking → Access keys.
Click Show next to key1.
Copy the full Connection string value. It looks like:
DefaultEndpointsProtocol=https;AccountName=cippstgabc123;AccountKey=<key>;EndpointSuffix=core.windows.netKeep this, as 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)
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):
Wait ~2 minutes for the restart to complete.
Function app → Overview: Status should show Running.
Function app → Functions: the function list should populate (5 functions visible).
If the list is empty after 5 minutes, check Log stream for startup errors.
Last updated
Was this helpful?

