User secrets not available for isolated function app #398
Labels
under investigation
workaround-available
Apply this label when there is an easy workaround available.
When adding user secrets to an isolated function app, it looks like the secrets.json file is not mounted to the location expected by default
~/.microsoft/usersecrets/<user_secrets_id>/secrets.json
according to documentation.This is especially a problem on function app images as they override the default
HOME
location.Here is the code used in function app to setup user secrets:
Currently, I end up with following expected path from configuration provider
/home/site/wwwroot/bin/Debug/net6.0/secrets.json
, as parent directory for calculated location/home/.microsoft/usersecrets/<user_secrets_id>/secrets.json
does not exists.I think this is partially linked to the fix implemented for #250
The text was updated successfully, but these errors were encountered: