Quantcast
Channel: Service Bus forum
Viewing all 1916 articles
Browse latest View live

How to connect to Azure Service Bus Queue using RSA Public Key Exponent and RSA Public Key Modulus

$
0
0

My Application is connecting to multiple queues configured by external system using Endpoints and queue Names. If RSA Public Key Exponent and RSA Public Key Modulus are used to in Queue Settings while configuring , how can we connect  to the queue .



Put token failed. status-code: 404, status-description: The messaging entity 'sb://nxpricing-dev.servicebus.windows.net/request-input' could not be found. TrackingId:c67efadd-8f86-4d01-b082-183c7ce27577_G13

$
0
0

I have a python Azure Function running in a container in AKS. 

The function received a message from a queue, and puts a message in another queue back. This is referring to the inbound queue:

fail: Host.Executor[0] 
      MessageReceiver error (Action=Receive, ClientId=MessageReceiver1request-input, EntityPath=request-input, Endpoint=nxpricing-dev.servicebus.windows.net) 
Microsoft.Azure.ServiceBus.MessagingEntityNotFoundException: Put token failed. status-code: 404, status-description: The messaging entity 'sb://nxpricing-dev.servicebus.windows.net/request-input' could not be found. TrackingId:c67efadd-8f86-4d01-b082-183c7ce27577_G13, SystemTracker:nxpricing-dev.servicebus.windows.net:request-input, Timestamp:2019-08-30T06:23:20. 
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.OnReceiveAsync(Int32 maxMessageCount, TimeSpan serverWaitTime) 
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.<>c__DisplayClass65_0.<<ReceiveAsync>b__0>d.MoveNext() 
--- End of stack trace from previous location where exception was thrown --- 
   at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func`1 operation, TimeSpan operationTimeout) 
   at Microsoft.Azure.ServiceBus.RetryPolicy.RunOperation(Func`1 operation, TimeSpan operationTimeout) 
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.ReceiveAsync(Int32 maxMessageCount, TimeSpan operationTimeout) 
   at Microsoft.Azure.ServiceBus.Core.MessageReceiver.ReceiveAsync(TimeSpan operationTimeout) 
   at Microsoft.Azure.ServiceBus.MessageReceivePump.MessagePumpTaskAsync()

Any ideas?

thanks!

Are certificate renewals announced somewhere?

$
0
0

Hi,

Since last week 27th of August the SSL of Azure Service bus is renewed:

.

So the previous certificate expired and a new was put into place. 

Is this somewhere announced? That the certificates are going to change?

Another team here was locking to the previous certificate, so a whole flow didn't work anymore. They had to import this certificate to enable the workflow again.

In my calendar I can put a reminder, but I was wondering, maybe these changes are announced somewhere?

Thank you!

Connection between ServiceBus properties AutoDeleteOnIdle and ForwardTo?

$
0
0

What is the relation between the ServiceBus properties AutoDeleteOnIdleand ForwardTo?

  1. I have a ServiceBus queue with AutoDeleteOnIdle property set to max value, 10675199:2:48:5:4775807
  2. I am updating the queue property AutoDeleteOnIdle  to hold value 2 days
  3. Upon setting the ForwardTo property to another queue, theAutoDeleteOnIdle value gets reset to 10675199:2:48:5:4775807.

I am using ServiceBusExplorer to perform the above mentioned update operations. Clarity on why AutoDeleteOnIdle sets to max value on defining ForwardTo will be of great help.

Azure Relay Hybrid Connection Response Headers

$
0
0

I have a pretty vanilla set up taken straight out of the examples. 

I want to set the response headers but they never seem to get set.

context.Response.Headers.Add("something", "or another");

Isnt that all I need to do to get the header set or did I miss something?

Could not load file or assembly 'Microsoft.ServiceBus, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.

$
0
0

I have been using this Microsoft.ServiceBus.dll recently in my .net windows service and it was working fine . Suddenly it started showing this error when being used in Windows service which is deployed now to production. Downgrading to 2.7.6 is not a solution as it is not working for me .

The file exists at proper place with proper reference given and Copy Local is also set to True.

.Please help



AppFabric SDK

$
0
0

I am looking for the AppFabric SDK installer and cant seem to find it online anywhere.

I am currently working on a migration project and need it as part of the plan to move to Azure.

Please can you point me in the direction of the AppFabric SDK installer file

