question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ability to run func azure functionapp fetch-app-settings with slots

See original GitHub issue

We need the ability to fetch-app-settings for a particular slot.

At the moment this does not appear to be a supported feature.

Investigative information

  • Timestamp: 2017-10-26
  • Function App version (1.0 or 2.0-beta): 1.0, I think?
  • Function App name: sdkdev-Functions-gysuvrx2lokek
  • Function name(s) (as appropriate): n/a
  • Invocation ID: n/a
  • Region: West Europe

Repro steps

  1. Have a deployed Function App with some slots, where the app settings are defined for each slot.
  2. Run func azure functionapp fetch-app-settings <YOUR_FUNCTION_NAME>
  3. Observe that your slot settings, predictably, are not synchronised.
  4. Try running `func azure functionapp fetch-app-settings <YOUR_FUNCTION_NAME>-<YOUR_SLOT_NAME>
  5. “Can’t find app with name …”
  6. etc…

Expected behavior

I should be able to provide a slot option like:

func azure functionapp fetch-app-settings <YOUR_FUNCTION_NAME> --slot <YOUR_SLOT_NAME>

Actual behavior

Unsupported

Known workarounds

Not using slots… which is a dealbreaker for us right now.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nelakcommented, Oct 26, 2017

Also I’d like to add that it’s currently not possible to publish to a specific deployment slot. Publishing only works for the functionApp and not for the other function names.

0reactions
christopherandersoncommented, Jan 16, 2018

This issue was moved to Azure/azure-functions-cli#353

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ability to run func azure functionapp fetch-app-settings with ...
My experience is that func azure functionapp fetch-app-settings <FUNCTION NAME> retrieves the slot and non-slot settings for the current ( ...
Read more >
Work with Azure Functions Core Tools
You can run 'func azure functionapp fetch-app-settings <functionAppName>' or specify a connection string in local.settings.json.
Read more >
App settings reference for Azure Functions
Reference documentation for the Azure Functions app settings or environment variables used to configure functions apps.
Read more >
Using Azure Functions Core Tools to fetch app settings for ...
Running our Functions locally requires a local.settings.json file to ... Now we can fetch our app settings from our Function App in Azure....
Read more >
how to export and import Azure Function's "application ...
go to your new app, and navigate to 'App settings' and click edit, and put all that in the properties collection. Automated: You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found