Azure Logic Apps Standard CLI

Azure Logic Apps Standard CLI

Guides an AI agent through creating, validating, testing, running, debugging and deploying Azure Logic Apps Standard projects with the az logicapp CLI extension.

Skill files7 files

references/

SKILL.md293 lines
1
---
2
name: azure-logic-apps-standard-cli
3
description: 'Create, inspect, validate, test, run, debug, package, and deploy Azure Logic Apps Standard projects using the Azure CLI logicapp extension. Use for Standard workflow authoring, optional workspaces, connector discovery, identity-based connections, local runtimes, native workflow tests, and approved cloud lifecycle operations. Not for Consumption-only workflow development.'
4
compatibility: 'Requires Azure CLI 2.67.0 or newer with the logicapp extension; its Python runtime must be 3.10 or newer. Local hosting and native tests have additional task-specific dependencies. Installation, connector catalogs, and Azure operations can require network access and Azure permissions.'
5
---
6
7
# Logic Apps Standard CLI
8
9
Use `az logicapp` as the primary interface for supported Standard project, workflow,
10
connection, validation, runtime, diagnostic, testing, and packaging operations.
11
Do not manually recreate files or Azure wiring owned by a supported command.
12
Manual workflow authoring, workspace files, ignore files, and infrastructure-as-code
13
remain appropriate where the CLI does not own that operation.
14
15
Reviewed baseline: extension **1.0.0b1**. It is a public **preview** for evaluation and
16
development, not a claim of production readiness. Use non-production resources for
17
evaluation. Existing core app-management, app-settings, and ZIP-deployment commands
18
are distinct from the extension's preview commands, even where reference pages label
19
extension commands GA. Declared platform support is not live-runtime qualification.
20
21
## Mandatory procedure routing
22
23
This folder is one installable skill package. Resolve bundled files relative to this
24
`SKILL.md`, not the customer's working directory. Install/copy the entire folder.
25
These references are required procedures, not optional background reading.
26
See the [package README](README.md) for installation, provenance, and maintenance notes.
27
28
**Before the corresponding operation, read every applicable reference below.**
29
For combined tasks, read each required procedure before its phase. If a required
30
file is missing or unreadable, report that operation as blocked. Do not invent
31
syntax, bypass its prerequisites, or fetch an unreviewed substitute.
32
33
| Requested operation | Required bundled procedure |
34
|---|---|
35
| Install/check dependencies; diagnose, start, or stop a host | [Local runtime](references/local-runtime.md) |
36
| Discover connectors; create/change/test/delete connections; configure identity or ACLs | [Connections and identity](references/connections.md) |
37
| Inspect/export/change live workflows; invoke/diagnose/cancel/replay runs | [Live workflows and runs](references/live-operations.md) |
38
| Scaffold, plan, run, or inspect native workflow tests | [Workflow testing](references/testing.md) |
39
| Package, deploy, or change deployment exclusions | [Packaging and deployment](references/packaging-deployment.md) |
40
41
Basic local scaffolding, workspace creation, and offline validation are specified here.
42
Do not start a host, restore packages, invoke workflows, or mutate Azure merely because
43
the skill was activated. Select only the procedures needed for the requested task.
44
45
## Non-negotiable rules
46
47
1. **Inspect before mutation.** Establish the actual project root and requested scope.
48
Inspect affected workflows, configuration structure/references, ignore files,
49
workspaces, and uncommitted changes. Do not dump secret setting values.
50
2. **Preserve existing conventions.** Do not restructure repositories, convert workflow
51
kinds, migrate authentication, normalize aliases, or replace user files unsolicited.
52
3. **Use managed identity by default.** For new connections and deployed app configuration,
53
use another authentication method only when explicitly requested by the customer or
54
unsupported by the selected connector/operation. Authentication failure is not proof
55
of lack of support. Never silently fall back to secrets.
56
4. **Enable identity as part of new-project delivery.** Configure the supported local
57
identity-based connection mechanism. For deployment-facing work, enable app identity
58
through the authorized provisioning/deployment process. Preserve an existing identity
59
convention; otherwise default to system-assigned identity. Local scaffolding does not
60
authorize Azure mutation; report unapproved cloud prerequisites explicitly.
61
5. **Verify distinct principals and permissions.** A local process does not acquire a
62
deployed app's managed identity. Follow the connector's documented local mechanism;
63
do not assume every connector uses `DefaultAzureCredential`. Verify local and cloud
64
principals, connection access, and least-privilege data-plane roles separately.
65
6. **Discover, do not guess.** Obtain connector IDs, operation IDs, parameter sets, and
66
required input shapes from the actual runtime or regional managed catalog. Verify
67
authentication support using metadata and authoritative connector documentation.
68
7. **Protect secrets and sensitive outputs.** Never put secret values in command arguments,
69
source control, examples, or shared logs. Treat existing definitions, exports, and provider
70
output as potentially sensitive; protect and review them before sharing. Use supported
71
stdin secret input and setting references. Required protected local/runtime storage is
72
permitted; local settings and test artifacts must be ignored and excluded from deployment.
73
8. **Keep environments configurable.** Put deployment-specific endpoints, resource IDs,
74
and environment values in settings or parameters, not hardcoded workflow literals.
75
9. **Guard replacements and concurrency.** Inspect before every create; treat creation
76
as non-idempotent. Use `--force` only for reviewed replacement. Export live workflows
77
before replacement/deletion, retain revisions, and obtain approval for non-atomic
78
writes. Do not bypass conflicts or blindly retry uncertain mutations.
79
10. **Authorize effects, not just targets.** Starting local triggers and running test/build
80
code can contact real systems. Establish permitted effects first. Obtain explicit
81
authorization for Azure mutations, cancellation, and replay; preview is not a sandbox.
82
11. **Keep evidence honest.** Read structured results even on nonzero exits. Distinguish
83
configured, authorized, accepted, observed, and verified states. An open port, accepted
84
invocation, generated plan, or inspected report is not successful workflow execution.
85
12. **Validate without manufacturing success.** Validate incrementally; require strict
86
full-project validation before release packaging/deployment. Preserve stricter
87
repository policy. Do not remove warnings, assertions, outputs, or guards merely
88
to obtain a passing result.
89
13. **Own cleanup precisely.** Stop only task-owned runtimes unless asked to leave them
90
running; verify shutdown and shared dependency ownership. Never kill processes by
91
name or stop another user's host/emulator.
92
14. **Preserve deployment boundaries.** Merge ignore rules without replacing unrelated
93
entries; inspect the actual package. Do not deploy local settings, tests, state,
94
editor files, logs, settings templates, or generated packages.
95
15. **Keep connector semantics specialized.** Use available connector-specific guidance
96
for delivery guarantees, poison handling, and operation-specific tests. If unavailable,
97
use authoritative connector documentation; do not invent specialized behavior.
98
99
## Defaults and consequential choices
100
101
| Decision | Rule |
102
|---|---|
103
| Workflow kind | Preserve existing kinds; new workflows default to Stateful |
104
| Stateful vs Stateless | Stateful for durable history/long-running work; choose Stateless deliberately for suitable short-lived, low-latency work |
105
| Initial scope | Local authoring, unless the request includes further operations |
106
| Authentication | Managed identity, subject only to the exceptions above |
107
| Identity type | Existing convention, otherwise system-assigned; user-assigned for explicit stable/shared/pre-provisioned identity requirements |
108
| Project root/layout | Existing repository convention; otherwise the smallest suitable layout |
109
| Workspace | Optional; reuse an existing workspace and ask only if intent is unresolved |
110
| Context | Optional saved shortcut; never change active selection without authorization |
111
| Automation | Explicit project path and runtime/cloud target coordinates |
112
| Runtime lifetime | Stop task-owned hosts after checks unless explicitly asked to retain them |
113
114
Infer paths and established choices from the request/repository. Ask only about missing,
115
consequential decisions. Do not insist on three scaffold questions when answers are known.
116
117
## 1. Verify tooling and select the target
118
119
Inspect first; these commands do not install the extension:
120
121
```azurecli
122
az version
123
az extension list --query "[?name=='logicapp'].{name:name,version:version}" --output table
124
```
125
126
Minimums for the reviewed release: Azure CLI 2.67.0 and its Python runtime 3.10.
127
If the extension is absent and installation is authorized, use the public extension index:
128
129
```azurecli
130
az extension add --name logicapp --version 1.0.0b1 --allow-preview true
131
az extension show --name logicapp --output json
132
az logicapp --help
133
```
134
135
Check the exit after each command; do not continue after failed installation.
136
If the requested version is unavailable, report the index/network/version error.
137
Do not substitute a private wheel, disable TLS, or bypass organizational package policy.
138
Do not automatically upgrade an installed extension. For a different installed version,
139
inspect each affected command's `--help` and current official contracts before execution;
140
report material differences instead of assuming this baseline still applies.
141
142
Detect OS and shell before using examples. Single-line `azurecli` blocks avoid shell-specific
143
continuations. `App`, `Orders`, and uppercase identifiers are illustrative names: substitute
144
the inspected target, quote paths containing spaces, and use the host OS's path separator.
145
PowerShell/native-wrapper quoting for expressions is specified in the connections procedure.
146
147
| Operation | Target contract |
148
|---|---|
149
| Local file authoring/validation | Explicit `--path`; some commands also accept a local context |
150
| Runtime API inspection/execution | `--local --port PORT`, or cloud `--resource-group GROUP --name APP` |
151
| Runtime lifecycle | Local `runtime start/show/stop` flags; not cloud host management |
152
| Runtime doctor | Local `--path` and optional `--port`, or local `--context`; no `--local` |
153
| Managed connection creation | `--name CONNECTION` and `--logic-app-name APP`, not interchangeable |
154
| Live workflow enable/disable | Deployed apps only |
155
156
For API-targeting commands, explicit `--port` requires `--local`. A named context owns its
157
coordinates: do not mix it with explicit API target flags. Inspect command-specific help
158
for file-command context combinations; do not assume one universal precedence rule.
159
Cloud work requires the intended Azure login, tenant, subscription, and permissions.
160
Verify account selection independently: saved contexts do not bind subscription/tenant.
161
Avoid changing global account selection; prefer explicit `--subscription` in automation.
162
163
## 2. Inspect and scaffold locally
164
165
Classify the destination as new, an existing Standard project, or a nonempty unrecognized
166
directory. The **project/host root contains `host.json`**; workflow directories are its direct
167
children. The repository root may itself be that project root.
168
169
For an existing project, inspect `host.json`, workflow files, `connections.json`,
170
`parameters.json` when present, settings names/references, ignore files, workspaces, and
171
affected uncommitted changes. Preserve unrelated content and avoid exposing local values.
172
173
For a new project, choose a minimal project-at-root layout or a solution/monorepo child
174
project according to requirements. Support directories such as docs, requests, fixtures,
175
tests, logs, and artifacts are optional and created only for actual work. Prefer package
176
output outside the host root. Do not author `.azurelogicapps` runtime state.
177
178
After inspecting the destination, scaffold using explicit paths:
179
180
```azurecli
181
az logicapp project create --path App --workflow Orders
182
```
183
184
Add `--workflow-kind Stateless` only for an intentional Stateless choice.
185
Use `--adopt` only for a reviewed nonempty unrecognized directory, not as routine setup.
186
Inspect generated host/settings/connection/workflow files before extending them.
187
Create additional workflows without replacing existing ones:
188
189
```azurecli
190
az logicapp workflow create --path App --workflow Notify --kind Stateful
191
```
192
193
`--file FILE` accepts a reviewed full workflow file or bare definition for local import.
194
Creation is local-only and non-idempotent. Do not use it to add a cloud workflow.
195
196
Before writing sensitive local settings, confirm effective Git exclusions. Merge rules
197
relative to the actual repository and host roots; never copy `.gitignore` over `.funcignore`.
198
Always exclude local settings/state from source control and deployment. If changing
199
deployment exclusions, first read the packaging procedure and follow its concrete rules.
200
201
**Gate:** Correct project root, requested workflow kinds, preserved user files, effective
202
secret exclusions, and identity-based configuration or an explicitly reported prerequisite.
203
204
## 3. Optional workspace and context
205
206
A `.code-workspace` file is optional; opening the host directory is valid. Reuse an existing
207
workspace. When a new multi-root workspace is requested, use relative paths to real folders
208
and put the Logic Apps host project first. Do not create empty folders just to populate it.
209
Adapt this JSON to the selected layout; it is not a required filename or folder scheme:
210
211
```json
212
{
213
"folders": [
214
{ "name": "Logic App", "path": "App" }
215
]
216
}
217
```
218
219
Preserve existing workspace settings and names. Add docs/test roots only when useful and
220
present. For a project-at-root workspace, the project path is `"."`.
221
222
Saved contexts are optional. Inspect `context list` before choosing a unique project-specific
223
name. If requested, create a shortcut without implicitly selecting it:
224
225
```azurecli
226
az logicapp context list --output table
227
az logicapp context create --name orders-local --path App --port 7071
228
az logicapp context show --name orders-local
229
```
230
231
Use `context use --name NAME` or creation's `--use` only when active selection is authorized.
232
`context update` preserves omitted fields and does not select a target; editing an active
233
target prompts unless `--yes` is authorized. A kind change requires explicit local path/port
234
or cloud resource group/app coordinates. Inspect its help before changing kind.
235
`context delete` deletes only a shortcut; deleting the active one clears selection without
236
choosing a replacement. Stores follow `AZURE_CONFIG_DIR`; no credentials belong in them.
237
238
## 4. Author and validate
239
240
Preserve workflow structure/kind. Use stable action/trigger names. Implement the required
241
ordering, branching, retries, timeouts, and failure paths; terminal success/failure paths
242
must not both execute. Use discovered operation shapes and configurable environment values.
243
Create representative non-sensitive fixtures only when needed.
244
245
For built-in connector discovery, read both the local-runtime and connections procedures
246
before establishing safe host startup and querying the catalog. For runtime-backed
247
validation, read the local-runtime procedure and establish readiness first.
248
Native tests can instead use authored mocks without starting a host.
249
250
Validate the workflow under active development:
251
252
```azurecli
253
az logicapp workflow validate --path App --workflow Orders
254
```
255
256
For completed project authoring and before release packaging/deployment:
257
258
```azurecli
259
az logicapp workflow validate --path App --all --fail-on-warning
260
```
261
262
When runtime-backed validation is required, first establish host readiness:
263
264
```azurecli
265
az logicapp workflow validate --path App --all --fail-on-warning --with-runtime --local --port 7071
266
```
267
268
Do not start a host solely for an offline edit/review. Assess findings and preserve repository
269
policy; report unrelated pre-existing failures separately without weakening release gates.
270
Static validation, runtime-template validation, native assertions, and live integration
271
checks are separate evidence. A completed runtime validation response is required; accepted
272
asynchronous validation alone does not establish completion.
273
274
## Completion evidence
275
276
Apply only gates relevant to the requested task; do not turn an inspection into a deployment.
277
278
| Task | Required evidence |
279
|---|---|
280
| Scaffold/author | Requested files/kinds and behavior; affected validation; no unsolicited restructuring |
281
| Connections/identity | Discovered shape, setting references, selected principal, verified grants or explicit blockers; no secrets exposed |
282
| Full-project release | Strict full-project validation passes; required runtime validation completes |
283
| Native tests | Reviewed meaningful assertions, actual executed counts/outcome, skipped counts and limitations |
284
| Live execution/diagnosis | Actual supported run evidence, required outputs/effects, failed action/platform error where available |
285
| Live mutation | Retained export/revision, guarded write result, separate observed runtime behavior |
286
| Cancellation/replay | Requested/accepted/observed/unknown distinguished; no inferred new run IDs |
287
| Package/deploy | Inspected archive/exclusions; authorized prerequisites; required post-deploy verification |
288
| Runtime ownership | Task-owned processes stopped and verified, or explicitly retained with coordinates/ownership |
289
290
State concrete missing permissions, dependencies, resources, unexecuted checks, retained
291
resources, and uncertain effects. Do not call configured identity authorized, an accepted
292
request complete, a skipped suite passing, or a blocked prerequisite satisfied.
293

