You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -76,10 +76,10 @@ In the [previous quickstart article](./create-first-function-vs-code-csharp.md),
76
76
77
77
|Prompt| Selection|
78
78
|--|--|
79
-
|**Enter new app setting name**| Type `CosmosDbConnectionString`.|
80
-
|**Enter value for "CosmosDbConnectionString"**| Paste the connection string of your Azure Cosmos DB account you copied.|
79
+
|**Enter new app setting name**| Type `CosmosDbConnectionSetting`.|
80
+
|**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
81
82
-
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.
82
+
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.
83
83
84
84
1. Press <kbd>F1</kbd> again to open the command palette, then search for and run the command `Azure Functions: Download Remote Settings...`.
85
85
@@ -97,11 +97,11 @@ Except for HTTP and timer triggers, bindings are implemented as extension packag
@@ -141,7 +141,7 @@ The `documentsOut` parameter is an `IAsyncCollector<T>` type, which represents a
141
141
142
142
---
143
143
144
-
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`.
144
+
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`.
145
145
146
146
::: zone-end
147
147
@@ -159,7 +159,7 @@ To create a binding, right-click (Ctrl+select on macOS) the *function.json* file
159
159
|**The Azure Cosmos DB database where data will be written**|`my-database`| The name of the Azure Cosmos DB database containing the target container. |
160
160
|**Database collection where data will be written**|`my-container`| The name of the Azure Cosmos DB container where the JSON documents will be written. |
161
161
|**If true, creates the Azure Cosmos DB database and collection**|`false`| The target database and container already exist. |
162
-
|**Select setting from "local.setting.json"**|`CosmosDbConnectionString`| The name of an application setting that contains the connection string for the Azure Cosmos DB account. |
162
+
|**Select setting from "local.setting.json"**|`CosmosDbConnectionSetting`| The name of an application setting that contains the connection string for the Azure Cosmos DB account. |
163
163
|**Partition key (optional)**|*leave blank*| Only required when the output binding creates the container. |
164
164
|**Collection throughput (optional)**|*leave blank*| Only required when the output binding creates the container. |
165
165
@@ -171,9 +171,9 @@ A binding is added to the `bindings` array in your *function.json*, which should
@@ -197,7 +197,7 @@ To create a binding, right-select (Ctrl+select on macOS) the *function.json* fil
197
197
|**The Azure Cosmos DB database where data will be written**|`my-database`| The name of the Azure Cosmos DB database containing the target container. |
198
198
|**Database collection where data will be written**|`my-container`| The name of the Azure Cosmos DB container where the JSON documents will be written. |
199
199
|**If true, creates the Azure Cosmos DB database and collection**|`false`| The target database and container already exist. |
200
-
|**Select setting from "local.setting.json"**|`CosmosDbConnectionString`| The name of an application setting that contains the connection string for the Azure Cosmos DB account. |
200
+
|**Select setting from "local.setting.json"**|`CosmosDbConnectionSetting`| The name of an application setting that contains the connection string for the Azure Cosmos DB account. |
201
201
|**Partition key (optional)**|*leave blank*| Only required when the output binding creates the container. |
202
202
|**Collection throughput (optional)**|*leave blank*| Only required when the output binding creates the container. |
203
203
@@ -209,9 +209,9 @@ A binding is added to the `bindings` array in your *function.json*, which should
In this code, `arg_name` identifies the binding parameter referenced in your code, `database_name` and `collection_name` are the database and collection names that the binding writes to, and `connection_string_setting` is the name of an application setting that contains the connection string for the Storage account, which is in the CosmosDbConnectionString setting in the *local.settings.json* file.
227
+
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.
228
228
229
229
---
230
230
@@ -265,8 +265,8 @@ public static async Task<IActionResult> Run(
0 commit comments