azureservicebus

Azure Function - Python - ServiceBus Output Binding - Setting Custom Properties

五迷三道 提交于 2019-12-23 12:09:04
问题 I have an Azure Function written in Python that has an Service Bus (Topic) output binding. The function is triggered by another queue, we process some files from a blobl storage and then put another message in a queue. My function.json file looks like that: { "bindings": [ { "type": "serviceBus", "connection": "Omnibus_Input_Send_Servicebus", "name": "outputMessage", "queueName": "validation-output-queue", "accessRights": "send", "direction": "out" } ], "disabled": false } In my function, I

How do I delete a DeadLetter message on an Azure Service Bus Topic

♀尐吖头ヾ 提交于 2019-12-23 07:31:05
问题 I'm writing a piece of code which will allow us to: View a list of all dead letter messages that exist within an Azure Service Bus Topic (Peek) Fix and send them back to the Topic Delete them from the dead letter queue upon resending. I have no issues with the first 2 points; using the Peek receive mode I can show a list of messages and we can edit and resend with no issues. The problem comes when I want to actually delete the message from the dead letter queue. How do we do this on a message

Can I set a proxy for Azure service bus connections in Java SDK 0.9.0?

泄露秘密 提交于 2019-12-23 05:48:11
问题 I am integrating with a third party, who has provided an Azure service bus queue for us to receive messages. (We're using the 0.9.0 Azure jars from the download link at https://azure.microsoft.com/en-us/documentation/articles/java-download-azure-sdk/) I set up a connection like so: Configuration config = new Configuration(); config = ServiceBusConfiguration.configureWithConnectionString(null, config, connectionString); ServiceBusContract azureService = ServiceBusService.create(config); And

Why the manual raised Transient Error exceptions are handled as an AggregateException?

假装没事ソ 提交于 2019-12-23 05:14:15
问题 When I try to raise transient exception manually, it is always handled as AggregateException . Since it is handled as AggregateException , it is not handled as transient error in my retry policy and not retried for the predefined retry count. Transient errors are shown here . Therefore I have tried CommunicationException and ServerErrorException but it is handled as an AggregateException. When I look for AggregateException, it says "Represents one or more errors that occur during application

Why the manual raised Transient Error exceptions are handled as an AggregateException?

落爺英雄遲暮 提交于 2019-12-23 05:13:10
问题 When I try to raise transient exception manually, it is always handled as AggregateException . Since it is handled as AggregateException , it is not handled as transient error in my retry policy and not retried for the predefined retry count. Transient errors are shown here . Therefore I have tried CommunicationException and ServerErrorException but it is handled as an AggregateException. When I look for AggregateException, it says "Represents one or more errors that occur during application

How to create a local Windows-based service bus outside of Azure, similar to Redis with automatic fail-over?

故事扮演 提交于 2019-12-23 05:02:01
问题 We are implementing a service/message-bus feature in our SignalR application and have been looking at Redis, with automatic fail-over using Redis Sentiel. We would like to maintain our own servers and have read SignalR powered by Service Bus. Since this is a Winddows Azure implementation, how can I accomplish this in our internal network with VM's with automatic fail-over similar to the Redis solution discussed above? 回答1: You may want to look at Service Bus for Windows Server: http://msdn

How to change the properties of a service bus queue?

試著忘記壹切 提交于 2019-12-23 03:30:55
问题 I am using service bus queues to communicate between web role and worker role. Sometimes web role messages are not being accepted by worker role. But it immediately accepts the next message i send. So i was thinking maybe its happening because the Batched Operations is enabled. I have been trying to put it to false but i havent been successful. This is my code. public static QueueClient GetServiceBusQueueClient(string queuename) { string connectionString; if (RoleEnvironment.IsAvailable)

Trouble catching exception on Azure Service Bus SendAsync method

怎甘沉沦 提交于 2019-12-23 03:15:55
问题 I'm trying to use the following code to setup a failure condition, namely were there is no network path available, so the code shouldn't be able to send to the Service bus at all. I know this because I disable my network ports when I test. I am still having trouble with the Async nature of the code though. I don't know in a console application like I have how to attach something that would log out the exception that I know should be generated. How do I see that exception text? public async

code generate Azure Servicebus Namespace

喜欢而已 提交于 2019-12-23 02:18:26
问题 I'm trying to figure out a way to create Azure Servicebus namespace using Azure manage API, cmdlets or REST API, so that I can create repeatable scripts for my deployment. Right now the only way I know how to create the Servicebus Namespace is through the Azure Portal. Is there a scriptable (c#, powershell) way to create a new azure servicebus w/o using the Azure portal ? here's a few links I've already read through: Azure Cmdlets: msdn.microsoft.com/en-us/library/jj152841.aspx API References

Sending 1000 brokered messages to the service bus using the SendBatchAsync method

核能气质少年 提交于 2019-12-22 22:42:28
问题 I have an application wherein data is fetched from the SQL DB and sent to the service bus as brokered message. These are the steps: Data fetched from the DB(in batches of 1000) Each row of data converted into Brokered Message and added into a list. The list of 1000 brokered messages is sent to the service bus using SendBatchAsync method. It is at the 3rd step that I am facing the issue. This is the code for that: public async Task SendMessagesAsync(List<BrokeredMessage> brokeredMessageList) {