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