.Net Core Azure App service Linux not able to cofigure Environment variable

Puneet Yadav 11 Reputation points
2021-06-07T17:33:40.577+00:00

hi,

we are trying to use Google firebase in our .Net Core Api...

firebase needs us to configure an Env. Variable pointing to a file...

as we have deployed our app on Azure App Service [Linux]

we tried setting env. variable

GOOGLE_APPLICATION_CREDENTIALS

to point to some .json file which is included in our apps'base directory .

we tried values
/home/site/wwwroot/xyzdirectory/xyz.json

*tried putting it in xyzdirectory before publishing

/home/site/wwwroot/xyz.json

*in root directory before publishing

d://home/site .....

etc etc

but no success

the app can not access the file ....No directory/file found exception

any help will be appreciated.

link to firebase docs

setup

Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
230 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,758 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Puneet Yadav 11 Reputation points
    2021-06-08T11:22:46.61+00:00

    Thanks for the respose.we moved our app service to windows app plan.and then used kudos to exactly locate the path location.

    it was not working in linux by the way.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.