admin管理员组

文章数量:1127937

I am trying to run a simple LogicApp Standard workflow using Visual Studio Code. The LogicApp has a simple http request trigger and http response action.

When I try to debug I don't see the LogicApp URL and when I go to the workflow | Overview screen I get the error "Request Failed with status 404'.

There is a warning NU1701: Package 'Microsoft.SqlServer.Types 11.0.0' but I am not using SQL server so ignoring this warning.

Could be my local dev environment. Also, Azure Functions work fine as in I get a URL to call when I build and debug locally.

I am trying to run a simple LogicApp Standard workflow using Visual Studio Code. The LogicApp has a simple http request trigger and http response action.

When I try to debug I don't see the LogicApp URL and when I go to the workflow | Overview screen I get the error "Request Failed with status 404'.

There is a warning NU1701: Package 'Microsoft.SqlServer.Types 11.0.0' but I am not using SQL server so ignoring this warning.

Could be my local dev environment. Also, Azure Functions work fine as in I get a URL to call when I build and debug locally.

Share Improve this question edited Jan 8 at 22:07 DinoM123 asked Jan 8 at 17:40 DinoM123DinoM123 511 gold badge1 silver badge5 bronze badges 1
  • Yep, it doesn't look right, you should have a URL to be able to call from Postman and these can be tricky to diagnose. My suggestion, raise an issue here ... github.com/Azure/LogicAppsUX ... they're usually pretty good. – Skin Commented Jan 8 at 22:27
Add a comment  | 

1 Answer 1

Reset to default 0
  • Primarily, make sure to create the logic app workspace correctly in vs code. I have created a default standard logic app in vs code and the folder structure looks like below.

  • When you will debug the code you will be able to see the the endpoint as well in the terminal as shown below.

 *  Executing task: C:\Users\***\.azurelogicapps\dependencies\FuncCoreTools\func host start 


Azure Functions Core Tools
Core Tools Version:       4.0.6280 Commit hash: N/A +421f0144b42047aa289ce691dc6db4fc8b6143e6 (64-bit)
Function Runtime Version: 4.834.3.22875


Functions:

        Stateful1:  http://localhost:7071/api/Stateful1/triggers/When_a_HTTP_request_is_received/invoke

        WorkflowDispatcher: edgeWorkflowRuntimeTrigger

For detailed output, run func with --verbose flag.
[2025-01-09T08:05:17.088Z] Host lock lease acquired by instance ID '0000000000000000000000000D2022A4'.
[2025-01-09T08:09:23.280Z] Executing 'Functions.Stateful1' (Reason='This function was programmatically called via the host APIs.', Id=605ba7b9-79a2-478a-ab64-3e741d174192)
[2025-01-09T08:09:23.363Z] Executed 'Functions.Stateful1' (Succeeded, Id=605ba7b9-79a2-478a-ab64-3e741d174192, Duration=109ms)     
[2025-01-09T08:09:23.423Z] Executing 'Functions.Stateful1' (Reason='This function was programmatically called via the host APIs.', Id=7e2dd157-0b81-42c6-b765-cc35cab4aa39)
[2025-01-09T08:09:24.721Z] Executing 'Functions.WorkflowDispatcher' (Reason='(null)', Id=51bb5db2-aa36-4571-9692-01b0b2837aec)     
[2025-01-09T08:09:24.885Z] Executed 'Functions.WorkflowDispatcher' (Succeeded, Id=51bb5db2-aa36-4571-9692-01b0b2837aec, Duration=167ms)
[2025-01-09T08:09:24.891Z] Executed 'Functions.Stateful1' (Succeeded, Id=7e2dd157-0b81-42c6-b765-cc35cab4aa39, Duration=1468ms)    
  • Then you would be able to see the callback URL along with the run history.

  • If you are creating a workspace by choosing logic app with custom code project template then your folder should look like below. Also refer to this documentation to create and run custom code function in standard logic app.
C:.
|   LogicAppWorkspace.code-workspace
|   
+---Function
|   |   FuncApp.cs
|   |   FuncApp.csproj
|   |
|   +---.vscode
|   |       extensions.json
|   |       launch.json
|   |       settings.json
|   |       tasks.json
|   |
|   +---bin
|   |
|   \---obj
|
\---LogicApp
    |   .funcignore
    |   .gitignore
    |   host.json
    |   local.settings.json
    |   __azurite_db_blob_extent__.json
    |   __azurite_db_blob__.json
    |   __azurite_db_queue_extent__.json
    |   __azurite_db_queue__.json
    |   __azurite_db_table__.json
    |
    +---.vscode
    |       extensions.json
    |
    +---Artifacts
    |   +---Maps
    |   +---Rules
    |   \---Schemas
    +---lib
    |   +---builtinOperationSdks
    |   |   +---JAR
    |   |   \---net472
    |   \---custom
    |       +---.azurefunctions
    |       |       function.deps.json
    |       |       Microsoft.Azure.Functions.Worker.Extensions.dll
    |       |       Microsoft.Azure.Functions.Worker.Extensions.pdb
    |       |       Microsoft.Azure.WebJobs.Extensions.FunctionMetadataLoader.dll
    |       |       Microsoft.Azure.WebJobs.Host.Storage.dll
    |       |       Microsoft.WindowsAzure.Storage.dll
    |       |
    |       +---FuncApp
    |       |       function.json
    |       |
    |       \---net8
    |               extensions.json
    |               FuncApp.deps.json
    |               FuncApp.dll
    |               FuncApp.pdb
    |               functions.metadata
    |               Microsoft.Azure.Functions.Extensions.Workflows.Sdk.dll
    |               Microsoft.Azure.Functions.Extensions.Workflows.Sdk.Package.dll
    |               Microsoft.Azure.Functions.Worker.Extensions.Abstractions.dll
    |               Microsoft.Extensions.DependencyInjection.Abstractions.dll
    |               Microsoft.Extensions.DependencyInjection.dll
    |               Microsoft.Extensions.Logging.Abstractions.dll
    |               Microsoft.Extensions.Logging.dll
    |               Microsoft.Extensions.Options.dll
    |               Microsoft.Extensions.Primitives.dll
    |               worker.config.json
    |
    +---Stateful1
    |       workflow.json
    |
    +---workflow-designtime
    |       host.json
    |       local.settings.json
    |
    +---__blobstorage__
    |       940e2d***d45f0d
    |
    \---__queuestorage__
            ff59****1563a8
  • You can also consider installing the latest azure function core tool version for better experience.

本文标签: