0

I'm building a Azure static web app. I'd like to make use of app configurations. I've added several configurations to the UI. Is there a command that I can use to generate a file local.settings.json based on the current configurations I've typed into the Azure Portal?

  • The documentation lists several examples, which I can cut-and-paste and modify, but I'm not exactly clear what is needed and what isn't. For example, in this example, do I need FUNCTIONS_WORKER_RUNTIME?
  • I'm also curious if such a command exists.
  • I've tried things like az rest --method post --uri "<static app's name in Azure portal>/listFunctionAppSettings", but these command fail.
RyeGrain
  • 61
  • 6
  • I found [the doc](https://learn.microsoft.com/en-us/azure/azure-functions/functions-develop-local#local-settings-file) explaining the format of `local.settings.json`. I'm still curious if there is a command to export the current settings from azure to a JSON file. – RyeGrain Nov 28 '21 at 22:23

1 Answers1

0

You can download application settings using the Azure Static Web Apps VS Code extension. Navigate to your static web app in the extension list and right click on Application Settings -> Download Remote Settings.

simonaco
  • 346
  • 2
  • 4
  • 15