[cli-extension] - connector-namespace trigger update drops deliveryMode and fails for Poll state changes
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 62/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- azure, javascript
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- JavaScript
- Estrellas
- 20
- Forks
- 7
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/Connectors
-
bug portal
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Azure/Connectors#178 ·
-
bug portal
Dificultad 3/5 1-2 días Aptitud para principiantes 58/100
Azure/Connectors#179 ·
-
[Portal] Salesforce record-created trigger accepts an object missing required CreatedDate fieldAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
Azure/Connectors#177 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 54/100
Azure/Connectors#176 ·
-
bug portal
Dificultad 4/5 3-5 días Aptitud para principiantes 43/100
Azure/Connectors#175 ·
Todos los issues de Azure/Connectors
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Los mantenedores suelen responder en 1 día
-
good first issue tests
Dificultad 1/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
bug role: dev-lead
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
briangwalker/TrussExplorer#424 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
eliasstravik/herdr-projects#1032 ·
-
Download a leaderboard as CSVAbiertoenhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100