https://twitter.com/byronbayer/status/1172150510964678656

Thanks


sending azure monitoring alert to event grid or other event service

$
0
0

I want sending azure monitoring alert to event grid or other event service to use by other on Prem application. I have tried sending alert to action group as webhook which I use the event bus end point URL as http url, but even tough the alert trigger I don't see and message on event Bus say just zero. not sure I missed or other easy method available to send the alert to event queue?



Thanks

 

raindrop18



If exception occurs is there any way to send message into dead letter topic using c#?

$
0
0

I have azure function app which trigger based on new message into service bus topic.

But if any exception occurs i want to send message into dead letter topic how to do that?

[FunctionName("ProcessData")] public static void Run([ServiceBusTrigger("topic", "sub1", Connection = "ConnectionStringSettingName")]string mySbMsg, TraceWriter log) { try { //process message mySbMsg DataSchema data = JsonConvert.DeserializeObject<DataSchema>(mySbMsg); ... } catch(Exception ex) {

sendErrorEmail();

// How to send message into Dead letter explicitly ? } }


SE


Is using many topics usually better than using just one?

$
0
0

I am trying to design the strategy that my organization will employ to create topics, and which messages will go to which one. I am looking at either creating a separate topic for each event, or a single topic to hold messages from all events, and then to triage with filters. I am convinced that using a separate topic for every event is better because:

  • Filters will be less complex and thus more performant, since each event is already separated in its own topic.
  • There will be less chance of message congestion in any given topic.
  • Messages are less likely to be needlessly copied into any given subscription.
  • More topics means more messaging stores, which means better message retrieval and sending.
  • From a risk management perspective, it seems like having more topics is better. If I only used a single topic, an outage would affect all subscribers for all messages. If I use many topics, then perhaps outages would only affect some topics and leave the others operational.
  • I get 12 more shared access keys per topic. It's easier to have more granular control over which topics are exposed to which client apps since I can add/revoke access by add/revoking the shared access key for each app on a per-topic basis.

Migrate Service Bus to different DNS end point

$
0
0

When the WFM cluster was configured we have used this command:

Add-SBHost -SBFarmDBConnectionString 'Data Source=SQLWFM;Initial Catalog=SbManagementDB2;Integrated Security=True;Encrypt=False' -RunAsPassword $SBRunAsPassword -EnableFirewallRules $true -Verbose -ExternalBrokerUrl 'sb://wfm.internalra.net';

now we need to change 'wfm.internalra.net' DNS to our new domain 'wfm.ra.net'

What is the process for doing that ?

TLS 1.0 issues with service bus queue

$
0
0

Hi. I posted the following query to the Azure Support Twitter team and they responded with what looks to be a very promising link: https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-manager-resource-explorer

I'm wondering a few things:

We don't have a Microsoft.Web->Hostingenvironments node. We want to make this change for a particular Resource Group associated with a service Bus. Can that be done? I tried to do this by adding the ClusterSettings json for Disable TLS 1.0 directly to our "PlusTest2" Resource Group (in properties, as suggested). When I "Put"/save this, it seems as though it has worked, but then it doesn't show up. So can we do this, or do we need to create an "App Service Environment" and associate this Resource Group with that and then make changes that way?

Original message:

We are using an Azure Service Bus Queue to send messages to from a .Net app. This has worked for a few years. We are now needing to disable TLS 1.0 on our server. When we do this from our test server, we are getting TLS negotiation errors. I've examined the details using several tools. Netmon shows us that communication from http://ns-sb2-prod-ch3-003.cloudapp.net  (which is where our queue,sb://plus-relocation-test.servicebus.windows.net,must resolve to) is trying to send a TLS 1.0 handshake. It tries several times and then fails with "Exception: A call to SSPI failed". I've tried to look into various Azure settings to see if we can change the TLS version for our resource group or something, but I don't see anything. Any ideas would be greatly appreciated as I've spent a great deal of time on this. Thanks!

Thanks for your help!

Ben

How to send message from Deadletter topic to Main and complete it using .net core c#

$
0
0

I'm able to send message to Main from Deadletter using below code but issue is unable to complete that message.

error at this line - await deadletterReceiver.CompleteAsync(newMessage.SystemProperties.LockToken);

System.InvalidOperationException: Operation is not valid due to the current state of the object. at Microsoft.Azure.ServiceBus.Message.SystemPropertiesCollection.ThrowIfNotReceived() at Microsoft.Azure.ServiceBus.Message.SystemPropertiesCollection.get_LockToken()

publicstatic async System.Threading.Tasks.TaskRunAsync([TimerTrigger("0 */2 * * * *")]TimerInfo myTimer,ILogger log){
                    log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");try{var deadQueuePath =EntityNameHelper.FormatDeadLetterPath("demo/subscriptions/demo");MessageReceiver deadletterReceiver =newMessageReceiver(Environment.GetEnvironmentVariable("ConnectionStringSettingName"), deadQueuePath,ReceiveMode.PeekLock,RetryPolicy.Default);MessageSender sender =newMessageSender(Environment.GetEnvironmentVariable("ConnectionStringSettingName"),"demo",RetryPolicy.Default);var deadLetter = await deadletterReceiver.ReceiveAsync();if(deadLetter !=null){
                            log.LogInformation($"got new message");Message newMessage =newMessage(deadLetter.Body){ContentType= deadLetter.ContentType,CorrelationId= deadLetter.CorrelationId};//Send the message to the Active Queue
                            await sender.SendAsync(newMessage);
                            await deadletterReceiver.CompleteAsync(newMessage.SystemProperties.LockToken);//Unlock the message and remove it from the DLQ
                            log.LogInformation($"Unlock the message and remove it from the DLQ");}}catch(Exception ex){
                        log.LogInformation($"Exception: {ex}");}}

