SharePoint Architect
Receive Messages from Azure Service Bus using Powershell
Roadmap for Service Bus for Windows Server
Hello!
Who knows is there exist roadmap for Service Bus for Windows Server?
When we can use Express Topics and partitioning on promise environment?
nigo
Timeout while trying to create Azure service bus topic subscription
Hi,
An error occurred while creating a Azure service bus topic subscription. The error information is below:
System.ApplicationException: Error creating Subscriptions for <identifier_name>: System.TimeoutException: The request has timed out after 60000 milliseconds. The successful completion of the request cannot be determined. Additional queries should be made to determine whether or not the operation has succeeded. For more information on exception types and proper exception handling, please refer to http://go.microsoft.com/fwlink/?LinkId=761101 TrackingId:2fff9c78-46a6-4f59-8b62-2d14c29b7821, SystemTracker:fan-out/Subscriptions/b375eff5-d616-11e3-abca-84eb18430746, Timestamp:8/4/2016 9:21:05 PM ---> System.Net.WebException: The request was aborted: The request was canceled. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.GetAsyncResult`1.<>c.<GetAsyncSteps>b__22_1(GetAsyncResult`1 thisPtr, IAsyncResult r) at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result) --- End of inner exception stack trace ---Any help in diagnosing this issue would be appreciated. The suggestion from MS for the error is to retry. But this is the first time that we are experiencing a timeout error since the application been deployed for a long time.
Thanks.
Ethertype
Hiya,
I might log that under wrong category, anyway, I want to find out what is the ethertype when connecting to MS Azure using Express route on Ethernet later 2.
Please advise
Thank you
Kamil
IoT Hub Client accepted the message for delivery but doesn't show up in my Azure IoT Portal
Here's the output from the serial port of my Huzzah Feather esp8266 board.
Sending sensor value Temperature = 2, Humidity = 2
IoTHubClient accepted the message for delivery
The device list in the Remote Monitoring Solution still shows Pending with the device registered but not present.
I'm using the solution from https://github.com/Azure-Samples/iot-hub-c-huzzah-getstartedkit updated on Jul 26th.
The solution compiled, connected, and responded. I've configured the WiFi, device ID with key, and device hub. The device doesn't show connected in the portal.
Any ideas what to look for?
Event Hub and ASP.NET
Hi,
While working on event hubs, both publisher and receiver works fine on using console application.
However, when I implement an event hub receiver using ASP.NET, then none of the EventProcessor methods 'open', 'close' and 'process' are getting invoked.
Registration process is not throwing any error.
The same code is working fine in a console application.
What am I missing?
Regards.
Channel Open did not complete within the specified timeout of 00:01:00 - Sending message to Topic
Hi
Unable to send message to Topic, resulting in Channel Open did not complete within the specified timeout of 00:01:00 exception
static
voidMain(string[] args)
{
stringbaseTopic ="azuredemotopic";
stringconnectionString =ConfigurationManager.AppSettings["Microsoft.ServiceBus.ConnectionString"];
stringtopicConnectionString =ConfigurationManager.AppSettings["Microsoft.ServiceBus.Topic.ConnectionString"];
NamespaceManagerazManager =NamespaceManager.CreateFromConnectionString(connectionString);
azManager.Settings.OperationTimeout =
newTimeSpan(0, 10, 0);
ServiceBusEnvironment.SystemConnectivity.Mode = ConnectivityMode.AutoDetect;
if(!azManager.TopicExists(baseTopic))
{
azManager.CreateTopic(baseTopic);
}
if(!azManager.SubscriptionExists(baseTopic,"HighLoanAmount"))
{
SqlFilterhighLoanFilter =newSqlFilter("LoanAmount> 1000");
azManager.CreateSubscription(baseTopic,
"HighLoanAmount");
}
if(!azManager.SubscriptionExists(baseTopic,"LowLoanAmount"))
{
SqlFilterlowLoanFilter =newSqlFilter("LoanAmount< 1000");
azManager.CreateSubscription(baseTopic,
"LowLoanAmount");
}
MessagingFactorymsgFactory =MessagingFactory.Create(
azManager.Address,azManager.Settings.TokenProvider);
TopicClientclient = msgFactory.CreateTopicClient(baseTopic);
foreach(CustomercustomerinCreateCustomer())
{
Console.WriteLine("Press enter to Submit the message.....");
Console.ReadLine();
BrokeredMessagemessage =newBrokeredMessage(customer,newDataContractSerializer(typeof(Customer)));
message.Properties.Add(
"LoanAmount",customer.LoanAmount);
message.MessageId =
string.Format("LoanRequest_{0}",DateTime.Now.ToString());
message.ContentType =
"text/xml";
client.Send(message);
}
}
Subscription where created successfully, but when I client.Send(message); is invoked results in exception.
Any help will be appreciate!
Conflict with WCF
Hello,
I've a console app with this code :
QueueClient Client = QueueClient.CreateFromConnectionString(connectionString, queueName);
ManualResetEvent CompletedEvent = new ManualResetEvent(false);
OnMessageOptions options = new OnMessageOptions();
options.AutoComplete = true;
options.MaxConcurrentCalls = 1;
options.ExceptionReceived += LogErrors;
Client.OnMessage((receivedMessage) =>
{
try
{
var wcfSrv = new UserService.UserServiceClient();
var response = wcfSrv.CreateActivationCode("code", new Guid(), "CODE_TYPE", 2);
receivedMessage.Complete();
}
catch (Exception ex)
{
receivedMessage.DeadLetter();
}
}, options);
Client.Close();
CompletedEvent.Set();
I don't know why the console crash out on :
var wcfSrv = new UserService.UserServiceClient();
It seems that I can't call a WCF service when i'm reading a queue ?
Thanks in advance for help
Service Bus for windows server 1.1 powershell
I'm trying to update the admin and tenant site credentials for my service bus for windows server 1.1 farm with three nodes.
I've followed the instructions here... https://msdn.microsoft.com/en-us/library/dn520958.aspx
but when i get the the line about [RunOnAllNodes] Update-SBHost I get the following error in powershell
At line:1 char:17
+ [RunOnAllNodes] Update-SBHost
+ ~~~~~~~~~~~~~
Unexpected token 'Update-SBHost' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordEx
ception
+ FullyQualifiedErrorId : UnexpectedToken
Service bus paired namespace failover testing
Hi,
We are implementing paired namespace in our application to increase service bus availability and we want to test this configuration. I am not able to simulate service bus fail over to test paired namespace configuration, please suggest if there is any way to simulate service bus fail over.
I am using following code to configure paired namespace
NamespaceManager primaryNM = NamespaceManager.CreateFromConnectionString("...");
MessagingFactory primaryMF = ...
NamespaceManager secondaryNM= NamespaceManager.CreateFromConnectionString("...");
MessagingFactory secondaryMF = ...
SendAvailabilityPairedNamespaceOptions sao=
new SendAvailabilityPairedNamespaceOptions(secondaryNamespaceManager, secondaryMF, 10, TimeSpan.FromSeconds(30), true);
primaryMF.PairNamespaceAsync(sao).Wait();
Thanks,
Nitesh Bajpai
Ingress and Egress not matching in Azure Event Hub
Hi Team,
I am working on the POC for Azure Event hubs to implement same into our application.
Quick Brief on flow.
- Created tool to read the CSV data from local folder and send it to event hub.
- We are sending Event Data in Batch to event hub.
- With 12 instance of tool (Parallel), I could able to send the 6 Lacks lines of messages to Event hub within 1 min.
- But, On receiver side, to receive the 6 Lacks line of data, it taking more than 10 mins.
Need to achieve
- I would like to Match/double my egress speed on the receiver to process the data.
Existing Configuration
- The configuration I have made user are
- TU - 10
- One Event hub with 32 Partition.
- Coding logic goes same as mentioned in MSDN site - https://azure.microsoft.com/en-in/documentation/articles/event-hubs-csharp-ephcs-getstarted/
- (Only difference is, I am sending line of data in a batch.
- EventProcessorhost with options {MaxBatchSize= 1000000, PrefetchCount=1000000 }
Please do provide your input. Let me know if you need more details to be shared?
Regards
Ravindra.
How to Determine Endpoint Connection String Across Multiple Version and Machines
I am having to work to deploy APIs across different Virtual Machines and different bus versions - from Windows Service Bus 1.1 to Azure.
I use PowerShell to query for the information I need for each machine but it does not often work. I do not know when to use 'StsEndpoint' or 'ManagementPort' or 'tcp vs http' or authentication (SAS, CAS, etc). One variation will work on one machine but not on another.
Is there a resource(s) for determining how to configure these issues out?
Thanks,
cj
Please Vote &/or "Mark As Answer" if this post is helpful to you. Thanks and happy coding :D
Consistent operation timeouts for subscriptions for a specific service bus topic
I'm seeing consistent timeouts for subscriptions for a specific topic in an Azure Service Bus. I've tried various operations and they all seem to time out (using the latest version of the .NET Service Bus SDK). Sending messagesto the topic seems to work as usual, but working with the subscriptions fail. According to my logs, these problems have been going on for at least a few days.
Any suggestions? I have already checked the documentation for common exception types but it does not contain any useful information in this case as far as I can see.
ARM Template - Preview API
Hello,
1.
I would like to create a Service Bus (Preview) instead of the Service Bus, only available on the old portal.
This has to be done using Azure ARM Templating. How can i make use of the the Service Bus (Preview)? This is required because the current Service Bus event hubs are not available on the 'Stream Analytics Job'.
2.
Which name must be used in ARM Template to configure 'Message Retention'?
I tried:
- 'Message Retention'
- 'MessageRetention'
- 'MessageRetentionInDays'
Thanks
What happens internally when a topic reaches its max size?
Due to various circumstances I've got a topic that has hit its max size of 5 GB. Now what I'm seeing is that when an app tries to publish to the topic it gets an exception. That's all good and corresponds to the documentation. But what's odd is that when I'm processing the subscriptions, messages are added just as fast as I can receive them.
I know that I'm receiving at a way higher pace than what my apps are publishing to the topic, so it seems that some part of the infrastructure is adding the messages. The apps are normally publishing perhaps 2-3 messages per second, but when I wrote a script that quickly drained the deadletter queue to clear up space, messages were added to the subscription very fast - thousands of messages almost instantly.
Is there some internal retry logic that buffers messages and attempts to publish them as size becomes available? Or is there another explanation for why I'm seeing messages being added to the topic's subscriptions that are not directly published by my own apps?
Java EventHubProcessor
Azure Service Bus delayed (scheduled) message on Topic is lost when used with Duplicate Detection
We are facing a problem with Service Bus.
- We have a topic, with two subscriptions.
- We have enabled Duplicate Detection on those, with 1 minutes window (tried with 2 seconds first). We are using Duplicate Detection to avoid multiple messages processed in short interval (to maintain the interval between the messages)
- We are using the message scheduling (ScheduledEnqueueTimeUtc) to repeat the messages to appear after 5 minutes, with same message ID (every time a new message is created with schedule, and old message is completed)
- The workflow is as follows (problem):
- First time a message is published (without scheduling)
- This message is immediately consumed by the message pump, and a new message with same details and a schedule time of 5 minutes is send to topic (UTC), expecting it to appear after 5 minutes
- The message is not appearing in the subscription
- When debugged, this issue doesn’t come up
- When we send the First message with at least 30 second delay (scheduled), then it is working fine
- If we recreate the topic and subscription with Duplicate Detection turned off, we are able to get the message using the above workflow
Since we have no clue on what is happening to the published message, we need help to identify the root cause of the issue.
Issue with retrieving event hub policies through arm template
Template: https://github.com/sjkp/Azure.ARM.EventHub/blob/master/Templates/azuredeploy.json
I observed that after provisioning it created policies at service bus level not at eventhub. When i tried to get the connection string with this "http://stackoverflow.com/questions/36299640/retrieve-service-bus-event-hub-connection-string" ARM. It din't work because the previous template created the policy at service bus. I din't find any sync between both these templates to create and get policies because one creates the policy at service bus level and another tries to retrieve policy from eventhub level.
Thanks,
Avinash
EventHub: How to set up the offset when using EventProcessorHost ?
I'm using the EventProcessorHost for receiving messages.
I want to initialize the EventProcessorHost and start receiving the last messages.
I didn't find a method to set up an offset. So now I have to receive all messages in EventHub to position on the last messages.
Seems I can use REST API to modify the BLOB storage, which holds the offsets for all groups / partitions.
Is there a .NET method to set up the offsets?
Leonid Ganeline [BizTalk MVP]
Service Bus for windows with Azure Service Fabric not working together?
When there will be a Service Bus for Azure Service Fabric on-premise?
Azure Service Bus - is not on-premise
Service Bus for Windows work with old version named Windows Service Fabric and can not be run on the same machine.
Any road map update on this?