I am new to Service Bus and Azure. My service bus has messages but data looks not readable. I am using Service Bus Explorer. Can you please guide how to see data in readable form?
Thanks
In the following link at step "After connecting to the required instance, click on Register –> Register New Service Endpoint.", choose the message format as "JSON or XML " as suggested by people who have already seen this issue.
https://community.dynamics.com/365/b/ajitpatra365crm/archive/2018/09/26/azure-service-bus-queue-integration-with-d365-part-1
Reference from previous instance of this issue elsewhere
https://community.dynamics.com/crm/f/117/t/155942
https://community.dynamics.com/crm/f/117/t/155628
plugin registration tool when you register your service endpoint you MUST select either JSON or XML for Message Format.
use a 'queue' instead of 'persistentqueue' as the contract type in the Plugin registration tool while configuring the endpoint.
Related
The message is posted to the service bus from Java code and while checking in Azure portal -> service bus -> Possible to see the incoming and successful request.
I have been trying to see the Azure posted message using 'Service Bus Explorer'.
But not able to see the message though there is no issues in Azure portal -> service bus.
I am suspecting about configuration or access restriction. Since I am new to Azure Service Bus, not able to proceed how to process further.
Any help will be greatly appreciated.
I do agree with #Anand Sowmithiran that,
If that consumer application has received the message and marked it as 'consumed', it will no longer appear in Azure portal.
If the Consumer didn't do that then we can check messages as below process:
Firstly, open Service bus then click on Topic as below:
Then click on peek messages as below :
If the message is not sent/failed because of any reason you can check as below:
if the message is in receive mode then you should give session id as correctly as below:
After Clicking on Receive:
Setup till now:
I have created spaces. At the top level I have the IOT hub resource. In two of spaces, I have attached devices to it along with the sensors. I have created a Matcher for the Temperature sensor along with the UDF that is similar to the documentation. I have also assigned permissions to UDF. To send data to IOT hub, I have also fetched the device connection string for the dotnet sample
List of issues I am facing:
When I try to run the dotnet sample, I can see that it is able to reach the UDF(checked it via debugging), but in the UDF, it is not able to access the telemetry variable as given in documentation . The error it shows is :
Unexpected exception occurred while processing user-defined function. Please contact support and provide the correlation ID for the request.
I have created an endpoint to send Raw Telemetry to Event Hub. But I want to send the processed data from UDF to cosmos db. Is it possible? If yes then how?
Thanks for the question and reaching out...for #2 you could do this by doing a notify method in your UDF. You can setup egress to other endpoints such as Event Hub, Event Grid or Service Bus via the endpoint dispatcher. You would setup endpoint via the /endpoint API and then in your UDF you could specify what you want to send out and which changes. For details on the events and endpoints you can see here: https://learn.microsoft.com/en-us/azure/digital-twins/how-to-egress-endpoints
Here's also here is a link to learn more about this connecting Digital Twins over to Logic Apps: https://learn.microsoft.com/en-us/azure/digital-twins/tutorial-facilities-events which would have a similar pattern to sending data over to Cosmos DB.
As for the first one I am not sure if you are still seeing this. Which region? Do you have a correlation ID that you can pass along? Also if you turn on logs and look in Azure Monitor are there details there?
I'm using free tier Azure account. I'm trying to configure activity logs streaming into Event Hubs as per instructions on page - https://learn.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-stream-activity-logs-event-hubs
I have created a new EventHub, Shared Access Policy called "ActivityLogsPolicy" with Manage, Send and Listen permissions.
I used this policy to configure "Export" from Activity logs however it keeps failing with error message "Create or update activity log profilesFailure"
Has anyone encountered this problem ?
I was able to get it to work as follows:
In order to make it work, you have to “Register” support for a provider called “microsoft.insights” the whole thing has look and feel of “Windows Registries” :pensive:
Search for Subscriptions in all services -> Select your subscription -> Resource Providers -> Search for “microsoft.insights” -> Enable it. Then it works
I ran into this same error after moving a subscription to a new enterprise agreement. I was not able to get it working so I needed to create a new subscription.
I am using the Azure Service Bus topic mechanism. I have sent the messages to topic and want to see the messages which are all sent to the topic in azure portal.
I can see the messages count but want to see the actual messages instead of count.
How can I do this?
You can use the Service Bus Explorer.
You can download it from here:
https://github.com/paolosalvatori/ServiceBusExplorer/releases
Here is a tutorial on how to use it:
http://colinvermander.com/tag/service-bus-explorer/
And here is a link for more information about the software and features: https://blogs.msdn.microsoft.com/paolos/2015/03/02/service-bus-explorer-2-6-now-available/
Most easy way get this done ::
https://github.com/paolosalvatori/ServiceBusExplorer/releases
Check the assets folder of required version.
Download the Zip file among others.
unzip to new folder and double click on "ServiceBusExplorer" (not exe.config file).
Now you can connect and see the actual messages.
You can also use Azure Service Bus manager online tool
You will have to provide the connection string in order to use it
Thought it does not answer your question how to view it in the portal directly. Portal has very limited capabilities.
Microsoft has recently released Service Bus Explorer on Portal. We can send/receive/peek messages here. It's still in preview though.
Background
I created a web service on Azure that will take a transaction, convert it to an XML Message (using a Schema) and pass it onto a Azure Service Bus Queue.
I de-serialized the XML object to a string before I move it to the queue due to BizTalk Services inability to de-serialized any XML objects.
All configuration on the queue seem fine and the message looks like this:
<?xml version="1.0" encoding="utf-8"?>
<QueueTransaction xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" TransactionID="1040" TransactionType="MyAirtimeTest1" Amount="123456" Status="NEW" TransactionDate="1/28/2015 12:00:00 AM" xmlns="http://MMBTService.TransactionSchema" />
I create a BizTalk Service Message Flow with Service Bus Queue Source, Xml One-Way Brodge and One-Way External Service EndPoint(The endpoint are a WCF Web Service)
I have two schemas, using a MAP the source XML data to the Web Service Schema.
I selected the Request Message Type (Source Schema), only Validate is set as True, I disabled all the Enrich and my MAP in the XMLTransform.
ERROR I RECEIVE
After I deployed everything, gong into Tracking on BizTalk Services, I get the following error: Data at the root level is invalid. Line 1, position 1.
I have gone through this for a few days now and checked every little detail in de-serializing the message to the bridge config, but cannot find the problem.
Any advise or help will really be appreciated.
From the problem description it seems to be an UTF encoding issue. The Message that you receive in the Azure Service Bus Queue is in UTF-8 encoding. However the Bridge that you created is expecting the message to be UTF-16 encoding.
To make sure this is issue, you can check the messages received in Azure Queue using the Service Bus Explorer developed by Microsoft Guy S Paolo. You can trying changing the message UTF-8 to UTF-16 to same Queue and check if that works.
Hope it helps.
Thanks