title: Not able to create Azure Logic App workflow using Visual Studio Code
body: <p>Trying to follow <a href="https://docs.microsoft.com/en-us/azure/logic-apps/create-single-tenant-workflows-visual-studio-code" rel="nofollow noreferrer">this</a> tutorial.</p>
  <p>When I right click the workflow.json and <a href="https://docs.microsoft.com/en-us/azure/logic-apps/create-single-tenant-workflows-visual-studio-code#open-the-workflow-definition-file-in-the-designer" rel="nofollow noreferrer">select Open in Designer</a>, I finally get the following message.</p>
  <pre><code>[2021-11-11T16:25:32.880Z] A host error has occurred during startup operation 'ae98f37d-d7d4-4131-920d-a725de7dc6cb'.
  [2021-11-11T16:25:32.880Z] Microsoft.Extensions.DependencyInjection: Cannot access a disposed object.
  [2021-11-11T16:25:32.880Z] Object name: 'IServiceProvider'.
  9:56:42 pm: Running command: &quot;func host start --port 8000&quot;...
  
  Azure Functions Core Tools
  Core Tools Version:       4.0.3971 Commit hash: d0775d487c93ebd49e9c1166d5c3c01f3c76eaaf  (64-bit)
  Function Runtime Version: 4.0.1.16815
  
  [2021-11-11T16:26:43.913Z] ExtensionStartupType EventHubsWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.EventHubs, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not meet the required minimum version of 4.2.0.0. Update your NuGet package reference for Microsoft.Azure.WebJobs.Extensions.EventHubs to 4.2.0 or later.
  [2021-11-11T16:26:43.917Z] A host error has occurred during startup operation 'c15e2264-73c8-4f04-b0fd-7498d70f31c9'.
  [2021-11-11T16:26:43.917Z] Microsoft.Azure.WebJobs.Script: One or more loaded extensions do not meet the minimum requirements. For more information see https://aka.ms/func-min-extension-versions.
  [2021-11-11T16:26:43.917Z] ExtensionStartupType EventHubsWebJobsStartup from assembly 'Microsoft.Azure.WebJobs.EventHubs, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' does not meet the required minimum version of 4.2.0.0. Update your NuGet package reference for Microsoft.Azure.WebJobs.Extensions.EventHubs to 4.2.0 or later.
  [2021-11-11T16:26:43.917Z] .
  Value cannot be null. (Parameter 'provider')
  [2021-11-11T16:26:43.945Z] A host error has occurred during startup operation '13d7a2b9-4b0a-494f-a11a-0d4862a718b1'.
  [2021-11-11T16:26:43.945Z] Microsoft.Extensions.DependencyInjection: Cannot access a disposed object.
  [2021-11-11T16:26:43.945Z] Object name: 'IServiceProvider'.
  </code></pre>
  <p>I even updated the csproj file with the command</p>
  <pre><code>dotnet add package Microsoft.Azure.WebJobs.Extensions.EventHubs --version 4.3.0
  </code></pre>
  <p>But the problem persisted.</p>
  <p><a href="https://i.stack.imgur.com/Nbshd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Nbshd.png" alt="Azure Logic App with Visual Studio Code" /></a></p>
  <p>Also as you can see, the designer tries to fetch something, and it says it <strong>Failed to fetch</strong></p>
  <p>And finally as you can see in the bottom right of the image, I get this message</p>
  <p>Workflow validation failed: request to http://localhost:8000/runtime/webhooks/workflow/api/management/workflows/Stateful1/validate?api-version=2019-10-01-edge-preview failed, reason: connect ECONNREFUSED 127.0.0.1:8000. The source indicated is Azure Logic Apps (Standard) (Extension)</p>
  <p>Any ideas?</p>
  <p>I found one more <a href="https://www.youtube.com/watch?v=hlDN0o9tBAc" rel="nofollow noreferrer">YouTube tutorial</a> but I am not able to get that working on my machine.</p>
  <p>Raised issue <a href="https://github.com/Azure/Azure-Functions/issues/2098" rel="nofollow noreferrer">here as well on github</a>.</p>