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

Unsurmountable Cost to Kick the Tires - Azure IoT Suite

$
0
0

It only costs $725 to simply kick the tires and check out theRemote Monitoring sample of AZ IoT Suite! 

Am I reading this right?  Please help me understand.

When you go to azureiotsuite.com and you add a new Remote Monitoring suite, here is the list of services it spins up (and I added the pricing for these as of today):

  • $0        - Azure IoT Hub (1 high-frequency unit)  Free for 8000 msgs
  • $69.19 - Azure Stream Analytics (3 streaming units) 
  • $50      - Azure DocumentDB (1 S2 instance) 
  • $.06     - Azure Storage (1 GRS standard, 1 LRS standard, 1 RA-GRS standard) $pennies
  • $595.20 - Azure App Services (2 S1 instances, 2 P1 instances)
  • $11.16   - Azure Event Hub (1 basic throughput unit)  $11.16

  

~$725!  wooo!  That is $725 to prototype keeping track of the temperature with your Arduino in your living room, folks.

This is the most expensive exploration/trial in a software service I think I've ever seen in my career (ok, maybe not... there's also Xamarin :) ).  Surely I've misunderstood something here.  Watching BUILD and related video all about Azure IoT this week, I heard repeatedly, "it's all about the developers" - meaning, MS loves devs tinkering because it leads to experience and familiarity when it comes time to build real solutions at work. Want me to come to work and pitch platform choices with MS experience under my belt, or some competitor?

 I don't think I need to even begin to explain how Azure IoT is 100% unreachable to tinkering devs. (assuming the above is correct).



Azure Service Bus queue is deleted when using relay binding

$
0
0

I'm experiencing a weird issue when using relay bindings with Azure Service Bus.
I'm running the code below

static void Main(string[] args)
{
  ServiceHost sh = new ServiceHost(typeof(RemoteService));
  sh.AddServiceEndpoint(
    typeof(IServiceEndpointPlugin), new NetTcpRelayBinding(), AppSettings["SBusEndpoint"])
    .Behaviors.Add(new TransportClientEndpointBehavior
    {
      TokenProvider = TokenProvider.CreateSharedAccessSignatureTokenProvider(AppSettings["SharedAccessKeyName"], AppSettings["SharedAccessKey"])
    });

  sh.Open();

  Console.WriteLine("Press ENTER to close");
  Console.ReadLine();

  sh.Close();
}

"SBusEndpoint" is a pre-created service bus queue endpoint
"SharedAccessKeyName" is the name of the SAS key, and the "SharedAccessKey" is the key value.

As long as the program runs everything works fine, messages are received and it outputs fine, but as soon as I stop the program (both by running the Close() method and by stopping the debug session) the queue is removed from the Azure portal.
What makes it even more strange is that the queue still exists, but all of the shared access policies are gone. So if I use a shared access key defined for the bus itself then I can reconnect without any issues (the queue is still not visible from the portal, though), but if I used a shared access policy defined on the queue then that is no longer valid and throws an error on sh.Open()

If I try to re-create the queue I get a "GatewayTimeout" error saying "The gateway did not receive a response from 'Microsoft.ServiceBus' within the specified time period.", so the namespace is clearly still reserved even though the validation says the namespace is valid (green check).


Getting AMQP exception trying to open connection to Azure Service bus relay

$
0
0

I have configured an Azure Service bus relay for allowing an application behind the firewall to open a WCF connection to allow third-parties to connect to it. The third-party in this case is a web api running on Azure that provides services for a mobile app. This has worked fine for around a month now: the mobile app contacts Azure web api, which relays calls thru the service bus relay to an installation behind the firewall. But just this morning I started running into problems. The issue occurs when the application attempts to open the service host.

(Note: running in debug mode Visual Studio 2015, .NET Framework 4.5.2).

The Service Host is configured here:

