Skip to content

Commit 3e71c86

Browse files
authored
(AzureCXP) fixes MicrosoftDocs/azure-docs#405180
Updated line numbers: 81,82,84,139,158,161 from "CosmosDbconnectionSetting" to "CosmosDbconnectionString"
1 parent 4221653 commit 3e71c86

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/azure-functions/functions-add-output-binding-cosmos-db-vs-code.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ In the [previous quickstart article](./create-first-function-vs-code-csharp.md),
7878

7979
|Prompt| Selection|
8080
|--|--|
81-
|**Enter new app setting name**| Type `CosmosDbConnectionSetting`.|
82-
|**Enter value for "CosmosDbConnectionSetting"**| Paste the connection string of your Azure Cosmos DB account you copied. You can also configure [Microsoft Entra identity](./functions-bindings-cosmosdb-v2-trigger.md#connections) as an alternative.|
81+
|**Enter new app setting name**| Type `CosmosDbConnectionString`.|
82+
|**Enter value for "CosmosDbConnectionString"**| Paste the connection string of your Azure Cosmos DB account you copied. You can also configure [Microsoft Entra identity](./functions-bindings-cosmosdb-v2-trigger.md#connections) as an alternative.|
8383

84-
This creates an application setting named connection `CosmosDbConnectionSetting` in your function app in Azure. Now, you can download this setting to your local.settings.json file.
84+
This creates an application setting named connection `CosmosDbConnectionString` in your function app in Azure. Now, you can download this setting to your local.settings.json file.
8585

8686
1. Press <kbd>F1</kbd> again to open the command palette, then search for and run the command `Azure Functions: Download Remote Settings...`.
8787

@@ -136,7 +136,7 @@ The `MyDocument` class defines an object that gets written to the database. The
136136

137137
The `MultiResponse` class allows you to both write to the specified collection in the Azure Cosmos DB and return an HTTP success message. Because you need to return a `MultiResponse` object, you need to also update the method signature.
138138

139-
Specific attributes specify the name of the container and the name of its parent database. The connection string for your Azure Cosmos DB account is set by the `CosmosDbConnectionSetting`.
139+
Specific attributes specify the name of the container and the name of its parent database. The connection string for your Azure Cosmos DB account is set by the `CosmosDbConnectionString`.
140140
::: zone-end
141141
::: zone pivot="programming-language-javascript"
142142
Binding attributes are defined directly in your function code. The [Azure Cosmos DB output configuration](./functions-bindings-cosmosdb-v2-output.md#configuration) describes the fields required for an Azure Cosmos DB output binding.
@@ -155,10 +155,10 @@ Binding attributes are defined directly in the *function_app.py* file. You use t
155155

156156
```python
157157
@app.cosmos_db_output(arg_name="outputDocument", database_name="my-database",
158-
container_name="my-container", connection="CosmosDbConnectionSetting")
158+
container_name="my-container", connection="CosmosDbConnectionString")
159159
```
160160

161-
In this code, `arg_name` identifies the binding parameter referenced in your code, `database_name` and `container_name` are the database and collection names that the binding writes to, and `connection` is the name of an application setting that contains the connection string for the Azure Cosmos DB account, which is in the `CosmosDbConnectionSetting` setting in the *local.settings.json* file.
161+
In this code, `arg_name` identifies the binding parameter referenced in your code, `database_name` and `container_name` are the database and collection names that the binding writes to, and `connection` is the name of an application setting that contains the connection string for the Azure Cosmos DB account, which is in the `CosmosDbConnectionString` setting in the *local.settings.json* file.
162162
::: zone-end
163163

164164
## Add code that uses the output binding

0 commit comments

Comments
 (0)