CmdID / az / az logicapp / az logicapp test
az logicapp test run
Explicitly build and run reviewed native SDK/MSTest tests with a deadline. Azure CLI extensions reference
Requires --accept-sdk-terms and --trust-project every time. Review https://www.nuget.org/packages/Microsoft.Azure.Workflows.WebJobs.Tests.Extension/1.0.3/License including use, redistribution, data collection and update restrictions. CLI telemetry opt-out does not establish that SDK telemetry is disabled. Uses a .NET 8 SDK, a reviewed explicit NuGet configuration and project-private home/cache/config directories. No global tools or dependencies are installed. Restore is allowed only with --restore; an existing lockfile uses locked mode. Both build and test otherwise use --no-restore. Imports/targets/test code can still perform arbitrary operations: these controls are not a security sandbox. Default project is Tests/WORKFLOW/Workflow.Tests.csproj under the selected local project. Explicit --test-project and --nuget-config inputs use shell CWD. Relative report destinations use the selected local project. Existing reports are refused. Raw native stdout/stderr is discarded, and sensitive raw TRX stays in the test project's .logicapp-test-state/runs/INVOCATION_ID/native.trx. Only bounded, consistent completed TRX counts can produce nativeTestsPassed. Empty/entirely skipped suites exit 7, deadline expiry 8, cleanup pending 9. Other exits: 1 native test failure, 2 runner/dependency error, 3 local input, 4 missing acknowledgement, 5 observed input drift, 6 publication, 130 interruption. Counts do not attest that arbitrary test code called the SDK or covered the selected workflow. Mocking is not denied-egress execution or connector certification.
2 examples 10 options Its page in the Azure CLI extensions reference
Examples
Restore and run an authored, reviewed synthetic test project after reviewing SDK terms.
az logicapp test run --path .\App --workflow Orders --accept-sdk-terms --trust-project --restoreIdentify--pathExisting local Standard project.--workflowOne explicit local workflow directory name.--accept-sdk-termsAcknowledge the Microsoft Logic Apps Tests SDK 1.0.3 use, data collection and update terms for this invocation.--trust-projectAcknowledge that the reviewed project, restore/build targets and test code can execute arbitrary code and contact services.--restoreExplicitly allow native NuGet restore into project-private caches.Run a previously restored project and save a new sanitized report.
az logicapp test run --workflow Orders --accept-sdk-terms --trust-project --report-path .\Reports\native.jsonIdentify--workflowOne explicit local workflow directory name.--accept-sdk-termsAcknowledge the Microsoft Logic Apps Tests SDK 1.0.3 use, data collection and update terms for this invocation.--trust-projectAcknowledge that the reviewed project, restore/build targets and test code can execute arbitrary code and contact services.--report-pathOptional new sanitized .json report; relative paths use the selected local project.Options
--accept-sdk-termsAcknowledge the Microsoft Logic Apps Tests SDK 1.0.3 use, data collection and update terms for this invocation.--contextNamed local project context.--nuget-configReviewed NuGet configuration used only with --restore.--pathExisting local Standard project.--report-pathOptional new sanitized .json report; relative paths use the selected local project.--restoreExplicitly allow native NuGet restore into project-private caches.--test-projectExisting native MSTest .csproj.--timeoutTotal native toolchain/restore/build/test deadline, 1-3600 seconds.--trust-projectAcknowledge that the reviewed project, restore/build targets and test code can execute arbitrary code and contact services.--workflowOne explicit local workflow directory name.