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
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-add-output-binding-storage-queue-python.md
+4-71Lines changed: 4 additions & 71 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,80 +48,13 @@ You can now add the Storage output binding to your project.
48
48
49
49
## Add an output binding
50
50
51
-
In Functions, each type of binding requires that a `direction`, a `type`, and a unique `name` be defined in the function.json file. Depending on the binding type, additional properties might be required. The [queue output configuration](functions-bindings-storage-queue.md#output---configuration) describes the fields required for an Azure Storage queue binding.
52
-
53
-
To create a binding, you add a binding configuration object to the function.json file. Edit the function.json file in your HttpTrigger folder to add an object to the `bindings` array that has these properties:
54
-
55
-
| Property | Value | Description |
56
-
| -------- | ----- | ----------- |
57
-
|**`name`**|`msg`| The name that identifies the binding parameter referenced in your code. |
58
-
|**`type`**|`queue`| The binding is an Azure Storage queue binding. |
59
-
|**`direction`**|`out`| The binding is an output binding. |
60
-
|**`queueName`**|`outqueue`| The name of the queue that the binding writes to. When the `queueName` doesn't exist, the binding creates it on first use. |
61
-
|**`connection`**|`AzureWebJobsStorage`| The name of an app setting that contains the connection string for the Storage account. The `AzureWebJobsStorage` setting contains the connection string for the Storage account you created with the function app. |
62
-
63
-
Your function.json file should now look like this example:
64
-
65
-
```json
66
-
{
67
-
"scriptFile": "__init__.py",
68
-
"bindings": [
69
-
{
70
-
"authLevel": "function",
71
-
"type": "httpTrigger",
72
-
"direction": "in",
73
-
"name": "req",
74
-
"methods": [
75
-
"get",
76
-
"post"
77
-
]
78
-
},
79
-
{
80
-
"type": "http",
81
-
"direction": "out",
82
-
"name": "$return"
83
-
},
84
-
{
85
-
"type": "queue",
86
-
"direction": "out",
87
-
"name": "msg",
88
-
"queueName": "outqueue",
89
-
"connection": "AzureWebJobsStorage"
90
-
}
91
-
]
92
-
}
93
-
```
94
-
95
-
## Add code that uses the output binding
96
-
97
-
After the `name` is configured, you can start using it to access the binding as a method attribute in the function signature. In the following example, `msg` is an instance of the [`azure.functions.InputStream class`](/python/api/azure-functions/azure.functions.httprequest).
98
-
99
-
```python
100
-
import logging
51
+
In Functions, each type of binding requires a `direction`, `type`, and a unique `name` to be defined in the function.json file. The way you define these attributes depends on the language of your function app.
When you use an output binding, you don't have to use the Azure Storage SDK code for authentication, getting a queue reference, or writing data. The Functions runtime and queue output binding do those tasks for you.
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-add-output-binding-storage-queue-vs-code.md
+2-75Lines changed: 2 additions & 75 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,50 +67,7 @@ In Functions, each type of binding requires a `direction`, `type`, and a unique
67
67
68
68
### JavaScript
69
69
70
-
Binding attributes are defined directly in the function.json file. Depending on the binding type, additional properties may be required. The [queue output configuration](functions-bindings-storage-queue.md#output---configuration) describes the fields required for an Azure Storage queue binding. The extension makes it easy to add bindings to the function.json file.
71
-
72
-
To create a binding, right-click (Ctrl+click on macOS) the `function.json` file in your HttpTrigger folder and choose **Add binding...**. Follow the prompts to define the following binding properties for the new binding:
73
-
74
-
| Prompt | Value | Description |
75
-
| -------- | ----- | ----------- |
76
-
|**Select binding direction**|`out`| The binding is an output binding. |
77
-
|**Select binding with direction...**|`Azure Queue Storage`| The binding is an Azure Storage queue binding. |
78
-
|**The name used to identify this binding in your code**|`msg`| Name that identifies the binding parameter referenced in your code. |
79
-
|**The queue to which the message will be sent**|`outqueue`| The name of the queue that the binding writes to. When the *queueName* doesn't exist, the binding creates it on first use. |
80
-
|**Select setting from "local.setting.json"**|`AzureWebJobsStorage`| The name of an application setting that contains the connection string for the Storage account. The `AzureWebJobsStorage` setting contains the connection string for the Storage account you created with the function app. |
81
-
82
-
A binding is added to the `bindings` array in your function.json file, which should now look like the following example:
Copy file name to clipboardExpand all lines: articles/azure-functions/functions-bindings-http-webhook.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -723,7 +723,7 @@ Keys are stored as part of your function app in Azure and are encrypted at rest.
723
723
724
724

725
725
726
-
You may obtain function keys programmatically by using [Key management API](https://github.com/Azure/azure-functions-host/wiki/Key-management-API).
726
+
You may obtain function keys programmatically by using [Key management APIs](https://github.com/Azure/azure-functions-host/wiki/Key-management-API).
727
727
728
728
### API key authorization
729
729
@@ -736,8 +736,7 @@ The key can be included in a query string variable named `code`, as above. It ca
736
736
You can allow anonymous requests, which do not require keys. You can also require that the master key be used. You change the default authorization level by using the `authLevel` property in the binding JSON. For more information, see [Trigger - configuration](#trigger---configuration).
737
737
738
738
> [!NOTE]
739
-
> When running functions locally, authorization is disabled regardless of the specified authentication level setting. After publishing to Azure, the `authLevel` setting in your trigger is enforced.
740
-
739
+
> When running functions locally, authorization is disabled regardless of the specified authentication level setting. After publishing to Azure, the `authLevel` setting in your trigger is enforced. Keys are still required when running [locally in a container](functions-create-function-linux-custom-image.md#run-the-image-locally).
0 commit comments