Reputation: 1307
I am trying to deploy webjob in azure. It is an existing console app that does a file copy using SFTP.
The appsetting in the app.config file is like below :
<add key="IdentityFile" value="C:\Temp\Uploads\UploadTest.ppk"/>
I know I have to set this in AppSettings section of the AppService but I am not sure what is equivalent to "C:\Temp" in Azure.
Could someone please guide me? Thank you
Upvotes: 0
Views: 1190
Reputation: 43203
In Azure App Service, you can still rely on %TMP%
to find the temp folder. The folder it goes to is D:\local\Temp
, so you could change your config to D:\local\Temp\Uploads\UploadTest.ppk
.
Note that you can change this by setting an IdentityFile
App Setting in the Azure Portal, instead of changing it in the physical app.config file.
Upvotes: 2