Skip to content

Commit b254312

Browse files
authored
Merge pull request #127754 from jjh12342/cosmosdb-connection-string
Correct Cosmos DB connection parameter in Python example
2 parents 9b9fb7f + 6a9c3a5 commit b254312

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ app = func.FunctionApp()
199199
@app.function_name(name="HttpTrigger1")
200200
@app.route(route="hello", auth_level=func.AuthLevel.ANONYMOUS)
201201
@app.queue_output(arg_name="msg", queue_name="outqueue", connection="AzureWebJobsStorage")
202-
@app.cosmos_db_output(arg_name="outputDocument", database_name="my-database", container_name="my-container", connection="CosmosDbConnectionSetting")
202+
@app.cosmos_db_output(arg_name="outputDocument", database_name="my-database", container_name="my-container", connection="CosmosDbConnectionString")
203203
def test_function(req: func.HttpRequest, msg: func.Out[func.QueueMessage],
204204
outputDocument: func.Out[func.Document]) -> func.HttpResponse:
205205
logging.info('Python HTTP trigger function processed a request.')

0 commit comments

Comments
 (0)