Skip to content

[Service Connector] az spring connection: Enable new auth types for Spring Boot and Cosmos SQL connection#26719

Merged
kairu-ms merged 12 commits intoAzure:devfrom
wchigit:enable-springboot-mi
Jul 17, 2023
Merged

[Service Connector] az spring connection: Enable new auth types for Spring Boot and Cosmos SQL connection#26719
kairu-ms merged 12 commits intoAzure:devfrom
wchigit:enable-springboot-mi

Conversation

@wchigit
Copy link
Contributor

@wchigit wchigit commented Jun 21, 2023

Related command
az spring connection create/update cosmos-sql
az spring connection show
az spring connection list-configuration

Description
To enable managed identity and service principal as the auth type when sercie connector connects spring apps and cosmos sql using spring boot as the client type. According to Spring Cloud Azure version 4.0, new configuration properties are included. Warning for migration and new display of the connection config info is added.

Testing Guide
Create connection with system identity
az spring connection create cosmos-sql --resource-group --service --app --target-resource-group --account --database --client-type springBoot

Update connection with user identity
az spring connection update cosmos-sql --resource-group --service --app --connection --user-identity client-id= subs-id=

List configurations
az spring connection list-configuration -g --service --app --connection
If the auth type is secret, two sets of configurations will be displayed with explanations.

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 feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jun 21, 2023

️✔️AzureCLI-FullTest
️✔️acr
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️acs
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️advisor
️✔️latest
️✔️3.10
️✔️3.9
️✔️ams
️✔️latest
️✔️3.10
️✔️3.9
️✔️apim
️✔️latest
️✔️3.10
️✔️3.9
️✔️appconfig
️✔️latest
️✔️3.10
️✔️3.9
️✔️appservice
️✔️latest
️✔️3.10
️✔️3.9
️✔️aro
️✔️latest
️✔️3.10
️✔️3.9
️✔️backup
️✔️latest
️✔️3.10
️✔️3.9
️✔️batch
️✔️latest
️✔️3.10
️✔️3.9
️✔️batchai
️✔️latest
️✔️3.10
️✔️3.9
️✔️billing
️✔️latest
️✔️3.10
️✔️3.9
️✔️botservice
️✔️latest
️✔️3.10
️✔️3.9
️✔️cdn
️✔️latest
️✔️3.10
️✔️3.9
️✔️cloud
️✔️latest
️✔️3.10
️✔️3.9
️✔️cognitiveservices
️✔️latest
️✔️3.10
️✔️3.9
️✔️config
️✔️latest
️✔️3.10
️✔️3.9
️✔️configure
️✔️latest
️✔️3.10
️✔️3.9
️✔️consumption
️✔️latest
️✔️3.10
️✔️3.9
️✔️container
️✔️latest
️✔️3.10
️✔️3.9
️✔️core
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️cosmosdb
️✔️latest
️✔️3.10
️✔️3.9
️✔️databoxedge
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️dla
️✔️latest
️✔️3.10
️✔️3.9
️✔️dls
️✔️latest
️✔️3.10
️✔️3.9
️✔️dms
️✔️latest
️✔️3.10
️✔️3.9
️✔️eventgrid
️✔️latest
️✔️3.10
️✔️3.9
️✔️eventhubs
️✔️latest
️✔️3.10
️✔️3.9
️✔️feedback
️✔️latest
️✔️3.10
️✔️3.9
️✔️find
️✔️latest
️✔️3.10
️✔️3.9
️✔️hdinsight
️✔️latest
️✔️3.10
️✔️3.9
️✔️identity
️✔️latest
️✔️3.10
️✔️3.9
️✔️iot
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️keyvault
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️kusto
️✔️latest
️✔️3.10
️✔️3.9
️✔️lab
️✔️latest
️✔️3.10
️✔️3.9
️✔️managedservices
️✔️latest
️✔️3.10
️✔️3.9
️✔️maps
️✔️latest
️✔️3.10
️✔️3.9
️✔️marketplaceordering
️✔️latest
️✔️3.10
️✔️3.9
️✔️monitor
️✔️latest
️✔️3.10
️✔️3.9
️✔️mysql
️✔️latest
️✔️3.10
️✔️3.9
️✔️netappfiles
️✔️latest
️✔️3.10
️✔️3.9
️✔️network
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️policyinsights
️✔️latest
️✔️3.10
️✔️3.9
️✔️privatedns
️✔️latest
️✔️3.10
️✔️3.9
️✔️profile
️✔️latest
️✔️3.10
️✔️3.9
️✔️rdbms
️✔️latest
️✔️3.10
️✔️3.9
️✔️redis
️✔️latest
️✔️3.10
️✔️3.9
️✔️relay
️✔️latest
️✔️3.10
️✔️3.9
️✔️resource
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️role
️✔️latest
️✔️3.10
️✔️3.9
️✔️search
️✔️latest
️✔️3.10
️✔️3.9
️✔️security
️✔️latest
️✔️3.10
️✔️3.9
️✔️servicebus
️✔️latest
️✔️3.10
️✔️3.9
️✔️serviceconnector
️✔️latest
️✔️3.10
️✔️3.9
️✔️servicefabric
️✔️latest
️✔️3.10
️✔️3.9
️✔️signalr
️✔️latest
️✔️3.10
️✔️3.9
️✔️sql
️✔️latest
️✔️3.10
️✔️3.9
️✔️sqlvm
️✔️latest
️✔️3.10
️✔️3.9
️✔️storage
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️synapse
️✔️latest
️✔️3.10
️✔️3.9
️✔️telemetry
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9
️✔️util
️✔️latest
️✔️3.10
️✔️3.9
️✔️vm
️✔️2018-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2019-03-01-hybrid
️✔️3.10
️✔️3.9
️✔️2020-09-01-hybrid
️✔️3.10
️✔️3.9
️✔️latest
️✔️3.10
️✔️3.9

