title: Running Azure Function Net5 (dotnet-isolated) in Linux Container generate error - System.IO.DirectoryNotFoundException: /home\site\wwwroot/
body: <p>I have a Azure Function App running in a Linux Container with the following Specs</p>
  <ol>
  <li><code>&lt;TargetFramework&gt;net5.0&lt;/TargetFramework&gt;</code></li>
  <li><code>&lt;AzureFunctionsVersion&gt;v3&lt;/AzureFunctionsVersion&gt;</code></li>
  <li><code>&quot;FUNCTIONS_WORKER_RUNTIME&quot;: &quot;dotnet-isolated&quot;</code></li>
  </ol>
  <p>The function runs fine locally, but when i deploy it to the cloud I'm getting error <strong>System.IO.DirectoryNotFoundException: /home\site\wwwroot/</strong> . I've copied the log trace below which has the error mesage in it. Please help as I've been on this issue for a while now.</p>
  <p><strong>--Main Class--</strong></p>
  <pre><code>  public static async Task Main(string[] args)
      {
          var host = new HostBuilder()
              .ConfigureFunctionsWorkerDefaults()
              .ConfigureCustomFunctionsWorker()
              .Build();
  
          await host.RunAsync();
      }
  </code></pre>
  <p><strong>--Class with DI--</strong></p>
  <pre><code>    public static class CustomWorkerHostBuilderExtensions
      {
          public static IHostBuilder ConfigureCustomFunctionsWorker(this IHostBuilder builder)
          {..
            ..  }
  }
  </code></pre>
  <p><strong>--My Function--</strong></p>
  <pre><code>[Function(&quot;UpdateContentMetadata&quot;)]
  public async Task Run([TimerTrigger(&quot;*/60 * * * * *&quot;)] TimerInfo myTimer, FunctionContext context)
  {
      logger.LogInformation(&quot;Function ran in a linux container.&quot;);
  }
  </code></pre>
  <p><strong>--My Docker File--</strong></p>
  <pre><code>#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
  
  FROM mcr.microsoft.com/azure-functions/dotnet-isolated:3.0-dotnet-isolated5.0 AS base
  WORKDIR /home/site/wwwroot
  EXPOSE 80
  
  FROM mcr.microsoft.com/dotnet/runtime:3.1 as runtime3_1
  FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
  # Copy .NET Core 3.1 runtime from the 3.1 image
  COPY --from=runtime3_1 /usr/share/dotnet/host /usr/share/dotnet/host
  COPY --from=runtime3_1 /usr/share/dotnet/shared /usr/share/dotnet/shared
  WORKDIR /src
  COPY [&quot;Functions/Functions.csproj&quot;, &quot;Functions/&quot;]
  COPY [&quot;ApplicationCore/ApplicationCore.csproj&quot;, &quot;ApplicationCore/&quot;]
  COPY [&quot;Infrastructure/Infrastructure.csproj&quot;, &quot;Infrastructure/&quot;]
  RUN dotnet restore &quot;Functions/Functions.csproj&quot;
  COPY . .
  WORKDIR &quot;/src/Functions&quot;
  RUN dotnet build &quot;Functions.csproj&quot; -c Release -o /app/build
  
  FROM build AS publish
  RUN dotnet publish &quot;Functions.csproj&quot; -c Release -o /app/publish
  
  FROM base AS final
  WORKDIR /home/site/wwwroot
  COPY --from=publish /app/publish .
  
  ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
      AzureFunctionsJobHost__Logging__Console__IsEnabled=true
  </code></pre>
  <p><strong>--Function Project file--</strong></p>
  <pre><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk&quot;&gt;
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;net5.0&lt;/TargetFramework&gt;
      &lt;AzureFunctionsVersion&gt;v3&lt;/AzureFunctionsVersion&gt;
        &lt;OutputType&gt;Exe&lt;/OutputType&gt;
        &lt;Nullable&gt;enable&lt;/Nullable&gt;
      &lt;AssemblyName&gt;Mordina.Content.Subscriber.Functions&lt;/AssemblyName&gt;
      &lt;RootNamespace&gt;Mordina.Content.Subscriber.Functions&lt;/RootNamespace&gt;
      &lt;DockerFastModeProjectMountDirectory&gt;/home/site/wwwroot&lt;/DockerFastModeProjectMountDirectory&gt;
      &lt;DockerDefaultTargetOS&gt;Linux&lt;/DockerDefaultTargetOS&gt;
    &lt;/PropertyGroup&gt;
    &lt;ItemGroup&gt;
      &lt;None Remove=&quot;appsettings.json&quot; /&gt;
      &lt;None Remove=&quot;deploy.ps1&quot; /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;Content Include=&quot;appsettings.json&quot;&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
      &lt;/Content&gt;
      &lt;Content Include=&quot;deploy.ps1&quot;&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
      &lt;/Content&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;PackageReference Include=&quot;Common.Logging&quot; Version=&quot;2.2.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Azure.Functions.Extensions&quot; Version=&quot;1.1.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.EntityFrameworkCore.Design&quot; Version=&quot;5.0.17&quot;&gt;
        &lt;PrivateAssets&gt;all&lt;/PrivateAssets&gt;
        &lt;IncludeAssets&gt;runtime; build; native; contentfiles; analyzers; buildtransitive&lt;/IncludeAssets&gt;
      &lt;/PackageReference&gt;
      &lt;PackageReference Include=&quot;Microsoft.Extensions.Configuration.Abstractions&quot; Version=&quot;5.0.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Extensions.Configuration.Json&quot; Version=&quot;5.0.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Azure.Functions.Worker&quot; Version=&quot;1.3.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Azure.Functions.Worker.Extensions.Timer&quot; Version=&quot;4.1.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Azure.Functions.Worker.Sdk&quot; Version=&quot;1.3.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.VisualStudio.Azure.Containers.Tools.Targets&quot; Version=&quot;1.14.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Newtonsoft.Json&quot; Version=&quot;12.0.3&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Extensions.Configuration&quot; Version=&quot;5.0.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.Extensions.Configuration.Binder&quot; Version=&quot;5.0.0&quot; /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;ProjectReference Include=&quot;..\ApplicationCore\ApplicationCore.csproj&quot; /&gt;
      &lt;ProjectReference Include=&quot;..\Infrastructure\Infrastructure.csproj&quot; /&gt;
    &lt;/ItemGroup&gt;
    &lt;ItemGroup&gt;
      &lt;None Update=&quot;host.json&quot;&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
      &lt;/None&gt;
      &lt;None Update=&quot;local.settings.json&quot;&gt;
        &lt;CopyToOutputDirectory&gt;PreserveNewest&lt;/CopyToOutputDirectory&gt;
        &lt;CopyToPublishDirectory&gt;Never&lt;/CopyToPublishDirectory&gt;
      &lt;/None&gt;
    &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  <p><strong>--The logs trace--</strong></p>
  <pre><code>Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcFunctionInvocationDispatcher.InitializeJobhostLanguageWorkerChannelAsync(??) at /src/azure-functions-host/src/WebJobs.Script/Workers/Rpc/FunctionRegistration/RpcFunctionInvocationDispatcher.cs : 112\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\n   at async Microsoft.Azure.WebJobs.Script.Workers.Rpc.RpcFunctionInvocationDispatcher.&lt;&gt;c__DisplayClass53_0.&lt;StartWorkerProcesses&gt;b__0(??) at /src/azure-functions-host/src/WebJobs.Script/Workers/Rpc/FunctionRegistration/RpcFunctionInvocationDispatcher.cs : 186','exceptionMessage':'A task was canceled.','exceptionType':'System.Threading.Tasks.TaskCanceledException'}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.329570078Z: [INFO]  info: Host.Triggers.Timer[5]
  
  2022-07-05T16:10:26.329609178Z: [INFO]        The next 5 occurrences of the 'UpdateMordinaContentMetadata' schedule (Cron: '0 * * * * *') will be:
  
  2022-07-05T16:10:26.329616178Z: [INFO]        07/05/2022 16:11:00+00:00 (07/05/2022 16:11:00Z)
  
  2022-07-05T16:10:26.330522482Z: [INFO]        07/05/2022 16:12:00+00:00 (07/05/2022 16:12:00Z)
  
  2022-07-05T16:10:26.330540183Z: [INFO]        07/05/2022 16:13:00+00:00 (07/05/2022 16:13:00Z)
  
  2022-07-05T16:10:26.330545783Z: [INFO]        07/05/2022 16:14:00+00:00 (07/05/2022 16:14:00Z)
  
  2022-07-05T16:10:26.330559083Z: [INFO]        07/05/2022 16:15:00+00:00 (07/05/2022 16:15:00Z)
  
  2022-07-05T16:10:26.330565183Z: [INFO]        
  
  2022-07-05T16:10:26.337669319Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'The next 5 occurrences of the UpdateMordinaContentMetadata schedule (Cron: 0 * * * * *) will be:\n07/05/2022 16:11:00+00:00 (07/05/2022 16:11:00Z)\n07/05/2022 16:12:00+00:00 (07/05/2022 16:12:00Z)\n07/05/2022 16:13:00+00:00 (07/05/2022 16:13:00Z)\n07/05/2022 16:14:00+00:00 (07/05/2022 16:14:00Z)\n07/05/2022 16:15:00+00:00 (07/05/2022 16:15:00Z)\n','category':'Host.Triggers.Timer','hostVersion':'3.8.2.0','functionName':'UpdateMordinaContentMetadata','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1,'eventId':5,'eventName':'NextOccurrences'}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.373387803Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'Host started (1193ms)','category':'Host.Startup','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1,'eventId':413,'eventName':'ScriptHostStarted'}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.374396409Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'Job host started','category':'Host.Startup','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.377892227Z: [INFO]  info: Host.Startup[413]
  
  2022-07-05T16:10:26.377913327Z: [INFO]        Host started (1193ms)
  
  2022-07-05T16:10:26.378812531Z: [INFO]  info: Host.Startup[0]
  
  2022-07-05T16:10:26.378829531Z: [INFO]        **Job host started**
  
  2022-07-05T16:10:26.393426407Z: [INFO]  info: **Function.UpdateMordinaContentMetadata[1]**
  
  2022-07-05T16:10:26.393481507Z: [INFO]        Executing 'Functions.UpdateMordinaContentMetadata' (Reason='Timer fired at 2022-07-05T16:10:26.3470099+00:00', Id=dfa7ebb1-fba0-4a75-a3da-6b3e2c9e5832)
  
  2022-07-05T16:10:26.432553908Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'Executing Functions.UpdateMordinaContentMetadata (Reason=Timer fired at 2022-07-05T16:10:26.3470099+00:00, Id=dfa7ebb1-fba0-4a75-a3da-6b3e2c9e5832)','category':'Function.UpdateMordinaContentMetadata','hostVersion':'3.8.2.0','functionInvocationId':'dfa7ebb1-fba0-4a75-a3da-6b3e2c9e5832','functionName':'Functions.UpdateMordinaContentMetadata','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1,'eventId':1,'eventName':'FunctionStarted'}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.433993416Z: [INFO]  info: Function.UpdateMordinaContentMetadata[0]
  
  2022-07-05T16:10:26.434024216Z: [INFO]        Trigger Details: UnscheduledInvocationReason: IsPastDue, OriginalSchedule: 2022-07-05T09:24:00.0000000+00:00
  
  2022-07-05T16:10:26.435659424Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'Trigger Details: UnscheduledInvocationReason: IsPastDue, OriginalSchedule: 2022-07-05T09:24:00.0000000+00:00','category':'Function.UpdateMordinaContentMetadata','hostVersion':'3.8.2.0','functionInvocationId':'dfa7ebb1-fba0-4a75-a3da-6b3e2c9e5832','functionName':'UpdateMordinaContentMetadata','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.440603250Z: [INFO]  Hosting environment: Production
  
  2022-07-05T16:10:26.452215909Z: [INFO]  Content root path: /azure-functions-host
  
  2022-07-05T16:10:26.452862413Z: [INFO]  Now listening on: http://[::]:80
  
  2022-07-05T16:10:26.453557416Z: [INFO]  Application started. Press Ctrl+C to shut down.
  
  2022-07-05T16:10:26.524916784Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 2,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'Unhandled exception. System.IO.DirectoryNotFoundException: /home\\site\\wwwroot/','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Error','levelId':4,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.526059590Z: [INFO]  fail: **Host.Function.Console[0]**
  
  2022-07-05T16:10:26.526077790Z: [INFO]        Unhandled exception. **System.IO.DirectoryNotFoundException: /home\site\wwwroot/**
  
  2022-07-05T16:10:26.530210311Z: [INFO]  info: Host.Function.Console[0]
  
  2022-07-05T16:10:26.530230911Z: [INFO]           at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters)
  
  2022-07-05T16:10:26.532626424Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters)','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.532646324Z: [INFO]  info: Host.Function.Console[0]
  
  2022-07-05T16:10:26.532652424Z: [INFO]           at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root)
  
  2022-07-05T16:10:26.539172457Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root)','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.540497764Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Microsoft.Extensions.Configuration.FileConfigurationExtensions.SetBasePath(IConfigurationBuilder builder, String basePath)','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.543584380Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Mordina.Content.Subscriber.Functions.CustomWorkerHostBuilderExtensions.BuildConfiguration(IServiceCollection services) in **/src/Functions/Startup.cs:line** 94','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.543605880Z: [INFO]  info: Host.Function.Console[0]
  
  2022-07-05T16:10:26.543612480Z: [INFO]           at Microsoft.Extensions.Configuration.FileConfigurationExtensions.SetBasePath(IConfigurationBuilder builder, String basePath)
  
  2022-07-05T16:10:26.543617180Z: [INFO]  info: Host.Function.Console[0]
  
  2022-07-05T16:10:26.543634580Z: [INFO]           at Mordina.Content.Subscriber.Functions.CustomWorkerHostBuilderExtensions.BuildConfiguration(IServiceCollection services) in **/src/Functions/Startup.cs:line 94**
  
  2022-07-05T16:10:26.549548311Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Mordina.Content.Subscriber.Functions.CustomWorkerHostBuilderExtensions.&lt;&gt;c.&lt;ConfigureCustomFunctionsWorker&gt;b__0_3(HostBuilderContext ctx, IServiceCollection serviceCollection) in **/src/Functions/Startup.cs:line** 45','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.549571811Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.549578911Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Microsoft.Extensions.Hosting.HostBuilder.Build()','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.549584311Z: [INFO]  info: Host.Function.Console[0]
  
  2022-07-05T16:10:26.549589011Z: [INFO]           at Mordina.Content.Subscriber.Functions.CustomWorkerHostBuilderExtensions.&lt;&gt;c.&lt;ConfigureCustomFunctionsWorker&gt;b__0_3(HostBuilderContext ctx, IServiceCollection serviceCollection) in **/src/Functions/Startup.cs:line 45**
  
  2022-07-05T16:10:26.549594211Z: [INFO]  info: Host.Function.Console[0]
  
  2022-07-05T16:10:26.549598511Z: [INFO]           at Microsoft.Extensions.Hosting.HostBuilder.CreateServiceProvider()
  
  2022-07-05T16:10:26.549602611Z: [INFO]  info: Host.Function.Console[0]
  
  2022-07-05T16:10:26.549606711Z: [INFO]           at Microsoft.Extensions.Hosting.HostBuilder.Build()
  
  2022-07-05T16:10:26.554974739Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Mordina.Content.Subscriber.Functions.Program.Main(String[] args) in /src/Functions/Program.cs:line 11','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:26.555002739Z: [INFO]  info: Host.Function.Console[0]
  
  2022-07-05T16:10:26.555017939Z: [INFO]           at Mordina.Content.Subscriber.Functions.Program.Main(String[] args) in /src/Functions/Program.cs:line 11
  
  2022-07-05T16:10:26.555023439Z: [INFO]  info: Host.Function.Console[0]
  
  2022-07-05T16:10:26.555027839Z: [INFO]           at Mordina.Content.Subscriber.Functions.Program.&lt;Main&gt;(String[] args)
  
  2022-07-05T16:10:26.555032239Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Mordina.Content.Subscriber.Functions.Program.&lt;Main&gt;(String[] args)','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:26
  
  2022-07-05T16:10:30.192339115Z: [INFO]  info: Host.General[337]
  
  2022-07-05T16:10:30.192380715Z: [INFO]        Host lock lease acquired by instance ID '5eff078071531b34fa16e69b598af76d'.
  
  2022-07-05T16:10:30.194725228Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'Host lock lease acquired by instance ID 5eff078071531b34fa16e69b598af76d.','category':'Host.General','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1,'eventId':337,'eventName':'PrimaryHostCoordinatorLockLeaseAcquired'}&quot;,07/05/2022 16:10:30
  
  2022-07-05T16:10:36.889513201Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 2,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'Unhandled exception. System.IO.DirectoryNotFoundException: /home\\site\\wwwroot/','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Error','levelId':4,'processId':1}&quot;,07/05/2022 16:10:36
  
  2022-07-05T16:10:36.891593012Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root, ExclusionFilters filters)','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:36
  
  2022-07-05T16:10:36.892824119Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Microsoft.Extensions.FileProviders.PhysicalFileProvider..ctor(String root)','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:36
  
  2022-07-05T16:10:36.893620623Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Microsoft.Extensions.Configuration.FileConfigurationExtensions.SetBasePath(IConfigurationBuilder builder, String basePath)','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:36
  
  2022-07-05T16:10:36.898783450Z: [INFO]  MS_FUNCTION_AZURE_MONITOR_EVENT 4,int-Mordina-content-subscriber-func.azurewebsites.net,Microsoft.Web/sites/functions/log,FunctionAppLogs,,&quot;{'appName':'int-Mordina-content-subscriber-func','roleInstance':'5eff078071531b34fa16e69b598af76d1be5dfdf78b917c067816f3eea5e617b','message':'   at Mordina.Content.Subscriber.Functions.CustomWorkerHostBuilderExtensions.BuildConfiguration(IServiceCollection services) in **/src/Functions/Startup.cs:line** 94','category':'Host.Function.Console','hostVersion':'3.8.2.0','hostInstanceId':'3ed51ac4-8e7b-46f0-8f72-816e2cd7618a','level':'Information','levelId':2,'processId':1}&quot;,07/05/2022 16:10:36
  
  2022-07-05T16:10:36.901757566Z: [INFO]  fail: Host.Function.Console[0]
  
  2022-07-05T16:10:36.901831367Z: [INFO]        Unhandled exception. **System.IO.DirectoryNotFoundException: /home\site\wwwroot/**
  </code></pre>