Add az connector-namespace CLI documentation + install tooling#118
Conversation
There was a problem hiding this comment.
Pull request overview
This PR onboards the customer-facing az connector Azure CLI extension into the repo as a downloadable preview wheel, accompanied by a full set of human and AI-agent documentation plus runnable bash examples. It is purely additive (one line added to the root README) and does not change any product code in this repository; the purpose is to provide a public install channel and authoritative usage docs for managing Microsoft.Web/connectorGateways from the CLI.
Changes:
- Adds a
cli/tree with README, AGENTS.md (AI-agent guide), preview wheel, and docs (quickstart, cookbook, authentication, commands, troubleshooting). - Adds six runnable example scripts covering bootstrap, OAuth consent, access grants, OBO/hosted MCP, and webhook triggers.
- Adds a single bullet to the root
README.mdlinking to the new CLI directory.
Reviewed changes
Copilot reviewed 14 out of 15 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| README.md | Adds a Resources bullet linking to the new CLI extension directory. |
| cli/README.md | Customer landing page: install/uninstall, quick tour, concepts, links to docs. |
| cli/AGENTS.md | AI-agent guide: decision tree, rules of engagement, auth-mode matrix, asymmetry traps. |
| cli/docs/quickstart.md | 5-minute end-to-end walkthrough creating a namespace, connection, MCP connector, and API key. |
| cli/docs/cookbook.md | Ten end-to-end bash recipes for common scenarios. |
| cli/docs/authentication.md | Deep dive on API key / access key / managed identity / connection-credential models, and access policies. |
| cli/docs/commands.md | Full command reference table (states 37 commands; tables sum to 47 — flagged). |
| cli/docs/troubleshooting.md | Eleven common errors with explanations and fixes. |
| cli/examples/01-bootstrap.sh | Creates RG, namespace, and an Office 365 connection. |
| cli/examples/02-consent-flow.sh | Two-step OAuth consent (generate link, then exchange code). |
| cli/examples/03-grant-access.sh | Grants an Entra ID principal access to a connection. |
| cli/examples/04-obo-mcp-connector.sh | Creates an OBO MCP connector; references a missing 04-grant-mcp-access.sh — flagged. |
| cli/examples/05-hosted-mcp-server.sh | Creates a hosted-MCP-server MCP connector with FIC + admin app reg. |
| cli/examples/06-webhook-trigger.sh | Creates a webhook trigger and prints inspection commands. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Addressed reviewer commentsPushed
Bonus: Reconciled Marking review threads resolved. |
az connector CLI extension (preview wheel + docs + AI guide)az connector-namespace CLI extension (preview wheel + docs + AI guide)
Status update — docs restructure completePushed New directory layoutCustomer install — now a one-liner# Linux / macOS
curl -fsSL https://raw.githubusercontent.com/Azure/Connectors/main/docs/early/cli/install.sh | sh# Windows
irm https://raw.githubusercontent.com/Azure/Connectors/main/docs/early/cli/install.ps1 | iexThe installer reads What changed under the hood
Follow-up after merge
|
Update: aka.ms shortlink + internal code-review fixesPushed Distribution:
|
Update: command/arg correctness audit against the aaz modulePushed
All 5 issues verified against |
az connector-namespace CLI extension (preview wheel + docs + AI guide)az connector-namespace CLI documentation + install tooling
…rop aka.ms) Customer-facing docs now reference the direct asset URL instead of the aka.ms shortlink. Self-documenting (customers see exactly where the binary comes from), version-pinned (no surprise upgrades from a shortlink target change), and immutable per release. install.sh and install.ps1 keep using aka.ms internally so the one-liners (curl|sh / irm|iex) continue to install the latest version automatically as new releases are cut and the aka.ms target is updated. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ect GitHub Release URL Switch the default-install code path from the aka.ms shortlink to a DEFAULT_VERSION constant (currently 1.0.0b9) that points at the matching GitHub Release asset URL. The release tag is the single source of truth - no out-of-band shortlink redirect to keep in sync, and the script honestly tells you what version youre getting. Bumping the version is a single-line edit (the DEFAULT_VERSION constant in each script). Users can still override per-call via CONNECTOR_NAMESPACE_VERSION (sh) or -Version (ps1). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Three places used internal implementation language (aaz = aaz-dev-tools, the swagger -> CLI code generator) that customers do not need to know about. Replaced with neutral wording that focuses on customer-observable behavior: * AGENTS.md L163: "aaz-only export missed the alias on a new command" -> "Long flag name exceeded the CLI is limit" * AGENTS.md L167: "freshly generated extension" + "swagger has a path-param naming collision" -> "freshly installed extension" + "a path parameter name collides at the CLI layer" * complete-reference.md L398: "hides the aaz-generated --api-hub-environment-id..." -> "hides the default --api-hub-environment-id..." Three remaining AAZ hits are intentional: they are the literal error message (`Model AAZObjectArg has no field named connector_name`) that azure-cli emits in the terminal. Users grep their error output to find the fix, so the docs must contain the verbatim string. The fix and cause columns in those rows use plain customer-facing wording. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…t-id mention) README.md L468 and complete-reference.md L390+520 already say "tag-only" and explicitly call out that the TagOnlyNamespaceUpdate recipe hides every other body field (including --api-hub-environment-id). AGENTS.md was the last holdout still telling agents to try --api-hub-environment-id, which would silently no-op. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The --trigger-status-name (-n) value is interpolated verbatim as the final URL path segment (.../triggerStatuses/{name}). 'primary' is not a materialized status sub-resource and returns HTTP 404. Omitting -n defaults to 'latest', which is the working call.
…mple - install.sh/install.ps1: default to https://aka.ms/connector-namespace.whl, download to a temp file then install; keep version override as a GitHub Release fallback - remove examples/05-hosted-mcp-server.sh Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
9752fe5 to
0382365
Compare
apranaseth
left a comment
There was a problem hiding this comment.
why are we putting them under early?
- README: use ARM resource-id placeholder for --api-hub-environment-id instead of <uuid> (it is an ARM id, not a bare UUID) - README + complete-reference: correct examples count (6 -> 5) after removing 05-hosted-mcp-server.sh - complete-reference: installer default now tracks the aka.ms wheel redirect, not a pinned 1.0.0b9 version - install.ps1: use throw instead of exit 1 so a failed prerequisite check doesn't terminate the user's shell under irm | iex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Create a top-level connector-namespace-cli/ directory and relocate README.md, install.sh, and install.ps1 from docs/early/cli/. Update raw install URLs and all cross-directory relative markdown links accordingly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Relocate connector-namespace-cli/ into a new public-preview/ directory. Update raw install URLs and all cross-directory relative markdown links to reflect the deeper path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…mespace-cli Relocate complete-reference.md and the examples/ scripts alongside the README under public-preview/connector-namespace-cli/. Update relative markdown links: README and complete-reference now reference each other and examples as siblings; AGENTS.md (still in docs/early/cli) points up to the moved files. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Point the Authentication-mode matrix reference at the full heading slug (#authentication-mode-matrix-for-mcp-connector-create). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… docs/ Relocate AGENTS.md alongside the rest of the CLI doc set and update its links plus the README/complete-reference references to siblings. The now -empty docs/ directory is removed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What
Adds the customer-facing documentation, AI-agent integration guide, and install tooling for the
az connector-namespaceAzure CLI extension. The wheel itself ships through GitHub Releases on this repo. By default the install scripts fetch the latest published wheel via thehttps://aka.ms/connector-namespace.whlredirect; a specific version can still be pinned per-call.The layout follows the microsoft/azure-container-apps early-access pattern: one landing README, one complete-reference, install scripts, AI-agent guide, and runnable examples.
Directory layout
Plus a one-line update to root
README.mdadding the CLI to the Resources section.How customers install
Default install fetches the latest published wheel via the
https://aka.ms/connector-namespace.whlredirect (the script downloads it to a temp file, then installs from the local file):curlone-liner frompublic-preview/connector-namespace-cli/install.shirmone-liner frompublic-preview/connector-namespace-cli/install.ps1Version pinning per-call via the
CONNECTOR_NAMESPACE_VERSIONenv var (sh) or-Versionparameter (ps1), which resolves to the matching GitHub Release asset URL.Direct no-script install:
The
aka.ms/connector-namespace.whlredirect is the single source of truth for the default install; bumping it requires no change to the scripts.Command surface
9 sub-groups, 45 commands rooted at
az connector-namespace: namespace, identity, connection, connection access-policy, mcp-connector, mcp-connector access-policy, trigger (+ run + status), connector catalog, managed-mcp-operation catalog. Full reference inpublic-preview/connector-namespace-cli/complete-reference.md.What the AI agent guide does
public-preview/connector-namespace-cli/AGENTS.mdfollows the AGENTS.md community convention. Contains: decision tree (intent -> command), authentication-mode matrix, argument-shape cheat sheet, asymmetry traps, common-error -> fix table, rules of engagement, and refusal rules.Verification
public-preview/connector-namespace-cli/Out of scope