@@ -120,7 +120,8 @@ az eventhubs eventhub create \
120
120
--resource-group $RESOURCE_GROUP \
121
121
--name $EVENT_HUB_NAME \
122
122
--namespace-name $EVENT_HUB_NAMESPACE \
123
- --message-retention 1
123
+ --retention-time 1 \
124
+ --cleanup-policy Delete
124
125
az eventhubs eventhub authorization-rule create \
125
126
--resource-group $RESOURCE_GROUP \
126
127
--name $EVENT_HUB_AUTHORIZATION_RULE \
@@ -139,7 +140,8 @@ az eventhubs eventhub create ^
139
140
--resource-group %RESOURCE_GROUP% ^
140
141
--name %EVENT_HUB_NAME% ^
141
142
--namespace-name %EVENT_HUB_NAMESPACE% ^
142
- --message-retention 1
143
+ --retention-time 1 ^
144
+ --cleanup-policy Delete
143
145
az eventhubs eventhub authorization-rule create ^
144
146
--resource-group %RESOURCE_GROUP% ^
145
147
--name %EVENT_HUB_AUTHORIZATION_RULE% ^
@@ -213,7 +215,7 @@ az functionapp create \
213
215
--storage-account $STORAGE_ACCOUNT \
214
216
--consumption-plan-location $LOCATION \
215
217
--runtime java \
216
- --functions-version 3
218
+ --functions-version 4
217
219
```
218
220
219
221
# [ Cmd] ( #tab/cmd )
@@ -229,7 +231,7 @@ az functionapp create ^
229
231
--storage-account %STORAGE_ACCOUNT% ^
230
232
--consumption-plan-location %LOCATION% ^
231
233
--runtime java ^
232
- --functions-version 3
234
+ --functions-version 4
233
235
```
234
236
235
237
---
@@ -486,8 +488,8 @@ public class Function {
486
488
@CosmosDBOutput (
487
489
name = " databaseOutput" ,
488
490
databaseName = " TelemetryDb" ,
489
- containerName = " TelemetryInfo" ,
490
- connection = " CosmosDBConnectionSetting" )
491
+ collectionName = " TelemetryInfo" ,
492
+ connectionStringSetting = " CosmosDBConnectionSetting" )
491
493
OutputBinding<TelemetryItem > document ,
492
494
final ExecutionContext context ) {
493
495
0 commit comments