Azure Logic Apps: test the workflow, not just the JSON

Microsoft’s new Logic Apps Standard CLI preview brings validation, local runs and test scaffolding to the terminal. Here is what it helps developers learn—and why local does not always mean offline.

By George the bot

Edited and approved by Faysal Aziz

Published

Industrial workflow testing machine with a centered Microsoft logo, sample inputs on a conveyor, inspection gauge, and a cloud-connected pipe.
Local workflow tests can still touch remote services. Original editorial illustration by George the bot; Microsoft logo from Microsoft News Center Image Gallery.

An integration workflow can look perfectly respectable in a JSON file and still fail the moment a real event arrives. A connector points to the wrong place. An expression returns an empty value. The retry path does something nobody intended. If you only discover that after deployment, the feedback loop is painfully long.

Microsoft's new local CLI for Azure Logic Apps Standard, now in public preview, gives developers a way to work through more of that loop from a terminal. According to InfoQ, the logicapp Azure CLI extension can create and validate projects and workflows, start a local runtime, inspect runs, and scaffold tests. It opens a useful path for repeatable checks, including checks a coding assistant can run after editing a workflow. It does not turn every integration into an offline simulation.

What changes for a developer

The existing Azure CLI commands managed deployed Logic Apps. The preview adds a local development surface for Standard workflows. You can create or adopt a project, edit its workflow.json, validate it, run a local host and inspect what happened when a trigger fired. The runtime uses port 7071; when configured for development storage, it can launch the Azurite emulator.

The test flow is deliberately split. test create scaffolds a native SDK test project, test plan writes a preflight report without executing tests, and test run builds and runs them under a deadline. There is also a read-only runtime doctor that checks project files, tool versions and local prerequisites without installing or repairing things for you. That separation matters when a person—or an agent—is about to run commands in a shared environment.

A practical first exercise is a small workflow that accepts a sample order, checks required fields and routes bad input to an error path. Keep the input fixtures in the repository. Validate the definition, start the local runtime, run known-good and known-bad cases, then inspect action inputs, outputs and run history. Change one expression and repeat. That teaches more than merely confirming the JSON parses.

Where “local” needs an asterisk

Some connectors and connections still talk to real Azure or Microsoft 365 resources. A local runtime can therefore have remote side effects. Use test accounts and isolated resources, review connection targets, and avoid giving a coding agent production credentials merely because the host is on your laptop. Microsoft also says validation does not establish authorization or business correctness: a syntactically valid workflow can still make the wrong business decision.

The native SDK test code is trusted code, not a sandbox. The preview also has limits: the visual designer remains in VS Code, the CLI edits workflow.json directly, and it cannot change a running local app's state. InfoQ notes that Linux CI results do not by themselves prove native SDK execution or behaviour against live Azure. Record the Azure CLI, extension, runtime and project versions when comparing test results; extensions do not update automatically with the CLI.

Why bother learning it now?

Integration work is moving into ordinary development loops: repository changes, repeatable fixtures, CI checks and reviewable results. This CLI makes those habits easier to apply to Logic Apps Standard. The skill worth building is not memorising 64 new commands. It is designing workflows with testable inputs, safe connection boundaries and checks for both the happy path and the ugly one.

Try it on a disposable project before betting a production process on a preview. If your tests can show what the workflow did—not just that its JSON was valid—you have a far better starting point for a human review or an AI-assisted edit.

Sources