ServiceHost mobileService =null;...var azureBinding =newNetTcpRelayBinding();
                azureBinding.MaxBufferSize*=10;
                azureBinding.MaxBufferPoolSize*=10;
                azureBinding.MaxReceivedMessageSize*=10;
                mobileService.AddServiceEndpoint(typeof(IActMobileService),
                    azureBinding,ServiceBusEnvironment.CreateServiceUri("sb","<sbname>", uniqueAzureID)).EndpointBehaviors.Add(newTransportClientEndpointBehavior{TokenProvider=TokenProvider.CreateSharedAccessSignatureTokenProvider("RootManageSharedAccessKey","<privatekey>")});try{
        mobileService.Open();// this is where the Exception occurs}catch(Exception ex){...}

The exception thrown is an AMQP exception. Exception thrown: 'Microsoft.ServiceBus.Messaging.Amqp.AmqpException' in Microsoft.ServiceBus.dll Exception thrown: 'System.ServiceModel.CommunicationException' in Microsoft.ServiceBus.dll An AMQP error occurred (condition='amqp:internal-error').

Here's the stack trace:

at Microsoft.ServiceBus.RelayedOnewayListener.RelayedOnewayAmqpListenerClient.AmqpRelayedConnection.Open(TimeSpan timeout) at Microsoft.ServiceBus.RelayedOnewayListener.RelayedOnewayAmqpListenerClient.GetOrCreateConnection(Uri via, TimeSpan timeout) at Microsoft.ServiceBus.RelayedOnewayListener.RelayedOnewayAmqpListenerClient.Connect(TimeSpan timeout) at Microsoft.ServiceBus.RelayedOnewayTcpClient.EnsureConnected(TimeSpan timeout, Boolean isRetry) at Microsoft.ServiceBus.RelayedOnewayTcpClient.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at Microsoft.ServiceBus.RelayedOnewayListener.OnOpen(TimeSpan timeout) at Microsoft.ServiceBus.Channels.RefcountedCommunicationObject.Open(TimeSpan timeout) at Microsoft.ServiceBus.RelayedOnewayChannelListener.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at Microsoft.ServiceBus.RelayedSocketListener.Open(TimeSpan timeout) at Microsoft.ServiceBus.Channels.BufferedConnectionListener.Open(TimeSpan timeout) at Microsoft.ServiceBus.SocketConnectionTransportManager.OnOpen(TimeSpan timeout) at Microsoft.ServiceBus.Channels.TransportManager.Open(TimeSpan timeout, TransportChannelListener channelListener) at Microsoft.ServiceBus.Channels.TransportManagerContainer.Open(TimeSpan timeout, SelectTransportManagersCallback selectTransportManagerCallback) at Microsoft.ServiceBus.Channels.TransportChannelListener.OnOpen(TimeSpan timeout) at Microsoft.ServiceBus.Channels.ConnectionOrientedTransportChannelListener.OnOpen(TimeSpan timeout) at Microsoft.ServiceBus.SocketConnectionChannelListener`2.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.Dispatcher.ChannelDispatcher.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout) at System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout) at HostActEnterprise.StartApp.OpenTheHost() in C:\Users\tony.scannell\Source\Workspaces\ACTEnterprise\Development\Service\HostActEnterprise\StartApp.cs:line 403

I have tried getting diagnostics thru the Azure portal, but it reports nothing. I have Googled for this specific error and cannot find any resolution. Since I have done nothing different with the code since last week (when it worked fine!) I am at a loss as to what is happening.

Service Bus Namespace not visible in Azure Portal

$
0
0

Hi, I've created a service bus namespace using Azure Powershell using the following command:

New-AzureSBNamespace –Name SBTest -Location "North Europe" -CreateACSNamespace $true -NamespaceType Messaging

 I can then see this namespace is created using Get-AzureSBNamespace.

My problem is that this namespace then doesn't appear in the Azure Portal.  I've looked in All Resources and in Service Bus.  Am I missing something?

Thanks.


Error accessing Azure Service Bus URL

$
0
0

1. When I try to access the url (https) from Azure I get below...

<Error>

<Code>401</Code>
<Detail>
claim is empty. TrackingId:6c563587-2025-462a-9321-5ef013d323d4_G4, SystemTracker:mypoc.servicebus.windows.net:securityitemsqueue, Timestamp:10/18/2016 2:02:04 PM
</Detail>
</Error>

What could be causing this? I see no configuration realting to "Claim".

2. When using the Bus with C#(on premise) do I need to open TCP Ports outbound for communicating with the Service Bus?

Future of on premise version of service bus

$
0
0

Hello,

Does anyone have any insight on whether the on premise version of the service bus will be supported in the foreseeable future? It seems that it hasn't been updated since 2013, even though a yearly update was promised. This gives me the impression this product will overcome the same fate as other on premise products such as App Fabric, i.e. will be discontinued. Would it be smart to use this product for new development? Is there any road map?


CNAME for Azure Service Bus

$
0
0

Hi,

I came to know there is no CName for Azure service bus. is there an alternative way to resolve this ?

Also. as per the article RFC1912, we must not use CNAME-record for mydomain.com. We need to set an A-record for mydomain.com

Pls. suggest work aournd for the above 2 areas.

Thanks,


Kumaresan Lakshmanan

Sending different types of objects in Service Bus Queue (Queue or Topic)

$
0
0

Hi Folks,

The sender would send different types of objects (different schema) through ServiceBus. The receiver wants to understand the type message and process the message accordingly. 

What is the efficient way of understanding the type and processing it ? Using Message.Label is the way of doing it ? 

Or using the ASB Topic to send different types of messages in different topics ? 

Thanks !




Using the auto generated certificates causes "Bad Key" issue if the certificates are used again. (On Premise 1.1)

$
0
0

When "reusing" the certificates from "auto generation", a second install creates an error.

Created and configured Service Bus farm management database.
Created and configured Service Bus gateway database.
Creating default container.
Bad Key.

Steps to reproduce.

(1)

Use Configuration Wizard or Powershell (New-SBFarm and Add-SBHost ) to Install Service Bus 1.1 using "Auto Generate" certificates. (-CertificateAutoGenerationKey switch)

(2)

Remove from Farm this machine.  (Leave the auto generated certificates "in tact" on the machines).

(3)

Use Configuration Wizard or Powershell (New-SBFarm and Add-SBHost ) to Install (a second time) Service Bus 1.1NOT using "Auto Generate" certificates. (-FarmCertificateThumbprint and -EncryptionCertificateThumbprint switches)  Use the Thumbprints of the certificates that were generated above.

You'll get an error

Bad Key.

Can anyone confirm this as a bug?

The problem is that this kills my disaster recovery attempts. (I need to be able to reinstall the certificates on a "new" machine if my original machines go kaputt)

I've also tried making my own self signed certficates, but that's another story.  (The client machine refuses to talk to Machine2-5 of the Farm).  (I mention this because I think that would be a suggestion ..... ).

Service Bus : AppServerGeneratedSBCA in “Certificate Revocation List”

$
0
0

I just installed Service Bus On Premise version 1.1.  I went through and made an inventory of all the certificates that are installed.

Searching by "Issuer" with the name "AppServerGeneratedSBCA" seems to be the easiest way to find it.

There is one strange entry that I don't understand:

AppServerGeneratedSBCA in “Certificate Revocation List”

Even stranger, I've bee doing all this setup in the fall of 2016 (September 2016 and October 2016). But the dates on this strange entry are "Effective Date" = "4/2/2012" and "Next Update" value of "4/2/2013"

What is the purpose of this entry?  For disaster recover, do I need it?

Can I add Event Hub to the existing Name Space from old portal?

$
0
0

Can I add Event Hub to the existing Name Space from old portal? 

The following blog says that Event Hub is separated from Service Bus.

Is Event Hub working only in new portal today?

https://azure.microsoft.com/en-us/blog/service-bus-and-the-new-azure-portal/

Can a UWP app running on Windows 10 IoT Core device use Azure Service Bus Topics?

$
0
0

I found that I could not install the NuGet package WindowsAzure.ServiceBus in my UWP project.  Is there a way to use Azure Service Bus Topics from a UWP app?  If so, does anybody have any sample to start things off?

I'm writing an app to run in Windows 10 IoT core on a Raspberry Pi and want to be able to subscribe to my Azure IoT Hub to retrieve specific messages from a Topic.

Thanks,

RD

Slow performance with complete on Azure Service Bus topic

$
0
0

I've had multiple bad experiences with performance on Azure Service Bus topics lately. The problem is very slow acknowledge of message. I'm using the .NET client and it's the call to Complete that is very slow. Take a look at the following graph that shows time consumption in my message handler:

The time consumed in Complete is around 2-3 seconds in average for the show time period. In other periods, the Complete method takes a few milliseconds. Notice that this is a stacked bar chart, that shows all of the operations needed to persist a message from service bus. The only visible bar on the chart is the Complete call (purple).

I'm running on the Standard plan and I know that there's a premium plan as well. But it is very expensive compared to the standard plan. I'm not expecting calls to execute in 2 milliseconds on the shared standard plan, but a plan where some calls to Complete takes a minute simply isn't usable for anything.

Autoscale of Cloude service (WorkerRole) based on the ASB queue length

$
0
0

Hi Folks, 

I am looking for autoscaling the worker role based on the ASB queue length. 

Any inputs would be appreciated. 

Thanks !


unable to export activity log to service bus

$
0
0

Hello,

when use azure, i encountered a stange issue. i keep getting a Forbidden error when tried to export my activity log to service bus. 

and i can not upload my screenshot. page said "

  • Body text cannot contain images or links until we are able to verify your account.

"


A java listener stops listening to the service bus without giving any exception

$
0
0
I have created a java topic listener application for a Azure Service bus topic. I am running this application on Azure Web app service with default tomcat configuration in . After running for a while it stops listening to the service without giving any exception in application logs or in the tomcat's catalina logs. The other applications in the tomcat is running fine.

Can you tell me what can be the possible reason for this?

I have implemented my listener application by using the following link's help: 

https://azure.microsoft.com/en-in/documentation/articles/service-bus-java-how-to-use-jms-api-amqp/

I am using QPID-AMPQ 1.0.

Let me know if you need any other inputs.

Thanks,

Naresh

Disabling TLS 1.0 causes application using Azure Service Bus to fail

$
0
0

I've written a basic Hello World application using Azure Service Bus and everything works fine.

Now, I have to test PCI compliance on the machine that will be using the Azure Service Bus.  One of the requirements for PCI compliance is to disable TLS 1.0.  Unfortunately, as soon as I do that my Hello World application fails with the following exception:

"An unhandled exception of type 'Microsoft.ServiceBus.Messaging.MessagingCommunicationException' occurred in Microsoft.ServiceBus.dll

Additional information: A call to SSPI failed, see inner exception."

To be clear, the only thing that changed between working and not working is disabling TLS 1.0 on the host machine and I am not sure what to do to correct this.

Event Hubs Preview Failed to Install on Central US Resource

$
0
0

I was trying to install the Event Hubs - Preview in my portal and keep recieving a failure message.  The service installed fine, but the actual Event Hub creation keeps failing.  

The error message isn't really helpful, but I've copied it here anyway.  Any ideas?  I've tried creating the service on Central US and West US.  Functions, Storage, etc seem to be working just fine.

TITLE
 
Event Hub creation
DESCRIPTION
 
Failed creating Event Hub MarketingPixels
STATUS
 
Error
TIMESTAMP
 
Mon Oct 31 2016 11:34:35 GMT-0600 (Mountain Daylight Time)
UTC TIMESTAMP
 
Mon, 31 Oct 2016 17:34:35 GMT
CORRELATION IDS
 
clientNotification-65a985bc-6b70-4995-90f5-0733f28c4007


Manage Azure ARM service bus using PowerShell?

$
0
0

Hi Team, 

I need to manage ARM service fabric using Powershell for below topic:

1. Create queue

2. Create Topic

3. Create event hub etc.

Didn't get documentation, Can you please share link. I only found it for Azure Classic porta. Below are link for classic portal:

https://azure.microsoft.com/en-in/documentation/articles/service-bus-powershell-how-to-provision/

storm-eventhubs stops processing for a period of time with a "Force detach the link because the session is remotely ended" error

$
0
0

I am using a HDInsight Storm cluster to provide real-time message processing been fed by IoT devices in the field.

Recently I've started to notice a distinct slow-down in the receipt of messages which are causing flow-on effects for my application stack.

Trawling through the logs I noticed the following exception:

2016-10-27 06:21:58.288 c.m.e.c.EventHubReceiver [ERROR] Error{condition=detach-forced,description=Force detach the link because the session is remotely ended.} 2016-10-27 06:21:58.289 c.m.e.c.EventHubClient [INFO] Recovering with offset filter 1357552 2016-10-27 06:21:58.288 STDIO [ERROR] java.net.SocketException: Connection timed out 2016-10-27 06:21:58.289 STDIO [ERROR] at java.net.SocketInputStream.socketRead0(Native Method) 2016-10-27 06:21:58.289 STDIO [ERROR] at java.net.SocketInputStream.read(SocketInputStream.java:152) 2016-10-27 06:21:58.290 STDIO [ERROR] at java.net.SocketInputStream.read(SocketInputStream.java:122) 2016-10-27 06:21:58.290 STDIO [ERROR] at sun.security.ssl.InputRecord.readFully(InputRecord.java:442) 2016-10-27 06:21:58.290 STDIO [ERROR] at sun.security.ssl.InputRecord.read(InputRecord.java:480) 2016-10-27 06:21:58.291 STDIO [ERROR] at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:944) 2016-10-27 06:21:58.291 STDIO [ERROR] at sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:901) 2016-10-27 06:21:58.292 STDIO [ERROR] at sun.security.ssl.AppInputStream.read(AppInputStream.java:102) 2016-10-27 06:21:58.292 STDIO [ERROR] at java.io.InputStream.read(InputStream.java:101) 2016-10-27 06:21:58.298 STDIO [ERROR] at org.apache.qpid.amqp_1_0.client.TCPTransportProvider.doRead(TCPTransportProvider.java:234) 2016-10-27 06:21:58.299 STDIO [ERROR] at org.apache.qpid.amqp_1_0.client.TCPTransportProvider.access$000(TCPTransportProvider.java:47) 2016-10-27 06:21:58.299 STDIO [ERROR] at org.apache.qpid.amqp_1_0.client.TCPTransportProvider$1.run(TCPTransportProvider.java:185) 2016-10-27 06:21:58.299 STDIO [ERROR] at java.lang.Thread.run(Thread.java:745)

Starting a new cluster on my development machine had the messages flowing again at the correct rate and everything returned to normal.

Also seeing this appear sometimes:

c.m.e.c.EventHubReceiver - Error{condition=com.microsoft:container-close,description=The message container is being closed (26525). TrackingId:d822e0e4-5f2b-4344-988b-c7f0bc7999f8_B6, SystemTracker:NoSystemTracker, Timestamp:10/27/2016 7:59:08 AM}

c.m.e.c.EventHubReceiver - Error{condition=com.microsoft:container-close,description=The message container is being closed (26523). TrackingId:fd9288d5-16ed-47ed-ac8a-e4175d69ef95_B4, SystemTracker:NoSystemTracker, Timestamp:10/27/2016 7:59:08 AM}

I am running:

storm-core 0.10.0 (HDInsight version) on Linux
storm-eventhubs 0.10.2

Viewing all 1916 articles
Browse latest View live


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