Skip to content

Commit 1be5334

Browse files
committed
update Developer Reference, update table output
1 parent 831b588 commit 1be5334

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

articles/azure-functions/functions-bindings-storage-table-output.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,19 +301,20 @@ import azure.functions as func
301301

302302
app = func.FunctionApp()
303303

304-
@app.route(route="table_out_binding", binding_arg_name="message")
305-
@app.table_output(arg_name="$return",
304+
@app.route(route="table_out_binding")
305+
@app.table_output(arg_name="message",
306306
connection="AzureWebJobsStorage",
307307
table_name="messages")
308-
def table_out_binding(req: func.HttpRequest, message: func.Out[func.HttpResponse]):
309-
rowKey = str(uuid.uuid4())
308+
def table_out_binding(req: func.HttpRequest, message: func.Out[str]):
309+
row_key = str(uuid.uuid4())
310310
data = {
311311
"Name": "Output binding message",
312312
"PartitionKey": "message",
313-
"RowKey": rowKey
313+
"RowKey": row_key
314314
}
315-
message.set(json.dumps(data))
316-
return func.HttpResponse(f"Message created with the rowKey: {rowKey}")
315+
table_json = json.dumps(data)
316+
message.set(table_json)
317+
return table_json
317318
```
318319

319320
# [v1](#tab/python-v1)

articles/azure-functions/functions-reference-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ import logging
483483
app = func.FunctionApp()
484484

485485
@app.route(route="req")
486-
@app.read_blob(arg_name="obj", path="samples/{id}",
486+
@app.blob_input(arg_name="obj", path="samples/{id}",
487487
connection="STORAGE_CONNECTION_STRING")
488488
def main(req: func.HttpRequest, obj: func.InputStream):
489489
logging.info(f'Python HTTP-triggered function processed: {obj.read()}')
@@ -1397,10 +1397,10 @@ The Python standard library contains a list of built-in Python modules that are
13971397
To view the library for your Python version, go to:
13981398

13991399

1400-
* [Python 3.8 standard library](https://docs.python.org/3.8/library/)
14011400
* [Python 3.9 standard library](https://docs.python.org/3.9/library/)
14021401
* [Python 3.10 standard library](https://docs.python.org/3.10/library/)
14031402
* [Python 3.11 standard library](https://docs.python.org/3.11/library/)
1403+
* [Python 3.12 standard library](https://docs.python.org/3.12/library/)
14041404

14051405
### Azure Functions Python worker dependencies
14061406

0 commit comments

Comments
 (0)