© GitHub, Inc. · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 11,027 prompts

More by @OpenSourceBuffGuy

See all
Mixed-Media Editorial Portrait prompt image

Mixed-Media Editorial Portrait

Fills a template to make a mixed-media portrait where a realistic face is layered with black sketch strokes, torn newspaper collage and acrylic paint splashes.

image-prompt, collage, portrait, placeholders, template, editorial, poster, photorealistic, sketch, painting, close-up, gpt-image, for-artists, for-designers, illustration, limited-palette, vibrant-colors, quick, dramatic-lighting

Bats Testing Patterns prompt image

Bats Testing Patterns

Shows how to test shell scripts with Bats: test patterns, fixtures, error-case checks and CI integration.

agent-skill, bash, unit-testing, testing, test-driven-development, test-generation, ci-cd, best-practices, command-line, code, for-developers, for-devops-engineers, long-form, linux, developer-tools, code-generation, cheat-sheet

Saturated Diagonal Poster prompt image

Saturated Diagonal Poster

Defines a high-impact editorial poster style: one oversized cropped near-silhouette subject over hard diagonal colour panels, compressed block type and white icons.

image-prompt, json-prompt, placeholders, style-reference, long-form, advanced, poster, silhouette, editorial, vibrant-colors, text-rendering, typography, negative-space, dramatic-lighting, film-grain, portrait, vertical-format, widescreen, graphic-design, collage, for-designers, for-artists, structured-output, template, minimalist

Reviews

Loading reviews…

Discussion

Loading comments…