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
More samples for the Azure Data Explorer output binding are available in the [GitHub repository](https://github.com/Azure/Webjobs.Extensions.Kusto/tree/main/samples/samples-csharp).
28
28
@@ -54,7 +54,7 @@ public class Product
54
54
55
55
<aid="http-trigger-write-one-record-c"></a>
56
56
57
-
### HTTP trigger, write one record
57
+
####HTTP trigger, write one record
58
58
59
59
The following example shows a [C# function](functions-dotnet-class-library.md) that adds a record to a database. The function uses data provided in an HTTP POST request as a JSON body.
The following example shows a [C# function](functions-dotnet-class-library.md) that adds records to a database in two different tables (`Products` and `ProductsChangeLog`). The function uses data provided in an HTTP POST request as a JSON body and multiple output bindings.
### HTTP trigger, write records using IAsyncCollector
166
+
####HTTP trigger, write records using IAsyncCollector
167
167
168
168
The following example shows a [C# function](functions-dotnet-class-library.md) that ingests a set of records to a table. The function uses data provided in an HTTP POST body JSON array.
More samples for the Azure Data Explorer output binding are available in the [GitHub repository](https://github.com/Azure/Webjobs.Extensions.Kusto/tree/main/samples/samples-outofproc).
210
210
@@ -235,7 +235,7 @@ public class Product
235
235
236
236
<aid="http-trigger-write-one-record-c-oop"></a>
237
237
238
-
### HTTP trigger, write one record
238
+
####HTTP trigger, write one record
239
239
240
240
The following example shows a [C# function](functions-dotnet-class-library.md) that adds a record to a database. The function uses data provided in an HTTP POST request as a JSON body.
The following example shows a [C# function](functions-dotnet-class-library.md) that adds a collection of records to a database. The function uses mapping that transforms a `Product` to `Item`.
Starting in version 3.3.0, it is possible to use Azure Active Directory when authenticating the output binding:
147
+
Starting in version 3.3.0, it's possible to use Azure Active Directory when authenticating the output binding:
148
148
149
149
```csharp
150
150
[FunctionName("EventGridAsyncOutput")]
@@ -161,19 +161,16 @@ public static async Task Run(
161
161
}
162
162
```
163
163
164
-
WhenusingtheConnectionproperty, the `topicEndpointUri` mustbespecifiedasachildoftheconnectionsetting, andthe `TopicEndpointUri` and `TopicKeySetting` propertiesshouldnotbeused. Forlocaldevelopment, usethelocal.settings.jsonfiletostoretheconnectioninformation:
164
+
Whenyouusethe `Connection` property, the `topicEndpointUri` mustbespecifiedasachildoftheconnectionsetting, andyoushouldn't use the `TopicEndpointUri` and `TopicKeySetting` properties. For local development, use the local.settings.json file to store the connection information:
Whendeployed, youmustaddthissameinformationtoapplicationsettingsforthefunctionapp. Formoreinformation, see [Identity-basedauthentication](#identity-based-authentication).
177
174
178
175
# [Isolated process](#tab/isolated-process)
179
176
@@ -296,7 +293,7 @@ To output multiple events, return an array instead of a single object. For examp
296
293
297
294
# [Model v3](#tab/nodejs-v3)
298
295
299
-
TypeScriptsamplesarenotdocumentedformodelv3.
296
+
TypeScriptsamplesaren't documented for model v3.
300
297
301
298
---
302
299
@@ -536,6 +533,7 @@ The following table explains the parameters for the `EventGridAttribute`.
|**Connection**<sup>*</sup>|ThevalueofthecommonprefixforthesettingthatcontainsthetopicendpointURI. Formoreinformationaboutthenamingformatofthisapplicationsetting, see [Identity-basedauthentication](#identity-based-authentication). |
539
537
540
538
# [Isolated process](#tab/isolated-process)
541
539
@@ -545,6 +543,7 @@ The following table explains the parameters for the `EventGridOutputAttribute`.
|**connection**<sup>*</sup>|ThevalueofthecommonprefixforthesettingthatcontainsthetopicendpointURI. Formoreinformationaboutthenamingformatofthisapplicationsetting, see [Identity-basedauthentication](#identity-based-authentication). |
548
547
549
548
---
550
549
@@ -589,6 +588,7 @@ The following table explains the binding configuration properties that you set i
|**connection**<sup>*</sup>|ThevalueofthecommonprefixforthesettingthatcontainsthetopicendpointURI. Formoreinformationaboutthenamingformatofthisapplicationsetting, see [Identity-basedauthentication](#identity-based-authentication). |
592
592
593
593
---
594
594
@@ -605,13 +605,16 @@ The following table explains the binding configuration properties that you set i
|**connection**<sup>*</sup>|ThevalueofthecommonprefixforthesettingthatcontainsthetopicendpointURI. Formoreinformationaboutthenamingformatofthisapplicationsetting, see [Identity-basedauthentication](#identity-based-authentication). |
>Makesurethatyousetthevalueofthe`TopicEndpointUri` configurationpropertytothenameofanappsettingthatcontainstheURIofthecustomtopic. Don't specify the URI of the custom topic directly in this property.
617
+
>Makesurethatyousetthevalueof `TopicEndpointUri` tothenameofanappsettingthatcontainstheURIofthecustomtopic. Don't specify the URI of the custom topic directly in this property. The same applies when using `Connection`.
|Usingatopickey|Setthe `TopicEndpointUri` and `TopicKeySetting` properties, asdescribedin [Useatopickey](#use-a-topic-key). |
709
+
|Usinganidentity|Setthe `Connection` propertytothenameofasharedprefixformultipleapplicationsettings, togetherdefining [identity-basedauthentication](#identity-based-authentication). Thismethodissupported when using version 3.3.x or higher of the extension. |
Morepropertiesmaybesettocustomizetheconnection. See [Commonpropertiesforidentity-basedconnections](functions-reference.md#common-properties-for-identity-based-connections).
734
+
735
+
> [!NOTE]
736
+
>Whenusing [AzureAppConfiguration](../azure-app-configuration/quickstart-azure-functions-csharp.md) or [KeyVault](../key-vault/general/overview.md) toprovidesettingsformanagedidentity-basedconnections, settingnamesshoulduseavalidkeyseparatorsuchas `:` or `/` inplaceofthe `__` toensurenamesareresolvedcorrectly.
Copy file name to clipboardExpand all lines: articles/azure-functions/migrate-cosmos-db-version-3-version-4.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ This article walks you through the process of migrating your function app to run
30
30
31
31
Update your `.csproj` project file to use the latest extension version for your process model. The following `.csproj` file uses version 4 of the Azure Cosmos DB extension.
32
32
33
-
### [In-process model](#tab/in-process)
33
+
### [In-process](#tab/in-process)
34
34
35
35
```xml
36
36
<ProjectSdk="Microsoft.NET.Sdk">
@@ -54,7 +54,7 @@ Update your `.csproj` project file to use the latest extension version for your
You must create a role assignment that provides access to your Event Grid topic at runtime. Management roles like [Owner](../articles/role-based-access-control/built-in-roles.md#owner) are not sufficient. The following table shows built-in roles that are recommended when using the Event Hubs extension in normal operation. Your application may require additional permissions based on the code you write.
Additional properties may be set to customize the connection. See [Common properties for identity-based connections](../articles/azure-functions/functions-reference.md#common-properties-for-identity-based-connections).
0 commit comments