v1.0.0b33 (preview) #138
Unanswered
DevArjun23
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
The next preview of the
az connector-namespaceAzure CLI extension. Builds on v1.0.0b9 with a new end-to-end OAuthconnection authenticateflow, connector/operation discovery commands, catalog and search modes, security hardening, and a long list of fixes.✨ New commands
az connector-namespace connection authenticate— runs a connection's OAuth consent flow end to end:list-consent-links→ opens the connector's login page in the browser → captures the redirect on an ephemeral127.0.0.1loopback →confirm-consent-code(when the connector returns a code) → polls the connectionoverallStatusto a terminal state. On success it also grants the authenticating user an access policy (theiroid/tidfrom the current token). Flags:--no-browser(headless/CI — print URL, paste the code),--no-access-policy,--object-id/--tenant-id(advanced overrides),--redirect-url,--parameter-name,--timeout.az connector-namespace connector list-operations— lists a connector's operations, filtered by--operation-type {trigger,action,all}(defaultaction). Works in gateway mode and--catalog <region>mode. Designed for trigger discovery and previewingmcp-connector createauto-fill.az connector-namespace list-locations— enumerates the Azure regions where a connector namespace can be created ({name, displayName}sorted by display name, normalized region ids), matching theaz account list-locationsconvention.➕ New flags on existing commands
connection create --authenticate— create a connection and run its OAuth consent flow in a single command. The consent options (--no-browser,--no-access-policy,--timeout,--object-id/--tenant-id,--redirect-url,--parameter-name) apply only when--authenticateis set.connection authenticateandconnection createshare the same consent engine internally.connector show --catalog <region>and--export-swagger— independently combinable, giving four modes: gateway+metadata (default, unchanged), gateway+swagger, catalog+metadata, catalog+swagger.--catalogreads the regionalmanagedApiscatalog and makes--namespace/--resource-groupoptional.connector list/connector list-operations--search <keywords>— client-side filter; an item matches only when it contains every space-separated keyword (case-insensitive substring).listmatches name/displayName/description;list-operationsmatches name/summary/description/path.mcp-connector createoperation auto-fill — auto-populatesoperations[]from the connector swagger (one MCP tool per non-trigger operation, every parameter mapped toagentParameters) when a--connectorsentry omits it.--no-auto-toolsopts out; an explicit emptyoperations: []is honored as "zero tools".💥 Breaking changes (vs v1.0.0b9)
trigger run list,trigger run show,trigger status show:--trigger-config-nameis renamed to--name/-n(no back-compat alias — the old option is removed). To free the--nameslot, the leaf-resource args drop their--name/-naliases:trigger run shownow takes--run-idonly, andtrigger status shownow takes--trigger-status-nameonly.Migration: replace
--trigger-config-name <x>with-n <x>on all three commands; use--run-id/--trigger-status-namefor the leaf ids.🔒 Security hardening
api_name/connector_namespace_nameargs (connector show,connector list-operations), and now rejects exact./..— closing a dot-segment URL-collapse vector (e.g./managedApis/..rewriting to a different ARM resource).--catalogand toconnectors[].connection_name/connectors[].nameso?///%can't smuggle URL delimiters into the ARM URLs the extension builds.🐛 Notable fixes
connection invokeno longer crashes (Expect <class 'dict'>…) when the upstream response body is a JSON array, scalar, ornull(e.g. SharePointGetViewScopeOptions, OneDrive folder listings). Resolves connector-namespace CLI: connection invoke crashes on array response body (OneDrive folder listing) #131.mcp-connector createauto-fill: handles Swagger 2.0 / JSON-SchemaallOf/anyOf/oneOf/additionalProperties(SharePoint/Outlook/Teams body schemas no longer drop to empty);tool_namenow comes fromoperationId(no duplicatetoolNamewithin a connector); deprecated-operation filtering honors the spec-standarddeprecated: true;$refresolution depth raised 5 → 10; falsyx-ms-trigger(false/"") treated as "not a trigger".connection authenticateconsent capture: the loopback is now a threaded server with a per-connection timeout, so a browser preconnect can't stall the real "Allow access" redirect; the consent URL prints as a clickable OSC 8 hyperlink./startlauncher popup; the command waits for the browser to finish before reading status (then polls every 40s) — fixing a premature "Connected" on already-authenticated connections; an up-front heads-up when the connection is already Connected; concise green success output (no full-resource JSON dump); the terminal consent link is shown in blue rather than as a yellow warning.🔧 CLI conventions / internals
AzureResponseError(correctazclierrortaxonomy);--no-auto-tools/--export-swaggerare true bare-flag switches; every command ships:example:help blocks; the command loader wires every@register_commandrecipe and fails loud if one is missing from__all__.Install
Verify:
az connector-namespace --help·az extension show --name connector-namespace --query versionVerify the download
connector_namespace-1.0.0b33-py3-none-any.whl(223,281 bytes)4012e771185b0bfcce7cc0e6dacdfb364d3a161bee1855ce874c5641310c568fcurl -L -O https://github.com/Azure/Connectors/releases/download/v1.0.0b33/connector_namespace-1.0.0b33-py3-none-any.whl sha256sum connector_namespace-1.0.0b33-py3-none-any.whl # Expect: 4012e771185b0bfcce7cc0e6dacdfb364d3a161bee1855ce874c5641310c568fFiling issues
https://github.com/Azure/Connectors/issues. Include
az --version,az extension show --name connector-namespace, the full command (redact secrets), and the full error (run with--debugif helpful).This discussion was created from the release v1.0.0b33 (preview).
All reactions