@azure-client-tools-bot-prd
Copy link

Hi @wchigit,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@ghost ghost added the Auto-Assign Auto assign by bot label Jun 21, 2023
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jun 21, 2023

⚠️AzureCLI-BreakingChangeTest
⚠️serviceconnector
rule cmd_name rule_message suggest_message
⚠️ 1010 - ParaPropUpdate connection create cosmos-sql cmd connection create cosmos-sql update parameter client_type: updated property choices from ['dotnet', 'java', 'nodejs', 'none', 'python'] to ['dotnet', 'java', 'nodejs', 'none', 'python', 'springBoot']
⚠️ 1010 - ParaPropUpdate connection preview-configuration cosmos-sql cmd connection preview-configuration cosmos-sql update parameter client_type: updated property choices from ['dotnet', 'java', 'nodejs', 'none', 'python'] to ['dotnet', 'java', 'nodejs', 'none', 'python', 'springBoot']
⚠️ 1010 - ParaPropUpdate connection update cosmos-sql cmd connection update cosmos-sql update parameter client_type: updated property choices from ['dotnet', 'java', 'nodejs', 'none', 'python'] to ['dotnet', 'java', 'nodejs', 'none', 'python', 'springBoot']
⚠️ 1010 - ParaPropUpdate functionapp connection create cosmos-sql cmd functionapp connection create cosmos-sql update parameter client_type: updated property choices from ['dotnet', 'java', 'nodejs', 'none', 'python'] to ['dotnet', 'java', 'nodejs', 'none', 'python', 'springBoot']
⚠️ 1010 - ParaPropUpdate functionapp connection update cosmos-sql cmd functionapp connection update cosmos-sql update parameter client_type: updated property choices from ['dotnet', 'java', 'nodejs', 'none', 'python'] to ['dotnet', 'java', 'nodejs', 'none', 'python', 'springBoot']
⚠️ 1010 - ParaPropUpdate webapp connection create cosmos-sql cmd webapp connection create cosmos-sql update parameter client_type: updated property choices from ['dotnet', 'java', 'nodejs', 'none', 'python'] to ['dotnet', 'java', 'nodejs', 'none', 'python', 'springBoot']
⚠️ 1010 - ParaPropUpdate webapp connection update cosmos-sql cmd webapp connection update cosmos-sql update parameter client_type: updated property choices from ['dotnet', 'java', 'nodejs', 'none', 'python'] to ['dotnet', 'java', 'nodejs', 'none', 'python', 'springBoot']

@ghost ghost added the SQL az sql label Jun 21, 2023
@ghost ghost requested review from evelyn-ys and yonzhan June 21, 2023 05:43
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 21, 2023

Service Connector

@ghost ghost requested a review from calvinhzy June 21, 2023 05:44
@ghost ghost assigned evelyn-ys Jun 21, 2023
@yonzhan yonzhan removed the SQL az sql label Jun 21, 2023
@yonzhan yonzhan requested a review from jsntcy June 21, 2023 06:11
@wchigit wchigit changed the title [Service Connector]az spring connection: enable new auth types for Spring Boot and Cosmos SQL connection [Service Connector] az spring connection: Enable new auth types for Spring Boot and Cosmos SQL connection Jun 28, 2023
@wchigit wchigit marked this pull request as ready for review June 29, 2023 02:01
@kairu-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@kairu-ms kairu-ms merged commit 7d59f5e into Azure:dev Jul 17, 2023
avgale pushed a commit to avgale/azure-cli that referenced this pull request Aug 24, 2023
… Spring Boot and Cosmos SQL connection (Azure#26719)

* add Spring Cloud Azure migration warning

* update warning message

* delete whitespace

* delete redundant whitespaces

* fix typo

* fix line-too-long error

* improve warning messages

* add check and test results

* fix not-in-list ValueError

* fix CLI style

* add logs

* fix style
@wchigit wchigit deleted the enable-springboot-mi branch November 28, 2023 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants