Repository navigation
{Service Connector} az aks connection create: Add --no-recreate to avoid creating operation for existing connection and update kubernetesResourceName in aks connection response - #32140
Conversation
️✔️AzureCLI-FullTest
|
|
| rule | cmd_name | rule_message | suggest_message |
|---|---|---|---|
| aks connection create app-insights | cmd aks connection create app-insights added parameter no_recreate |
||
| aks connection create appconfig | cmd aks connection create appconfig added parameter no_recreate |
||
| aks connection create cognitiveservices | cmd aks connection create cognitiveservices added parameter no_recreate |
||
| aks connection create cosmos-cassandra | cmd aks connection create cosmos-cassandra added parameter no_recreate |
||
| aks connection create cosmos-gremlin | cmd aks connection create cosmos-gremlin added parameter no_recreate |
||
| aks connection create cosmos-mongo | cmd aks connection create cosmos-mongo added parameter no_recreate |
||
| aks connection create cosmos-sql | cmd aks connection create cosmos-sql added parameter no_recreate |
||
| aks connection create cosmos-table | cmd aks connection create cosmos-table added parameter no_recreate |
||
| aks connection create eventhub | cmd aks connection create eventhub added parameter no_recreate |
||
| aks connection create keyvault | cmd aks connection create keyvault added parameter no_recreate |
||
| aks connection create mongodb-atlas | cmd aks connection create mongodb-atlas added parameter no_recreate |
||
| aks connection create mysql | cmd aks connection create mysql added parameter no_recreate |
||
| aks connection create mysql-flexible | cmd aks connection create mysql-flexible added parameter no_recreate |
||
| aks connection create neon-postgres | cmd aks connection create neon-postgres added parameter no_recreate |
||
| aks connection create postgres | cmd aks connection create postgres added parameter no_recreate |
||
| aks connection create postgres-flexible | cmd aks connection create postgres-flexible added parameter no_recreate |
||
| aks connection create redis | cmd aks connection create redis added parameter no_recreate |
||
| aks connection create redis-enterprise | cmd aks connection create redis-enterprise added parameter no_recreate |
||
| aks connection create servicebus | cmd aks connection create servicebus added parameter no_recreate |
||
| aks connection create signalr | cmd aks connection create signalr added parameter no_recreate |
||
| aks connection create sql | cmd aks connection create sql added parameter no_recreate |
||
| aks connection create storage-blob | cmd aks connection create storage-blob added parameter no_recreate |
||
| aks connection create storage-file | cmd aks connection create storage-file added parameter no_recreate |
||
| aks connection create storage-queue | cmd aks connection create storage-queue added parameter no_recreate |
||
| aks connection create storage-table | cmd aks connection create storage-table added parameter no_recreate |
||
| aks connection create webpubsub | cmd aks connection create webpubsub added parameter no_recreate |
||
| containerapp connection create app-insights | cmd containerapp connection create app-insights added parameter no_recreate |
||
| containerapp connection create appconfig | cmd containerapp connection create appconfig added parameter no_recreate |
||
| containerapp connection create cognitiveservices | cmd containerapp connection create cognitiveservices added parameter no_recreate |
||
| containerapp connection create containerapp | cmd containerapp connection create containerapp added parameter no_recreate |
||
| containerapp connection create cosmos-cassandra | cmd containerapp connection create cosmos-cassandra added parameter no_recreate |
||
| containerapp connection create cosmos-gremlin | cmd containerapp connection create cosmos-gremlin added parameter no_recreate |
||
| containerapp connection create cosmos-mongo | cmd containerapp connection create cosmos-mongo added parameter no_recreate |
||
| containerapp connection create cosmos-sql | cmd containerapp connection create cosmos-sql added parameter no_recreate |
||
| containerapp connection create cosmos-table | cmd containerapp connection create cosmos-table added parameter no_recreate |
||
| containerapp connection create eventhub | cmd containerapp connection create eventhub added parameter no_recreate |
||
| containerapp connection create fabric-sql | cmd containerapp connection create fabric-sql added parameter no_recreate |
||
| containerapp connection create keyvault | cmd containerapp connection create keyvault added parameter no_recreate |
||
| containerapp connection create mongodb-atlas | cmd containerapp connection create mongodb-atlas added parameter no_recreate |
||
| containerapp connection create mysql | cmd containerapp connection create mysql added parameter no_recreate |
||
| containerapp connection create mysql-flexible | cmd containerapp connection create mysql-flexible added parameter no_recreate |
||
| containerapp connection create neon-postgres | cmd containerapp connection create neon-postgres added parameter no_recreate |
||
| containerapp connection create postgres | cmd containerapp connection create postgres added parameter no_recreate |
||
| containerapp connection create postgres-flexible | cmd containerapp connection create postgres-flexible added parameter no_recreate |
||
| containerapp connection create redis | cmd containerapp connection create redis added parameter no_recreate |
||
| containerapp connection create redis-enterprise | cmd containerapp connection create redis-enterprise added parameter no_recreate |
||
| containerapp connection create servicebus | cmd containerapp connection create servicebus added parameter no_recreate |
||
| containerapp connection create signalr | cmd containerapp connection create signalr added parameter no_recreate |
||
| containerapp connection create sql | cmd containerapp connection create sql added parameter no_recreate |
||
| containerapp connection create storage-blob | cmd containerapp connection create storage-blob added parameter no_recreate |
||
| containerapp connection create storage-file | cmd containerapp connection create storage-file added parameter no_recreate |
||
| containerapp connection create storage-queue | cmd containerapp connection create storage-queue added parameter no_recreate |
||
| containerapp connection create storage-table | cmd containerapp connection create storage-table added parameter no_recreate |
||
| containerapp connection create webpubsub | cmd containerapp connection create webpubsub added parameter no_recreate |
||
| functionapp connection create app-insights | cmd functionapp connection create app-insights added parameter no_recreate |
||
| functionapp connection create appconfig | cmd functionapp connection create appconfig added parameter no_recreate |
||
| functionapp connection create cognitiveservices | cmd functionapp connection create cognitiveservices added parameter no_recreate |
||
| functionapp connection create cosmos-cassandra | cmd functionapp connection create cosmos-cassandra added parameter no_recreate |
||
| functionapp connection create cosmos-gremlin | cmd functionapp connection create cosmos-gremlin added parameter no_recreate |
||
| functionapp connection create cosmos-mongo | cmd functionapp connection create cosmos-mongo added parameter no_recreate |
||
| functionapp connection create cosmos-sql | cmd functionapp connection create cosmos-sql added parameter no_recreate |
||
| functionapp connection create cosmos-table | cmd functionapp connection create cosmos-table added parameter no_recreate |
||
| functionapp connection create eventhub | cmd functionapp connection create eventhub added parameter no_recreate |
||
| functionapp connection create fabric-sql | cmd functionapp connection create fabric-sql added parameter no_recreate |
||
| functionapp connection create keyvault | cmd functionapp connection create keyvault added parameter no_recreate |
||
| functionapp connection create mongodb-atlas | cmd functionapp connection create mongodb-atlas added parameter no_recreate |
||
| functionapp connection create mysql | cmd functionapp connection create mysql added parameter no_recreate |
||
| functionapp connection create mysql-flexible | cmd functionapp connection create mysql-flexible added parameter no_recreate |
||
| functionapp connection create neon-postgres | cmd functionapp connection create neon-postgres added parameter no_recreate |
||
| functionapp connection create postgres | cmd functionapp connection create postgres added parameter no_recreate |
||
| functionapp connection create postgres-flexible | cmd functionapp connection create postgres-flexible added parameter no_recreate |
||
| functionapp connection create redis | cmd functionapp connection create redis added parameter no_recreate |
||
| functionapp connection create redis-enterprise | cmd functionapp connection create redis-enterprise added parameter no_recreate |
||
| functionapp connection create servicebus | cmd functionapp connection create servicebus added parameter no_recreate |
||
| functionapp connection create signalr | cmd functionapp connection create signalr added parameter no_recreate |
||
| functionapp connection create sql | cmd functionapp connection create sql added parameter no_recreate |
||
| functionapp connection create storage-blob | cmd functionapp connection create storage-blob added parameter no_recreate |
||
| functionapp connection create storage-file | cmd functionapp connection create storage-file added parameter no_recreate |
||
| functionapp connection create storage-queue | cmd functionapp connection create storage-queue added parameter no_recreate |
||
| functionapp connection create storage-table | cmd functionapp connection create storage-table added parameter no_recreate |
||
| functionapp connection create webpubsub | cmd functionapp connection create webpubsub added parameter no_recreate |
||
| webapp connection create app-insights | cmd webapp connection create app-insights added parameter no_recreate |
||
| webapp connection create appconfig | cmd webapp connection create appconfig added parameter no_recreate |
||
| webapp connection create cognitiveservices | cmd webapp connection create cognitiveservices added parameter no_recreate |
||
| webapp connection create cosmos-cassandra | cmd webapp connection create cosmos-cassandra added parameter no_recreate |
||
| webapp connection create cosmos-gremlin | cmd webapp connection create cosmos-gremlin added parameter no_recreate |
||
| webapp connection create cosmos-mongo | cmd webapp connection create cosmos-mongo added parameter no_recreate |
||
| webapp connection create cosmos-sql | cmd webapp connection create cosmos-sql added parameter no_recreate |
||
| webapp connection create cosmos-table | cmd webapp connection create cosmos-table added parameter no_recreate |
||
| webapp connection create eventhub | cmd webapp connection create eventhub added parameter no_recreate |
||
| webapp connection create fabric-sql | cmd webapp connection create fabric-sql added parameter no_recreate |
||
| webapp connection create keyvault | cmd webapp connection create keyvault added parameter no_recreate |
||
| webapp connection create mongodb-atlas | cmd webapp connection create mongodb-atlas added parameter no_recreate |
||
| webapp connection create mysql | cmd webapp connection create mysql added parameter no_recreate |
||
| webapp connection create mysql-flexible | cmd webapp connection create mysql-flexible added parameter no_recreate |
||
| webapp connection create neon-postgres | cmd webapp connection create neon-postgres added parameter no_recreate |
||
| webapp connection create postgres | cmd webapp connection create postgres added parameter no_recreate |
||
| webapp connection create postgres-flexible | cmd webapp connection create postgres-flexible added parameter no_recreate |
||
| webapp connection create redis | cmd webapp connection create redis added parameter no_recreate |
||
| webapp connection create redis-enterprise | cmd webapp connection create redis-enterprise added parameter no_recreate |
||
| webapp connection create servicebus | cmd webapp connection create servicebus added parameter no_recreate |
||
| webapp connection create signalr | cmd webapp connection create signalr added parameter no_recreate |
||
| webapp connection create sql | cmd webapp connection create sql added parameter no_recreate |
||
| webapp connection create storage-blob | cmd webapp connection create storage-blob added parameter no_recreate |
||
| webapp connection create storage-file | cmd webapp connection create storage-file added parameter no_recreate |
||
| webapp connection create storage-queue | cmd webapp connection create storage-queue added parameter no_recreate |
||
| webapp connection create storage-table | cmd webapp connection create storage-table added parameter no_recreate |
||
| webapp connection create webpubsub | cmd webapp connection create webpubsub added parameter no_recreate |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
az aks connection create: Add --no-recreate to avoid creating operation in existing connection and update kubernetesResourceName in aks connection responseaz aks connection create: Add --no-recreate to avoid creating operation for existing connection and update kubernetesResourceName in aks connection response
There was a problem hiding this comment.
Pull Request Overview
This PR adds a --no-recreate flag to the az aks connection create command to avoid creating operations when an existing connection has no changes, and updates the kubernetesResourceName format in AKS connection responses.
- Adds
no_recreateparameter to skip creation when existing connections have no meaningful property changes - Updates AKS resource name format from list to dictionary structure for better clarity
- Adds property comparison logic to detect meaningful changes between new and existing connections
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| custom.py | Adds no_recreate parameter and logic to check existing connections before creating new ones |
| _utils.py | Adds property comparison function and updates AKS resource name format to dictionary |
| _params.py | Adds command line argument definition for --no-recreate flag |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
kai ru (@kairu-ms) This PR is ready. Could you help review and merge it? |
Related command
Description
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.