Service Bus Explorer - Minimum access permissions

$
0
0

Hi

Not sure this is the correct forum for this, but I was wondering if you guys are also using the Azure Service Bus explorer to explore and troubleshoot issues in the Service Bus.

I would like to grant access to power users, but it seems the minimum access requirement is Manage and this permission allows you to delete the queues. Is there any way we can configure the exlorer to require only read access ?

Thank you

Can't uninstall service bus

$
0
0

Hi,

When trying to uninstall Service Bus i get this error:

"This computer is part of a farm. To uninstall, first leave the farm either using 'Leave from Farm' option in Service Bus Configuration tool or Remove-SBHost cmd-let in PowerShell."

When trying the Remove-SBHost powershell command I get this error:

"Remove-SBHost : Certificate requested with thumbprint EC808B911009F8A8E21FE73DE5216E6B596527F4 not found in the certificate store LocalMachine\My."

When trying to open the configuration tool it just craches with this information in the eventlog:

Application: Microsoft.ServiceBus.ConfigWizard.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Windows.Markup.XamlParseException

How can I uninstall the Service Bus?


TR


Behavior of TopicClient.SendBatch if it fails

$
0
0

Hi,

When and especially how does the TopicClient.SendBatch(...) fail? Does the whole batch fail or is it a partial success/failure?

Thanks,
Steven Hillaert


Steven Hillaert blog.hill-it.be

Can i read dead lettered message from service bus topic subscription using .net core console application

$
0
0

Can i read dead lettered message from service bus topic subscription using .net core console application?

If so please share sample code.

Azure Service bus queue getting deleted unexpectedly

$
0
0
We experienced that our Azure service bus queue got deleted automatically, we had to create it again. The value for Auto Delete on Idle has max number of days hence it is not related to this value. We are using standard pricing tier for Service Bus namespace. Also, our queue names are GUIDs if that matter. Could anyone please suggest?

Sending message to Azure ServiceBus queue via REST api

$
0
0

Hi All,

I am trying to send a message to Azure ServiceBus queue using REST api via POSTMAN, but when I trigger the message I am getting the below error:-
<Error>

    <Code>405</Code>

    <Detail>The SessionId was not set on a message, and it cannot be sent to the entity. Entities that have session support enabled can only receive messages that have the SessionId set to a valid value. TrackingId:aew3fd4-971d-455456-ac34-453345, SystemTracker:SampleNamespace:Queue:queue_name, Timestamp:2019-09-30T10:27:09</Detail>

</Error>

POSTMAN

Can someone tell me how can I add a sessionId in header tab, and what to add in SessionID? I tried a few thing but did not work.

Thanks,
Rudra

Servuce bus queue - multiple messages for receiver

$
0
0
Is it possible to configure a listener, so more than one thread or message is processed at a time.  For example.  If I post 100 messages to a service bus queue.  I would like 10 threads to process 10 messages at a time.  This will increase throughput.  Is this possible?
Viewing all 1916 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>