Skip to content

[Service Connector] az webapp/containerapp/spring connection create/update cosmos-postgresql: Support Azure Cosmos DB for PostgreSQL Cluster as target service#27987

Draft
wchigit wants to merge 5 commits intoAzure:devfrom
wchigit:cosmospostgresql
Draft

Conversation

@wchigit
Copy link
Copy Markdown
Contributor

@wchigit wchigit commented Dec 8, 2023

Related command
az webapp/containerapp/spring connection create cosmos-postgresql --source-id --target-id --secret name= secret= --client-type dotnet
az webapp/containerapp/spring connection update cosmos-postgresql --id --client-type --secret name= secret=

Description
This PR aims to support Azure Cosmos DB for PostgreSQL as target service for Service Connector. Users can leverage this to connect their compute services to Cosmos DB for PostgreSQL database.

Testing Guide
Create connection:
az webapp connection create cosmos-postgresql --source-id --target-id --secret name= secret= --client-type
or
az webapp connection create cosmos-postgresql --connection --resource-group --name --target-resource-group --cluster --database --secret name= secret= --client-type

List configuration:
az webapp connection list-configuration --id
AZURE_COSMOSPOSTGRESQL_CONNECTIONSTRING is set to app settings.

Update connection:
az webapp connection update cosmos-postgresql --id --client-type --secret name= secret=

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
Copy Markdown

azure-client-tools-bot-prd bot commented Dec 8, 2023

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

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

azure-client-tools-bot-prd bot commented Dec 8, 2023

