0

I'm using the Google Credentials locally and I refer it by selecting the actual json file path "GOOGLE_APPLICATION_CREDENTIALS" with WebApi, I couldn't find nothing to save the file so I just copied the whole information and put as a string inside of the Application settings on azure, but it didn't worked! How can I do this ?

Nathiel Paulino
  • 534
  • 6
  • 17

1 Answers1

1

If your json file is in the project path, you can modify the csproj file to include your xxx.json file when publishing. Or manually add the json file in kudu. The path is as follows:

D:\home\site\wwwroot\xxx.json

Then set the environment variable in Application settings on portal as below:

enter image description here

Thanks for joey cai's answer, you can refer the origin post.

Where to store the JSON file which will be referenced for the environment variable in asp.net hosted on Azure

Jason Pan
  • 15,263
  • 1
  • 14
  • 29