title: TimeTrigger Exception "Could not create BlobContainerClient for ScheduleMonitor."
body: <p>When I run my azure function with TimeTrigger I have this error:
  <strong>Microsoft.Azure.WebJobs.Extensions.Timers.Storage: Could not create BlobContainerClient for ScheduleMonitor.</strong></p>
  <p>I use a host builder:</p>
  <pre><code>public static async Task Main()
          {
              var host = CreateHostBuilder().Build();
  
              using (host)
              {
                  await host.RunAsync();
              }
  
          static IHostBuilder CreateHostBuilder() =&gt; new HostBuilder()
              .UseServiceProviderFactory(new AutofacServiceProviderFactory())
              .ConfigureFunctionsWorkerDefaults()
              .ConfigureHostConfiguration(configHost =&gt;
              {
                  configHost.SetBasePath(Directory.GetCurrentDirectory());
                  configHost.AddJsonFile(&quot;host.json&quot;, optional: true);
                  configHost.AddEnvironmentVariables();
              })
              .ConfigureAppConfiguration((hostContext, configApp) =&gt;
              {
                  var env = hostContext.HostingEnvironment;
                  configApp.AddJsonFile(&quot;appsettings.json&quot;, optional: true);
                  configApp.AddJsonFile($&quot;appsettings.{env.EnvironmentName}.json&quot;, optional: true);
                  configApp.AddEnvironmentVariables();
                  configApp.AddApplicationInsightsSettings(developerMode: !env.IsProduction());
              })
              .ConfigureServices((hostContext, services) =&gt;
              {
                 [...]
              })
              .ConfigureContainer&lt;ContainerBuilder&gt;(builder =&gt;
              {
                  builder.RegisterModule&lt;MessagerModule&gt;();
              })
              .ConfigureLogging((hostContext, configLogging) =&gt;
              {
                  if (hostContext.HostingEnvironment.IsDevelopment())
                  {
                      configLogging.AddConsole();
                      configLogging.AddDebug();
                  }
              })
              .UseConsoleLifetime();
  </code></pre>
  <p>and here is the function:</p>
  <pre><code>[Function(&quot;QueueMessage&quot;)]
          public async Task QueueMessageAsync(
              [TimerTrigger(&quot;%MessageQueuerOccurence%&quot;, RunOnStartup = true)] TimerInfo timer
          )
          {
             [...]
          }
  </code></pre>
  <p>csproj:</p>
  <pre><code>&lt;PropertyGroup&gt;
          &lt;TargetFramework&gt;net6.0&lt;/TargetFramework&gt;
          &lt;AzureFunctionsVersion&gt;v4&lt;/AzureFunctionsVersion&gt;
          &lt;OutputType&gt;Exe&lt;/OutputType&gt;
      &lt;/PropertyGroup&gt;
  
      &lt;ItemGroup&gt;
          &lt;Content Include=&quot;**\*.json&quot; Exclude=&quot;bin\**\*;obj\**\*&quot; CopyToOutputDirectory=&quot;Always&quot; /&gt;
      &lt;/ItemGroup&gt;
      
      &lt;ItemGroup&gt;
          &lt;PackageReference Include=&quot;Autofac.Extensions.DependencyInjection&quot; Version=&quot;7.2.0&quot; /&gt;
          &lt;PackageReference Include=&quot;Microsoft.ApplicationInsights.AspNetCore&quot; Version=&quot;2.20.0&quot; /&gt;
          &lt;PackageReference Include=&quot;Microsoft.Azure.Functions.Worker.Extensions.Http&quot; Version=&quot;3.0.13&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.Extensions.Storage&quot; Version=&quot;5.0.0&quot; /&gt;
          &lt;PackageReference Include=&quot;Microsoft.Azure.Functions.Worker.Sdk&quot; Version=&quot;1.3.0&quot; OutputItemType=&quot;Analyzer&quot; /&gt;
          &lt;PackageReference Include=&quot;Microsoft.Azure.Functions.Worker&quot; Version=&quot;1.6.0&quot; /&gt;
          &lt;PackageReference Include=&quot;Microsoft.Extensions.Configuration.Json&quot; Version=&quot;6.0.0&quot; /&gt;
          &lt;PackageReference Include=&quot;Microsoft.Extensions.Configuration.EnvironmentVariables&quot; Version=&quot;6.0.0&quot; /&gt;
      &lt;/ItemGroup&gt;
  </code></pre>
  <p>local.settings.json:</p>
  <blockquote>
  <p>{
  &quot;IsEncrypted&quot;: false,
  &quot;Values&quot;: {
  &quot;AzureWebJobsStorage&quot;: &quot;UseDevelopmentStorage=true&quot;,
  &quot;MessageQueuerOccurence&quot;: &quot;0 */15 * * * *&quot;,
  &quot;FUNCTIONS_WORKER_RUNTIME&quot;: &quot;dotnet-isolated&quot;
  }
  }</p>
  </blockquote>
  <p>What did I miss?</p>
  <p>note: link to Github : <a href="https://github.com/Azure/azure-functions-dotnet-worker/issues/779" rel="nofollow noreferrer">https://github.com/Azure/azure-functions-dotnet-worker/issues/779</a></p>