[cli-extension] - connector-namespace trigger update drops deliveryMode and fails for Poll state changes
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- azure, javascript
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- JavaScript
- Stelle
- 20
- Fork
- 7
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Azure/Connectors
-
bug portal
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
Azure/Connectors#178 ·
-
bug portal
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
Azure/Connectors#179 ·
-
[Portal] Salesforce record-created trigger accepts an object missing required CreatedDate fieldAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
Azure/Connectors#177 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 54/100
Azure/Connectors#176 ·
-
bug portal
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
Azure/Connectors#175 ·
Tutte le issue di Azure/Connectors
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
I maintainer di solito rispondono entro 1 giorno
-
good first issue tests
Difficoltà 1/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
bug role: dev-lead
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
briangwalker/TrussExplorer#424 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
eliasstravik/herdr-projects#1032 ·
-
enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100