CmdID

CmdID / az / az spring / az spring app / az spring app binding / az spring app binding cosmos

az spring app binding cosmos add

Bind an Azure Cosmos DB with the app. Azure CLI extensions reference

1 example 5 options Its page in the Azure CLI extensions reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Bind an Azure Cosmos DB.

az spring app binding cosmos add -n cosmosProduction --app MyApp --resource-id ${COSMOSDB_ID} --api-type mongo --database mymongo -g MyResourceGroup -s MyServiceIdentify
-nName of service binding.
--appName of app.
--resource-idAzure resource ID of the service to bind with.
--api-typeType of API.
-gName of resource group.
-sThe name of Azure Spring Apps instance, you can configure the default service using az configure --defaults spring=<name>.

Options

5 in the Azure CLI extensions reference
--api-typeType of API.
--collection-nameName of collection.
--database-nameName of database.
--key-spaceCassandra key space.
--resource-idAzure resource ID of the service to bind with.