Skip to content

Commit

Permalink
Pull in Sreedhar's changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jsquire authored Nov 20, 2024
1 parent e475a4e commit 24ace7b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions articles/azure-functions/functions-bindings-service-bus-output.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public String pushToQueue(
}
```

In the [Java functions runtime library](/java/api/overview/azure/functions/runtime), use the `@QueueOutput` annotation on function parameters whose value would be written to a Service Bus queue. The parameter type should be `OutputBinding<T>`, where `T` is any native Java type of a POJO.
In the [Java functions runtime library](/java/api/overview/azure/functions/runtime), use the `@QueueOutput` annotation on function parameters whose value would be written to a Service Bus queue. The parameter type should be `OutputBinding<T>`, where `T` is any native Java type of a plan old Java object (POJO).

Java functions can also write to a Service Bus topic. The following example uses the `@ServiceBusTopicOutput` annotation to describe the configuration for the output binding.

Expand Down Expand Up @@ -163,7 +163,7 @@ To output multiple messages, return an array instead of a single object. For exa

# [Model v3](#tab/nodejs-v3)

TypeScript samples are not documented for model v3.
TypeScript samples aren't documented for model v3.

---

Expand Down Expand Up @@ -365,10 +365,10 @@ The following table explains the properties you can set using the attribute:

| Property |Description|
| --- | --- |
|**QueueName**|Name of the queue. Set only if sending queue messages, not for a topic. |
|**QueueName**|Name of the queue. Set only if sending queue messages, not for a topic. |
|**TopicName**|Name of the topic. Set only if sending topic messages, not for a queue.|
|**Connection**|The name of an app setting or setting collection that specifies how to connect to Service Bus. See [Connections](#connections).|
|**Access**|Access rights for the connection string. Available values are `manage` and `listen`. The default is `manage`, which indicates that the `connection` has the **Manage** permission. If you use a connection string that does not have the **Manage** permission, set `accessRights` to "listen". Otherwise, the Functions runtime might fail trying to do operations that require manage rights. In Azure Functions version 2.x and higher, this property is not available because the latest version of the Service Bus SDK doesn't support manage operations.|
|**Access**|Access rights for the connection string. Available values are `manage` and `listen`. The default is `manage`, which indicates that the `connection` has the **Manage** permission. If you use a connection string that doesn't have the **Manage** permission, set `accessRights` to "listen". Otherwise, the Functions runtime might fail trying to do operations that require manage rights. In Azure Functions version 2.x and higher, this property isn't available because the latest version of the Service Bus SDK doesn't support manage operations.|

Here's an example that shows the attribute applied to the return value of the function:

Expand All @@ -394,7 +394,7 @@ public static string Run([HttpTrigger] dynamic input, ILogger log)

For a complete example, see [Example](#example).

You can use the `ServiceBusAccount` attribute to specify the Service Bus account to use at class, method, or parameter level. For more information, see [Attributes](functions-bindings-service-bus-trigger.md#attributes) in the trigger reference.
You can use the `ServiceBusAccount` attribute to specify the Service Bus account to use at class, method, or parameter level. For more information, see [Attributes](functions-bindings-service-bus-trigger.md#attributes) in the trigger reference.

---

Expand All @@ -410,7 +410,7 @@ For Python v2 functions defined using a decorator, the following properties on t
| Property | Description |
|-------------|-----------------------------|
| `arg_name` | The name of the variable that represents the queue or topic message in function code. |
| `queue_name` | Name of the queue. Set only if sending queue messages, not for a topic. |
| `queue_name` | Name of the queue. Set only if sending queue messages, not for a topic. |
| `topic_name` | Name of the topic. Set only if sending topic messages, not for a queue. |
| `connection` | The name of an app setting or setting collection that specifies how to connect to Service Bus. See [Connections](#connections). |

Expand Down Expand Up @@ -457,10 +457,10 @@ The following table explains the binding configuration properties that you set i

| Property | Description |
|---------|------------------------|
|**type** |Must be set to "serviceBus". This property is set automatically when you create the trigger in the Azure portal.|
|**direction** | Must be set to "out". This property is set automatically when you create the trigger in the Azure portal. |
|**type** |Must be set to `serviceBus`. This property is set automatically when you create the trigger in the Azure portal.|
|**direction** | Must be set to `out`. This property is set automatically when you create the trigger in the Azure portal. |
|**name** | The name of the variable that represents the queue or topic message in function code. Set to "$return" to reference the function return value. |
|**queueName**|Name of the queue. Set only if sending queue messages, not for a topic.|
|**queueName**|Name of the queue. Set only if sending queue messages, not for a topic.|
|**topicName**|Name of the topic. Set only if sending topic messages, not for a queue.|
|**connection**|The name of an app setting or setting collection that specifies how to connect to Service Bus. See [Connections](#connections).|

Expand All @@ -475,13 +475,13 @@ The following table explains the binding configuration properties that you set i

|function.json property | Description|
|---------|------------------------|
|**type** |Must be set to "serviceBus". This property is set automatically when you create the trigger in the Azure portal.|
|**direction** | Must be set to "out". This property is set automatically when you create the trigger in the Azure portal. |
|**type** |Must be set to `serviceBus`. This property is set automatically when you create the trigger in the Azure portal.|
|**direction** | Must be set to `out`. This property is set automatically when you create the trigger in the Azure portal. |
|**name** | The name of the variable that represents the queue or topic message in function code. Set to "$return" to reference the function return value. |
|**queueName**|Name of the queue. Set only if sending queue messages, not for a topic.|
|**queueName**|Name of the queue. Set only if sending queue messages, not for a topic.|
|**topicName**|Name of the topic. Set only if sending topic messages, not for a queue.|
|**connection**|The name of an app setting or setting collection that specifies how to connect to Service Bus. See [Connections](#connections).|
|**accessRights** (v1 only)|Access rights for the connection string. Available values are `manage` and `listen`. The default is `manage`, which indicates that the `connection` has the **Manage** permission. If you use a connection string that does not have the **Manage** permission, set `accessRights` to "listen". Otherwise, the Functions runtime might fail trying to do operations that require manage rights. In Azure Functions version 2.x and higher, this property is not available because the latest version of the Service Bus SDK doesn't support manage operations.|
|**accessRights** (v1 only)|Access rights for the connection string. Available values are `manage` and `listen`. The default is `manage`, which indicates that the `connection` has the **Manage** permission. If you use a connection string that doesn't have the **Manage** permission, set `accessRights` to "listen". Otherwise, the Functions runtime might fail trying to do operations that require manage rights. In Azure Functions version 2.x and higher, this property isn't available because the latest version of the Service Bus SDK doesn't support manage operations.|

[!INCLUDE [app settings to local.settings.json](../../includes/functions-app-settings-local.md)]

Expand All @@ -493,15 +493,15 @@ See the [Example section](#example) for complete examples.

::: zone pivot="programming-language-csharp"

The following output parameter types are supported by all C# modalities and extension versions:
All C# modalities and extension versions support the following output parameter types:

| Type | Description |
| --- | --- |
| **[System.String](/dotnet/api/system.string)** | Use when the message to write is simple text. When the parameter value is null when the function exits, Functions doesn't create a message.|
| **byte[]** | Use for writing binary data messages. When the parameter value is null when the function exits, Functions doesn't create a message. |
| **Object** | When a message contains JSON, Functions serializes the object into a JSON message payload. When the parameter value is null when the function exits, Functions creates a message with a null object.|

Messaging-specific parameter types contain additional message metadata and are not compatible with JSON serialization. As a result, it is not possible to use `ServiceBusMesage` with the output binding in the isolated model. The specific types supported by the output binding depend on the Functions runtime version, the extension package version, and the C# modality used.
Messaging-specific parameter types contain extra message metadata and aren't compatible with JSON serialization. As a result, it isn't possible to use `ServiceBusMesage` with the output binding in the isolated model. The specific types supported by the output binding depend on the Functions runtime version, the extension package version, and the C# modality used.

# [Extension v5.x](#tab/extensionv5/in-process)

Expand Down Expand Up @@ -533,7 +533,7 @@ Use the [BrokeredMessage](/dotnet/api/microsoft.servicebus.messaging.brokeredmes

# [Functions 2.x and higher](#tab/functionsv2/isolated-process)

Earlier versions of this extension in the isolated worker process only support binding to messaging-specific types. Additional options are available to **Extension 5.x and higher**
Earlier versions of this extension in the isolated worker process only support binding to messaging-specific types. More options are available to **Extension 5.x and higher**

# [Functions 1.x](#tab/functionsv1/isolated-process)

Expand Down

0 comments on commit 24ace7b

Please sign in to comment.