Skip to main content

Restoring local appsettings for Azure Functions

1 min read

If you’ve ever worked with Azure Functions then no doubt you’ve seen the local.settings.json file before. This file stores app settings, connection strings, etc. for local development.

This file is not checked into source control by default. That means when you clone a Function app you won't be able to run it locally without the local.settings.json file.

To restore the local.settings.json file do the following:

  1. Install the Azure Functions Core Tools
  2. Open a command window and navigate to the source code where your Azure Function is
  3. Run the following command:func azure functionapp fetch-app-settings <functionname> where <functionname> is your Azure Function name
  4. This will restore your local.settings.json file, enabling you to run your Function app locally