I have created a Azure Function
, which is having a dependency on ini
file.
public class DataProcessingFunction
{
FunctionName("DataProcessingFunction")]
public async Task Run([EventGridTrigger]EventGridEvent eventGridEvent,ILogger log)
{
string iniFolderPath = $@"{Directory.GetCurrentDirectory()}\Ini\";
string iniFileName = "Sample.ini";
var iniConfig = FileManager.ReadFile(iniFolderPath, iniFileName);
}
}
I have selected Copy if never
option in Visual Studio while publishing the code to Azure function
Also, I have tried selecting Embedded Resource
. But I am not able to find the file
I get an exception
File not found.
Add/Upload option in Azure portal is disabled because I am publishing the function from Visual studio
Question: Do I need to upload file to blob and then refer it in a code?