sending service bus message with custom property - apache-camel

I'm using the azure service bus component and sending and receiving is working fine. However I need to set a custom property (like you set when sending message in azure portal) to fix the internal routing in service bus.
How do I do this?
azure portal send message
Thanks

Related

Unable to access mule-worker external URL from clients network

I have a mule application deployed on cloudhub. My client is trying to trigger the mule-worker URL (http://mule-worker-appname.us-e2.cloudhub.io:8081) from his network (connecting to their VPN), but it is giving Timed Out error. However, when he tries to hit with SLB URL (http://appname.us-e2.cloudhub.io) he is getting the response.
When client disconnects his VPN then worker URL is also working.
Can someone explain why the worker url is not working where as SLB url is working? I thought worker external url is a public url and can be accessed, then why there is a restriction from their network? Is there some firewalls that client must be having?
When accessing the worker directly (ie using http(s)://mule-worker-myappname.region.cloudhub.io:port) you have to add explicitly the default HTTP (8081) or HTTPS (8082) ports to the request. Example: `http://mule-worker-testapp.us-e2.cloudhub.io:8081)
Also if in the VPC firewall those ports are blocked of access from anywhere (ie public Internet access) you may not be able to access.

MS Graph API frequently/excessively triggering the client app against Active Directory User changes

Background:
I wanted to receive notifications in a Logic App for Azure Active Directory Users' changes. I created a subscription to AD User changes using Microsoft Graph's REST API:
POST https://graph.microsoft.com/v1.0/subscriptions
{
"changeType": "updated",
"notificationUrl": "https://mylogicapp.com",
"resource": "/users",
"expirationDateTime": "2021-11-11T11:00:00.0000000Z",
"clientState": "SecretClientState"
}
I received 201 Created HTTP response code and began receiving the notifications in the application. (See Microsoft Docs).
Issue:
I am receiving a lot more than the expected notifications, very frequently. I just want to receive notifications scoped to AD User resource type and not any child resource type. What could be the issue behind that abundant User changes' notifications? Did I do anything wrong or missed anything while setting the scope in Subscription Creation request?

Logic App send Event to Event Hub - Status 404

I try to get familiar with Azure logic apps therefor I try some simple things like receive request connect to database and / or event hub.
In case of send an event to an event hub I get the following error
{"statusCode":"BadRequest","body":{"code":"ServiceProviderActionFailed","message":"The service provider action failed with error code 'BadRequest' and error message 'Put token failed. status-code: 404, status-description: The messaging entity 'sb://eventhubXX.servicebus.windows.net/eventhubXX/myeventhub' could not be found. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:1234567-1234-1245-1254-1234562345_G15, SystemTracker:evneventhub01.servicebus.windows.net:eventhubxx/myeventhub, Timestamp:2021-09-15T08:41:35.'."}}
I copied the Connectionstring from the EventHub and pasted it into the Logic App.
and I can't figure out what the problem is.
Please help and/or give me a hint.
Thx!
According to Serkant Karaca, 'eventhubXX/myeventhub' is not a valid eventhub name. Eventhub name should not include '/'.
To get the connection string from the Azure Event Hubs, refer this MsftDocumentationSteps
For more details on how to send/receive events from and to the event hubs - refer this # Send events to and receive events from Azure Event Hubs

How do I send Alexa smarthome proactive changeReports from a sensor?

I am using LWA as my oauth2 provider and need to send change reports when my contact sensors change state. Because of LWA account linking I've determined that I will have to store access and refresh tokens in a database from my skill. If that's the case, then the only way to send a report is to have my server send data to the skill which sends the actual directive to the endpoint. If that is the case, how do I create a separate trigger or function that will receive data from my server, repackage it and send to the endpoint?
And if the best way to do this is to have my server contact the endpoint directly, which seems more elegant to me, how would I get the necessary tokens or auth code to my server for storage?
When sending events to Alexa Event Gateway, there's no requirement on whether to send it through your skill Lambda v.s. your backend server. As long as you have the access token of the user, you can send the event from anywhere you want.
I think the easiest way to implement this is to have your skill stores the access and refresh token in DynamoDB. When the device state changes, your backend server would retrieve the access token from DynamoDB and then send the event to Alexa Event Gateway.

How to get client certificate inside web method at asp.net web forms c#?

I configure IIS to get certificates from client. And I can easily get client certificate inside event handler, for example Page_Load
HttpClientCertificate cert = Request.ClientCertificate;
Now I need to create web method what will get client name from certificate and return data for this client. But how can I get client certificate inside static web method where I don't have access to Request?
In any method, including in a static method, you can use HttpContext.Current. If this is non-null, then you can access the Request property. If that is non-null, then you can access the ClientCertificate property.
Of course, it may be null...

Resources