Skip to content

{Service Connector} az containerapp connection create: Block command as Service Connector (preview) on Azure Container Apps has been retired#33723

Open
khkh-ms wants to merge 1 commit into
Azure:devfrom
khkh-ms:serviceconnector/block-containerapp-connection-create
Open

{Service Connector} az containerapp connection create: Block command as Service Connector (preview) on Azure Container Apps has been retired#33723
khkh-ms wants to merge 1 commit into
Azure:devfrom
khkh-ms:serviceconnector/block-containerapp-connection-create

Conversation

@khkh-ms

@khkh-ms khkh-ms commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Related command

az containerapp connection create

Description

Service Connector (preview) on Azure Container Apps has been retired (see microsoft/azure-container-apps#1566). This change blocks creating new connections for the containerapp source while keeping existing connections fully manageable.

  • Added block_retired_containerapp_connection_create in serviceconnector/_validators.py, invoked at the top of validate_params and validate_kafka_params. It raises a ValidationError for the ContainerApp source before any argument prompting, so the command fails fast with a clear retirement message instead of prompting for parameters.
  • az containerapp connection create <target> (all targets, including confluent-cloud) now exits non-zero with:

    Service Connector (preview) on Azure Container Apps has been retired. 'az containerapp connection create' is no longer supported. For more information, see RETIREMENT: Service Connector (Preview) on Azure Container Apps will be retired on March 30, 2026. microsoft/azure-container-apps#1566.

  • list, show, validate, delete, and update remain functional so users can still manage existing connections.
  • Other source resources (webapp, functionapp, spring-cloud, aks, etc.) are unaffected.

Testing Guide

Built the CLI from source with azdev and verified:

  • az containerapp connection create postgres and az containerapp connection create confluent-cloud ... → retirement error, exit code 1, no prompting.
  • az containerapp connection update/list/show/delete/validate → work as before.
  • az webapp connection create postgres → unaffected (other sources still allow create).

Work item: 38660284 (Remove Service Connector on ACA)

…d as Service Connector (preview) on Azure Container Apps has been retired

Service Connector (preview) on Azure Container Apps has been retired (see microsoft/azure-container-apps#1566). Block creating new connections for the containerapp source in validate_params and validate_kafka_params while keeping list/show/validate/delete/update and other source resources working.
@khkh-ms khkh-ms requested review from a team as code owners July 13, 2026 19:36
Copilot AI review requested due to automatic review settings July 13, 2026 19:36
@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jul 13, 2026

Copy link
Copy Markdown
️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.14
️✔️acs
️✔️latest
️✔️3.12
️✔️3.14
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.14
️✔️ams
️✔️latest
️✔️3.12
️✔️3.14
️✔️apim
️✔️latest
️✔️3.12
️✔️3.14
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.14
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️aro
️✔️latest
️✔️3.12
️✔️3.14
️✔️backup
️✔️latest
️✔️3.12
️✔️3.14
️✔️batch
️✔️latest
️✔️3.12
️✔️3.14
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.14
️✔️billing
️✔️latest
️✔️3.12
️✔️3.14
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.14
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.14
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.14
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.14
️✔️config
️✔️latest
️✔️3.12
️✔️3.14
️✔️configure
️✔️latest
️✔️3.12
️✔️3.14
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.14
️✔️container
️✔️latest
️✔️3.12
️✔️3.14
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.14
️✔️core
️✔️latest
️✔️3.12
️✔️3.14
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.14
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.14
️✔️dls
️✔️latest
️✔️3.12
️✔️3.14
️✔️dms
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.14
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.14
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.14
️✔️find
️✔️latest
️✔️3.12
️✔️3.14
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.14
️✔️identity
️✔️latest
️✔️3.12
️✔️3.14
️✔️iot
️✔️latest
️✔️3.12
️✔️3.14
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.14
️✔️lab
️✔️latest
️✔️3.12
️✔️3.14
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.14
️✔️maps
️✔️latest
️✔️3.12
️✔️3.14
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.14
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.14
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.14
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.14
️✔️network
️✔️latest
️✔️3.12
️✔️3.14
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.14
️✔️postgresql
️✔️latest
️✔️3.12
️✔️3.14
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.14
️✔️profile
️✔️latest
️✔️3.12
️✔️3.14
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.14
️✔️redis
️✔️latest
️✔️3.12
️✔️3.14
️✔️relay
️✔️latest
️✔️3.12
️✔️3.14
️✔️resource
️✔️latest
️✔️3.12
️✔️3.14
️✔️role
️✔️latest
️✔️3.12
️✔️3.14
️✔️search
️✔️latest
️✔️3.12
️✔️3.14
️✔️security
️✔️latest
️✔️3.12
️✔️3.14
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.14
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.14
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.14
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.14
️✔️sql
️✔️latest
️✔️3.12
️✔️3.14
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.14
️✔️storage
️✔️latest
️✔️3.12
️✔️3.14
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.14
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.14
️✔️util
️✔️latest
️✔️3.12
️✔️3.14
️✔️vm
️✔️latest
️✔️3.12
️✔️3.14

@azure-client-tools-bot-prd

azure-client-tools-bot-prd Bot commented Jul 13, 2026

Copy link
Copy Markdown
️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR blocks creation of new Service Connector connections when the source is Azure Container Apps (az containerapp connection create …), reflecting that Service Connector (preview) on ACA has been retired, while leaving existing connection management commands intact.

Changes:

  • Added a validator guard to fail fast for containerapp source on connection create with a retirement message.
  • Wired the guard into the main parameter validation flows (including the Confluent Kafka-specific validator path).
  • Documented the change in HISTORY.rst.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
src/azure-cli/HISTORY.rst Adds a release note announcing the az containerapp connection create block due to retirement.
src/azure-cli/azure/cli/command_modules/serviceconnector/_validators.py Introduces and invokes a validator to block new ContainerApp-source connection creation with a retirement error.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +86 to +90
if 'create' in cmd.name and get_source_resource_name(cmd) == RESOURCE.ContainerApp:
raise ValidationError(
"Service Connector (preview) on Azure Container Apps has been retired. "
"'az containerapp connection create' is no longer supported. "
"For more information, see https://github.com/microsoft/azure-container-apps/issues/1566.")
Comment on lines +86 to +90
if 'create' in cmd.name and get_source_resource_name(cmd) == RESOURCE.ContainerApp:
raise ValidationError(
"Service Connector (preview) on Azure Container Apps has been retired. "
"'az containerapp connection create' is no longer supported. "
"For more information, see https://github.com/microsoft/azure-container-apps/issues/1566.")
Comment on lines +945 to +946
block_retired_containerapp_connection_create(cmd)

Comment thread src/azure-cli/HISTORY.rst

**Service Connector**

* `az containerapp connection create`: Block the command as Service Connector (preview) on Azure Container Apps has been retired (#38660284)
@yonzhan

yonzhan commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Service Connector

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants