[cli-extension] - connector-namespace trigger update drops deliveryMode and fails for Poll state changes
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- azure, javascript
調査の方向性
Start by locating the generated AAZ implementation for az connector-namespace trigger update and inspect its GET-to-instance-update-to-PUT schema, which the issue reports omits deliveryMode. Compare it with the trigger configuration properties described in the issue and identify how the update can preserve Poll while changing state. Reproduce with an existing Disabled/Poll trigger, then verify that enabling or disabling retains deliveryMode and the other core properties.
索引モデルが issue の本文から書いたものです。
説明
What happened?
With the latest published connector-namespace CLI wheel, 1.0.0b33, az connector-namespace trigger update --state ... fails for existing Poll trigger configurations because the update request does not retain deliveryMode.
Both directions were reproduced against controlled Dataverse polling configurations on an existing connector:
- Enabled/Poll ->
--state Disabled: exit 1,InvalidRequestContent; follow-up GET remained Enabled/Poll with the original core configuration unchanged. - Disabled/Poll ->
--state Enabled: a separate, uniquely named new trigger was created through REST with Disabled/Poll (HTTP 201), and its baseline was confirmed by GET. One CLI enable attempt returned exit 1 with the same error; the final GET remained Disabled/Poll. This control ran on 2026-11-04 at approximately 00:04:50-00:04:56 UTC. No existing trigger was modified, no source item was created, and the new trigger was retained disabled.
The installed generated AAZ update implementation performs GET -> instance update -> PUT, but its schema omits deliveryMode; this is consistent with the provider reporting an empty requested mode. The CLI exposes no --delivery-mode option on trigger update.
The same CLI path is used by other polling samples, but these live reproductions establish Dataverse behavior only; SharePoint and other connectors were not independently exercised in these controls.
What did you expect to happen?
Updating a polling trigger's state should retain deliveryMode: Poll and unrelated configuration, enabling or disabling the existing trigger without deleting or recreating it.
Steps to reproduce
- On an existing Connector Namespace connection, create a uniquely named Dataverse
GetOnNewItems_V2trigger configuration through ARM REST or Bicep withproperties.deliveryMode: Pollandproperties.state: Disabled. - GET the resource through ARM REST and confirm Disabled/Poll.
- Run:
az connector-namespace trigger update \
--resource-group '<resource-group>' \
--namespace '<namespace>' \
--name '<existing-poll-trigger>' \
--state Enabled
- Observe
InvalidRequestContentsaying that the existing delivery mode is Poll and the update requests an empty mode. - GET the resource again and observe that it remains Disabled/Poll.
- The reverse transition is also affected: on an Enabled/Poll trigger,
--state Disabledfails and the trigger remains Enabled/Poll.
REST workaround evidence: A full-property PUT to the same existing trigger-config resource using API version 2026-05-01-preview, explicitly retaining properties.deliveryMode: Poll, returned HTTP 200. The accepted body used the original GET's properties minus provisioningState and pollingEndpoints, preserving connectionDetails, description, metadata, operationName, typed parameters, state, and type. No top-level GET identity/system metadata was sent. The successful control restored the original Enabled/Poll configuration and confirmed all core properties by GET; it is not a claim that every possible provider-returned field is writable.
Version / build
- Azure CLI: 2.92.0
- Azure CLI core: 2.92.0
- Extension: connector-namespace 1.0.0b33
- API: Microsoft.Web/connectorGateways/triggerConfigs, 2026-05-01-preview
- OS: Windows NT 10.0.26300.0
Versions were captured immediately before the Disabled -> Enabled control. The official latest-wheel URL, https://aka.ms/connector-namespace.whl, currently redirects to the 1.0.0b33 wheel. Repository release v1.0.0b34 contains a source archive rather than a newer CLI wheel.
Relevant logs or output
Exact stderr from the Disabled -> Enabled attempt, with only the trigger name replaced:
ERROR: (InvalidRequestContent) The delivery mode can't be changed for the '<new-trigger-name>' trigger. The existing delivery mode is 'Poll' and the update requests ''. To switch delivery mode, delete the trigger and create a new one.
Code: InvalidRequestContent
Message: The delivery mode can't be changed for the '<new-trigger-name>' trigger. The existing delivery mode is 'Poll' and the update requests ''. To switch delivery mode, delete the trigger and create a new one.
The Enabled -> Disabled attempt returned the same error. Neither rejected update changed the observed resource state or delivery mode. Resource IDs, source selectors, credentials, and callback URLs are intentionally omitted.
- 主要言語
- JavaScript
- スター
- 20
- フォーク
- 7
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Azure/Connectors のほかの issue
-
bug portal
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
Azure/Connectors#178 ·
-
bug portal
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
Azure/Connectors#179 ·
-
[Portal] Salesforce record-created trigger accepts an object missing required CreatedDate fieldオープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
Azure/Connectors#177 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 54/100
Azure/Connectors#176 ·
-
bug portal
難易度 4/5 3〜5日 初心者へのやさしさ 43/100
Azure/Connectors#175 ·
Azure/Connectors の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
good first issue tests
難易度 1/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug role: dev-lead
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
briangwalker/TrussExplorer#424 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
eliasstravik/herdr-projects#1032 ·
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100