Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add README for ServiceBus functions extensions #19415

Merged
merged 2 commits into from
Mar 10, 2021

Conversation

JoshLove-msft
Copy link
Member

@JoshLove-msft JoshLove-msft commented Mar 10, 2021

Resolves #17567

```json
{
"Values": {
"<connection_name>": "Endpoint=sb://<service_bus_namespace>.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=<access key>"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may want to consider a slug for the key name to discourage using the root key in the interest of least privilege.

[FunctionName("BindingToSender")]
public static async Task Run(
[TimerTrigger("0 */5 * * * *")] TimerInfo myTimer,
[ServiceBus("<queue_or_topic_name>", Connection = "<connection_name>")] ServiceBusSender sender)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow.... I had no idea that this was possible.... nice!


The Service Bus Trigger allows a function to be executed when a message is sent to a Service Bus queue or topic.

Please follow the [Azure Service Bus trigger tutorial](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus-trigger?tabs=csharp) to learn more about Service Bus triggers.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Locale in the URL


The Service Bus Output Binding allows a function to send Service Bus messages.

Please follow the [Azure Service Bus output binding](https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus-output?tabs=csharp) to learn more about Service Bus bindings.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Locale in the URL

@JoshLove-msft JoshLove-msft merged commit 3733b8d into Azure:master Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[WebJobs/ServiceBus] Add README.md
2 participants