az spring-cloud app binding cosmos

Commands to manage Azure Cosmos DB bindings.

Commands

az spring-cloud app binding cosmos add

Bind an Azure Cosmos DB with the app.

az spring-cloud app binding cosmos update

Update an Azure Cosmos DB service binding of the app.

az spring-cloud app binding cosmos add

Bind an Azure Cosmos DB with the app.

az spring-cloud app binding cosmos add --api-type {cassandra, gremlin, mongo, sql, table}
                                       --app
                                       --name
                                       --resource-group
                                       --resource-id
                                       --service
                                       [--collection-name]
                                       [--database-name]
                                       [--key-space]

Examples

Bind an Azure Cosmos DB.

az spring-cloud app binding cosmos add -n cosmosProduction --app MyApp --resource-id ${COSMOSDB_ID} --api-type mongo --database mymongo -g MyResourceGroup -s MyService

Required Parameters

--api-type

Type of API.

accepted values: cassandra, gremlin, mongo, sql, table
--app

Name of app.

--name -n

Name of service binding.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--resource-id

Azure resource ID of the service to bind with.

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

Optional Parameters

--collection-name

Name of collection. Required for gremlin.

--database-name

Name of database. Required for mongo, sql, gremlin.

--key-space

Cassandra key space. Required for cassandra.

az spring-cloud app binding cosmos update

Update an Azure Cosmos DB service binding of the app.

az spring-cloud app binding cosmos update --app
                                          --name
                                          --resource-group
                                          --service
                                          [--collection-name]
                                          [--database-name]
                                          [--key-space]

Required Parameters

--app

Name of app.

--name -n

Name of service binding.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--service -s

Name of Azure Spring Cloud, you can configure the default service using az configure --defaults spring-cloud=.

Optional Parameters

--collection-name

Name of collection. Required for gremlin.

--database-name

Name of database. Required for mongo, sql, gremlin.

--key-space

Cassandra key space. Required for cassandra.