I've been using the Metrics REST API documented at https://msdn.microsoft.com/en-au/library/azure/dn163589.aspx to get metrics for Service Bus Queues. I've noticed that there seems to be a 10-15 minute delay to get the latest data. Is it possible to get near real-time information about the service bus queues? We have a high-priority queue that expires messages after a couple of minutes. We'd like a way to poll every minute to see if the deadletter queue is growing.
Service Bus Metrics Delayed
Message Container Database grown to over 100 GB, Deletes failing
On our production environment we have seen the Message Container database of Servicebus grow to over 100 GB of data. This data was mostly in the MessageBodies table. Simultaneously we have seen two issues:
1. The Stored procedures DeleteMessageBodies and the TuncateLogs gave timeouts after 2 minutes
2. These Stored Procedures used more than 100 GB of space in both the tempdb as the Log of the Message Containers database.
Since the data could not be deleted from the database we got issues on the production system because of the lack of disk space on the Database server.
We use:
SQL Server 2012 (11.0.5343),
Windows Server 2008 R2,
Service Bus for Windows Server 1.1 CU 1
Are there any settings that we can change to allow the queries to complete (Increase the CommandTimeout)? And using less disk space when the Stored Procedure are run?
Message Filters with Rest API
Hello All,
I have been trying to user service bus with REST API.
Till now I have been able to Create Topic,Send message, Create Subscriptions, get messages using the REST API.
Now with the basics working I need to get into the real world scenarios.
Till date I had been using Active MQ which I had to give up on due to clustering limitations.
Active MQ allowed me to use the SQL filters on the topic/que with subscription to listen to only messages that match my search criteria.
I do not seem to find the same for REST api on service bus.
Can some one help me with a small example of using filters with subscription in Azure using REST API.
Regards,
Harneet
If then else for each loop :)
Restrict access by IP to Service Bus Queue
Hi there,
Is it possible to restrict access to a Service Bus Namespace or Service Bus Queue to only one IP address?
IoT Hub REST API Error Message
Hi,
I try to get a list of devices from my IoT hub using the REST API and the URL https://{IoTHubName}.azure-devices.net/devices?top={top}&api-version={api-version} that I got from there https://msdn.microsoft.com/en-us/library/azure/mt548490.aspx
When I do the request I get 401 and the message "IOT hub does not correspond to host name", what does it mean? I gues it is something wrong with my access token, but I can not figure out what it is.
Thanks!
ACS OAuth2 tokens
Hi,
I have created Service Bus with ACS, attached WCF relay service and everything work great.
Now I would like to use OAuth2 with my relay service.
In first step I sent POST to get token from :
https://mynamespace.accesscontrol.windows.net/v2/OAuth2-13
with success
{
"token_type": "http://schemas.xmlsoap.org/ws/2009/11/swt-token-profile-1.0",
"access_token": "net.windows.servicebus.action=Listen......",
"expires_in": "10800",
"scope": "http://{mynamespace}.servicebus.windows.net/"
}
Now
I need some example how to set headers with this token.
When I set headers with something like this
Authorization: Bearer "net.windows.servicebus.action=Listen..."
I have
"Invalid authorization header: The request is missing WRAP authorization credentials"
Why WRAP? I would like to use OAuth2 not OAuth WRAP
Monitoring Azure Event Hub
I have been researching on Microsoft Azure Event Hubs. My goal is to figure out a way to provideautomatic scalability. This is a experimental work and I am really only trying to know what can I do with Azure event hubs. I do not have access to the Azure platform to test test anything :( .
Well, so far, I found that through REST API and Service Bus Powershell I can add Throughput Units(to increase performance) and increase or decrease Event's Expiration time (which might influence capacity.
The problem is that, presuming that the previous techniques work and I am able to scale event hubs' performance automatically, I still need a way to know when to trigger scalability mechanisms. To know when and how to trigger scalability, I need to work on some functions that rely upon the event hub's metrics (or a way to monitoring it). The problem is that I can't really find any metrics.
Thanks in advance Best regards
Is it possible to build a REST back office web service in front of REST relay component ?
Hello,
I am new to Azure Service Bus. I want to build a REST based RELAY component in Azure with REST web service as back office web service and calls made from REST web service.
Is it possible to build all the three in REST
1) REST based Back Office service (behind the REST RELAY component / actual service),
2) REST based RELAY component, (intermediary)
3) REST based calling service to these components ? (calling service)
Thanks in advance
TrackingId - Service Bus 1.0 on premise
Hi,
While using Service Bus for Windows Server 1.0 (on premise) I'm frequently getting error messages that mention a TrackingId:
TrackingId:urn:uuid:fa025763-d137-43bd-b929-4cf65e2f235d
Is there a way to use this TrackingId? Can we find more details about the error by searching for it somewhere (Event Logs, logs files etc..), because usually the errors returned by Service Bus are quite 'cryptic'?
(I've searched in Event Viewer in
Windows – Application/System logs,
Application and Services Logs / Microsoft / ServiceBus / Client / Admin and Operational logs,
and Application and Services Logs / Microsoft-ServiceBus / Admin and Operational Logs
but there is nothing there containing the TrackingId)
Namespaces
What are the FQDNs used by the Azure Service Bus Relay (besides *.servicebus.windows.net)
My customer uses our client application to connect an on-premises WCF service with the Azure Service Bus relay. They want to restrict their firewall to permit only outbound access on ports 443 and 9350-9354 to specific addresses or domains. We know that the namespace is *.servicebus.windows.net, but by watching traffic on the firewall it appears there are others that are used behind the scenes, such as:
*.accesscontrol.windows.net
*.cloudapp.net
*.a-msedge.net
I have not been able to find an official list from Microsoft of the domains that are used by the Service Bus. Does anyone know of such a list that is officially supported by Microsoft? The closest we have found are:
http://blogs.msdn.com/b/brunoterkaly/archive/2012/02/07/azure-ports.aspx
http://blogs.breeze.net/mickb/2011/06/22/AzureServiceBusRequiredFirewallRulesWatchdog.aspx
Matt Wittemann, MVP for CRM (http://icu-mscrm.blogspot.com)
How to create REST back office service + REST Relay Service + REST client.
Hi,
I want to create REST Back Office Service, REST Relay Service & REST client in Azure.
Plz. provide sample code for the same.
Thanks in advance,
How to create SOAP Back Office Service + SOAP Relay Service + SOAP client in Azure ?
Hi,
I want to create SOAP Back Office Service + SOAP Relay Service + SOAP client in Azure.
Plz. provide sample code for above.
Thanks in advance.
How to create SOAP Back Office Service + REST client + REST Relay Service in Azure ?
Hi,
I want to create SOAP Back Office Service + REST client + REST Relay Service in Azure.
Plz. provide me sample code for the same.
Thanks in advance.
How to create REST Back Office Service + SOAP client + SOAP Relay Service in Azure ?
Hi,
I want to create REST Back Office Service + SOAP client + SOAP Relay Service in Azure.
Plz. provide sample code for the same.
Thanks in advance.
Relay oAuth2 and CORS
Hi,
I have REST api as Service Bus Relay endpoint with oAuth2.
When I want to use my api from web browser, before POST or GET browser sends OPTIONS request, and service respond with "The request contains no authorization header" which is not what I want for OPTIONS request.
What is best solution for this?
Service Bus relay - WCF service hosted through a Windows Service
Hi All
I'm using a service bus relay to communicate with a WCF service hosted on-premise. The relay works absolutely fine when I use VS to host the WCF service through a console application and I'm able to consume the services, however when I use Windows Service to host the WCF service I'm not able to create the service bus relay ( not able to view it on the azure portal as well ). Could you point me to an article which deals with the same or help me identify the issues. I've followed the due process necessary to host a WCF service using Windows Services.
Best practice on triggering a processing job on blob upload
Hello everyone
My application requires users to upload 50mb+ files that I need to then process and update the database with details after processing.
Here is my current workflow when web app user tries to upload the file:
1. web app calls my web service to get sass uri to upload file to in azure storage
2. web app uploads the file
3. web app creates a work request in service bus
4. processor worker role is listening for new messages on service bus and takes the work request
5. processor worker processes file, deletes it from azure blob since its no longer needed and updates the database with processing details
My concerns are with steps 2 & 3.
What if web app uploads the file but never get arounds to putting a work request in service bus (due to some bug or network error or whatever), I would be left with orphan files in blob that would never get cleaned up or processed.
What seems like a better solution to me is to have a notification mechanism from azure blob to worker role so that whenever a new file upload happens to a particular container in the blob, worker role would be notified of it and it can process it.
Unfortunately, there is no notifications mechanism built into azure blob.
Do you guys see any other better alternatives for my workflow, do you have any suggestions on how to improve it?
Thanks!
From the IoT Hub to the Database
I have an experimental IoT Hub running with an device placing events on the the event hub.
I've implemented a StoreEventProcessor class to consume the messages, filter the informations and place the data in various tables in a Azure SQL database. Everything runs fine from my development machine. What I don't understand yet is how to get the StoreEventProcessor class running automatically in Azure together with the Iot Hub?
I had a look at Azure Stream Analytics and will use it for alerts but what technology should I use for data sorting, filtering and storage?
Looking forward to any suggestions
Where is the Log for Azure Service Bus Topic Subscriptions Messages Sent/Delivered?
I have an accute problem that I can't see what is going on in the ServiceBus. I need to find/activate the logs. Thanks for any quick tips!
My unanswered, identical, question on Stack:
(See where-is-the-log-for-azure-service-bus-topic-subscriptions-messages-sent-deliver there since I was not trusted to post a link here although I pay for MSDN :-))
After searching in vain... where can I see a log/list of which Azure Service Bus Messages (content?) have been sent to a given Topic+Subscription and which ones have been delivered? Do I have to activate a special feature? If so, which? New or "classic" Azure Management Portal?
Thanks!