❌AzureCLI-BreakingChangeTest
❌serviceconnector
rule cmd_name rule_message suggest_message
1010 - ParaPropUpdate connection create storage-blob cmd connection create storage-blob update parameter client_type: updated property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] please change property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] for parameter client_type of cmd connection create storage-blob
1010 - ParaPropUpdate connection preview-configuration storage-blob cmd connection preview-configuration storage-blob update parameter client_type: updated property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] please change property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] for parameter client_type of cmd connection preview-configuration storage-blob
1010 - ParaPropUpdate connection update storage-blob cmd connection update storage-blob update parameter client_type: updated property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] please change property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] for parameter client_type of cmd connection update storage-blob
1010 - ParaPropUpdate containerapp connection create storage-blob cmd containerapp connection create storage-blob update parameter client_type: updated property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] please change property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] for parameter client_type of cmd containerapp connection create storage-blob
1010 - ParaPropUpdate containerapp connection update storage-blob cmd containerapp connection update storage-blob update parameter client_type: updated property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] please change property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] for parameter client_type of cmd containerapp connection update storage-blob
1010 - ParaPropUpdate functionapp connection create storage-blob cmd functionapp connection create storage-blob update parameter client_type: updated property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] please change property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] for parameter client_type of cmd functionapp connection create storage-blob
1010 - ParaPropUpdate functionapp connection update storage-blob cmd functionapp connection update storage-blob update parameter client_type: updated property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] please change property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] for parameter client_type of cmd functionapp connection update storage-blob
1010 - ParaPropUpdate webapp connection create storage-blob cmd webapp connection create storage-blob update parameter client_type: updated property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] please change property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] for parameter client_type of cmd webapp connection create storage-blob
1010 - ParaPropUpdate webapp connection update storage-blob cmd webapp connection update storage-blob update parameter client_type: updated property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] please change property choices from ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'php', 'python', 'ruby'] to ['dotnet', 'dotnet-internal', 'java', 'nodejs', 'none', 'python', 'springBoot'] for parameter client_type of cmd webapp connection update storage-blob
⚠️ 1001 - CmdAdd connection create cosmos-postgresql cmd connection create cosmos-postgresql added
⚠️ 1010 - ParaPropUpdate connection list-support-types cmd connection list-support-types update parameter target_resource_type: updated property choices from ['appconfig', 'confluent-cloud', 'cosmos-cassandra', 'cosmos-gremlin', 'cosmos-mongo', 'cosmos-sql', 'cosmos-table', 'eventhub', 'keyvault', 'mysql', 'mysql-flexible', 'postgres', 'postgres-flexible', 'redis', 'redis-enterprise', 'servicebus', 'signalr', 'sql', 'storage-blob', 'storage-file', 'storage-queue', 'storage-table', 'webpubsub'] to ['appconfig', 'confluent-cloud', 'cosmos-cassandra', 'cosmos-gremlin', 'cosmos-mongo', 'cosmos-postgresql', 'cosmos-sql', 'cosmos-table', 'eventhub', 'keyvault', 'mysql', 'mysql-flexible', 'postgres', 'postgres-flexible', 'redis', 'redis-enterprise', 'servicebus', 'signalr', 'sql', 'storage-blob', 'storage-file', 'storage-queue', 'storage-table', 'webpubsub']
⚠️ 1001 - CmdAdd connection preview-configuration cosmos-postgresql cmd connection preview-configuration cosmos-postgresql added
⚠️ 1001 - CmdAdd connection update cosmos-postgresql cmd connection update cosmos-postgresql added
⚠️ 1001 - CmdAdd containerapp connection create cosmos-postgresql cmd containerapp connection create cosmos-postgresql added
⚠️ 1010 - ParaPropUpdate containerapp connection list-support-types cmd containerapp connection list-support-types update parameter target_resource_type: updated property choices from ['appconfig', 'confluent-cloud', 'cosmos-cassandra', 'cosmos-gremlin', 'cosmos-mongo', 'cosmos-sql', 'cosmos-table', 'eventhub', 'keyvault', 'mysql', 'mysql-flexible', 'postgres', 'postgres-flexible', 'redis', 'redis-enterprise', 'servicebus', 'signalr', 'sql', 'storage-blob', 'storage-file', 'storage-queue', 'storage-table', 'webpubsub'] to ['appconfig', 'confluent-cloud', 'cosmos-cassandra', 'cosmos-gremlin', 'cosmos-mongo', 'cosmos-postgresql', 'cosmos-sql', 'cosmos-table', 'eventhub', 'keyvault', 'mysql', 'mysql-flexible', 'postgres', 'postgres-flexible', 'redis', 'redis-enterprise', 'servicebus', 'signalr', 'sql', 'storage-blob', 'storage-file', 'storage-queue', 'storage-table', 'webpubsub']
⚠️ 1001 - CmdAdd containerapp connection update cosmos-postgresql cmd containerapp connection update cosmos-postgresql added
⚠️ 1001 - CmdAdd functionapp connection create cosmos-postgresql cmd functionapp connection create cosmos-postgresql added
⚠️ 1010 - ParaPropUpdate functionapp connection list-support-types cmd functionapp connection list-support-types update parameter target_resource_type: updated property choices from ['appconfig', 'confluent-cloud', 'cosmos-cassandra', 'cosmos-gremlin', 'cosmos-mongo', 'cosmos-sql', 'cosmos-table', 'eventhub', 'keyvault', 'mysql', 'mysql-flexible', 'postgres', 'postgres-flexible', 'redis', 'redis-enterprise', 'servicebus', 'signalr', 'sql', 'storage-blob', 'storage-file', 'storage-queue', 'storage-table', 'webpubsub'] to ['appconfig', 'confluent-cloud', 'cosmos-cassandra', 'cosmos-gremlin', 'cosmos-mongo', 'cosmos-postgresql', 'cosmos-sql', 'cosmos-table', 'eventhub', 'keyvault', 'mysql', 'mysql-flexible', 'postgres', 'postgres-flexible', 'redis', 'redis-enterprise', 'servicebus', 'signalr', 'sql', 'storage-blob', 'storage-file', 'storage-queue', 'storage-table', 'webpubsub']
⚠️ 1001 - CmdAdd functionapp connection update cosmos-postgresql cmd functionapp connection update cosmos-postgresql added
⚠️ 1001 - CmdAdd webapp connection create cosmos-postgresql cmd webapp connection create cosmos-postgresql added
⚠️ 1010 - ParaPropUpdate webapp connection list-support-types cmd webapp connection list-support-types update parameter target_resource_type: updated property choices from ['appconfig', 'confluent-cloud', 'cosmos-cassandra', 'cosmos-gremlin', 'cosmos-mongo', 'cosmos-sql', 'cosmos-table', 'eventhub', 'keyvault', 'mysql', 'mysql-flexible', 'postgres', 'postgres-flexible', 'redis', 'redis-enterprise', 'servicebus', 'signalr', 'sql', 'storage-blob', 'storage-file', 'storage-queue', 'storage-table', 'webpubsub'] to ['appconfig', 'confluent-cloud', 'cosmos-cassandra', 'cosmos-gremlin', 'cosmos-mongo', 'cosmos-postgresql', 'cosmos-sql', 'cosmos-table', 'eventhub', 'keyvault', 'mysql', 'mysql-flexible', 'postgres', 'postgres-flexible', 'redis', 'redis-enterprise', 'servicebus', 'signalr', 'sql', 'storage-blob', 'storage-file', 'storage-queue', 'storage-table', 'webpubsub']
⚠️ 1001 - CmdAdd webapp connection update cosmos-postgresql cmd webapp connection update cosmos-postgresql added

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Dec 8, 2023

Service Connector

@microsoft-github-policy-service microsoft-github-policy-service bot added the Auto-Assign Auto assign by bot label Dec 8, 2023
@wchigit wchigit changed the title [Service Connector]az webapp/containerapp/spring connection create/update cosmos-postgresql: Support Cosmos DB for PostgreSQL as target service [Service Connector] az webapp/containerapp/spring connection create/update cosmos-postgresql: Support Azure Cosmos DB for PostgreSQL Cluster as target service Dec 8, 2023
@wchigit wchigit marked this pull request as ready for review December 14, 2023 01:49
@wchigit wchigit requested a review from kairu-ms as a code owner December 14, 2023 01:49
@wchigit wchigit marked this pull request as draft December 14, 2023 02:19
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.

5 participants