_From @willmorgan on October 26, 2017 11:15_
We need the ability to fetch-app-settings for a particular slot.
At the moment this does not appear to be a supported feature.
sdkdev-Functions-gysuvrx2lokekfunc azure functionapp fetch-app-settings <YOUR_FUNCTION_NAME>I should be able to provide a slot option like:
func azure functionapp fetch-app-settings <YOUR_FUNCTION_NAME> --slot <YOUR_SLOT_NAME>
Unsupported
Not using slots... which is a dealbreaker for us right now.
_Copied from original issue: Azure/azure-webjobs-sdk-script#2073_
_From @nelak on October 26, 2017 12:53_
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.
_From @martinpeck on October 27, 2017 8:46_
My experience is that func azure functionapp fetch-app-settings <FUNCTION NAME> retrieves the slot and non-slot settings for the current (running) slot, but I agree that there's obvious way to retrieve the settings from one of the other slots.
For step 3, are you saying that no settings are sync'd, or that only a subset of the settings get sync'd? If it's "no settings", can you confirm that you see your function when you run...?
func azure functionapp list
... and if it's a subset, which are you missing (the ones marked as "slot setting" or the ones that are not)?
_From @martinpeck on October 27, 2017 11:45_
While it doesn't produce the local.settings.json that you're after, it's worth noting that...
az webapp config appsettings list --name [NAME_OF_FUNCTION_APP] --resource-group mpeckfuncwithslots --slot [SLOT_NAME]
... will retrieve the settings for your function app, by slot.
_From @willmorgan on October 30, 2017 11:35_
For step 3, are you saying that no settings are sync'd, or that only a subset of the settings get sync'd? If it's "no settings", can you confirm that you see your function when you run...?
It takes only the "master" function app's settings, which I would say is expected. But not the required slot.
While it doesn't produce the local.settings.json that you're after, it's worth noting that...
az webapp config appsettings list --name [NAME_OF_FUNCTION_APP] --resource-group mpeckfuncwithslots --slot [SLOT_NAME]
This could be useful for now. Thanks.
I guess this comes under the banner of #227 ?
closing as we're not adding new functionality to slots