Reply
Highlighted
Visitor
Posts: 61
Registered: ‎09-22-2015
Accepted Solution

Webhook to Azure

I want to send Audiencedata to a servicebus in Azure for every session that ends. I use the generic Webhook connector (since the "AudienceDirect" one recently was deprecated). I get http 401 errors back.

 

The servicebus accepting https posts looks like this

https://xxxxxxxx.servicebus.windows.net/tealiumhub/messages?timeout=60&api-version=2014-02-20HTTP/1.... and I send username/password credentials.

 

The webhook has a possibility of mapping custom values in the request, but this field is not documented anywhere (that I can find..) Is it perhaps some additional piece data that the servicebus expects that should be sent using this mapping?

 

Anyone done something similar towards Azure or similar service bus?

 

Reply
0 Kudos
Tealium Employee
Posts: 581
Registered: ‎09-01-2015

Re: Webhook to Azure

Hi @per_lundqvist

 

I think you need to switch the values that you have in the Header Cookie Data. I understand this is a bit counterintutive since typically the key goes on the left, but the idea is:

 

"take this data" and "send it to this data"

i.e.

Map: "value" To: "key"

 

Currently it's setup as Map: "key" To: "value".

 

Please let me know the result of making this change.

 

Cheers,

-Dan

Visitor
Posts: 61
Registered: ‎09-22-2015

Re: Webhook to Azure

A quick test with key-value switched to value-key shows no difference. I get exactly the same error message, a 401 with the message "MissingToken: The authorization header was not found." To me this sounds like the header string is not sent at all.
Btw, the title of this field "Header cookie data"; what exactly does that mean? "Header data" is comprehensible and what I expect, an extra line in the header sent with the data entered. But what has the word "cookie" to do with this?
Reply
0 Kudos
Tealium Employee
Posts: 581
Registered: ‎09-01-2015

Re: Webhook to Azure

Hi @per_lundqvist apologies for the late response. I was traveling last week and then it was a holiday weekend for us in the U.S.

 

I see that you've disabled the connector for now which is good.

 

I have yet to attempt to get data into Azure, but I'm happy to work with you to help figure out if we can do this via the Webhook API (note, the AudienceDirect connector was deprecated because it was combined with the Webhook connector, specifically the "Post/Put - Visitor" actions).

 

Do you have a link to documentation which states how to send data to Azure via server-to-server HTTP pixel requests? If I can get a link, I can review and see if it's something we support. As of now, everything I've seen in regard to Azure has been using a REST API based on Java and requiring OAUTH of some sort.

 

Looking forward to hearing from you.

Reply
0 Kudos
Tealium Employee
Posts: 581
Registered: ‎09-01-2015

Re: Webhook to Azure

I found some documentation at: https://msdn.microsoft.com/en-us/library/azure/dn790664.aspx

 

Let me take this back to my team and see how we need to setup the Authorization header. More to come soon.

Tealium Employee
Posts: 581
Registered: ‎09-01-2015

Re: Webhook to Azure

@per_lundqvist

 

Spoke to engineering and there are 2 requests that we need to make to the webhook to support this.

 

First, the header mapping is currently only for cookies so we need to update to handle straight key/value pairs.


Second, we need to update for the user to define the content type.

 

We have submitted the appropriate request to Engineering and you should either follow up with your AM to determine when this is released, or follow https://community.tealiumiq.com/t5/Announcements/bd-p/welcome to watch when I post AudienceStream releases.

Visitor
Posts: 61
Registered: ‎09-22-2015

Re: Webhook to Azure

Great, our conclusion, also doing some additional tests, was also that we need a proper way to handle header values. Content type we didn't know of so that's a bonus. Thanks a lot for your assistance.
Tealium Employee
Posts: 581
Registered: ‎09-01-2015

Re: Webhook to Azure

@per_lundqvist does the token you used for this test expire? I ask because we are trying to update the Webhook to support this and we received a 401 code that the token expires at "Timestamp:7/13/2016 12:01:27 AM".

Reply
0 Kudos
Tealium Employee
Posts: 581
Registered: ‎09-01-2015

Re: Webhook to Azure

@per_lundqvist just letting you know that today we were able to successfully test updates to the Webhook connector to be able to post data to Azure. The release with this update should be happening in the next week or two.

Reply
0 Kudos
Visitor
Posts: 61
Registered: ‎09-22-2015

Re: Webhook to Azure

Thanks Dan for letting me know. We are really very eagerly waiting for this update/patch to be live. The flaw is holding a critical part of our pilot efforts back. Hope for a release very soon!
Reply
0 Kudos
Tealium Employee
Posts: 581
Registered: ‎09-01-2015

Re: Webhook to Azure

Hey @per_lundqvist

 

Please follow the directions below and let me know if you are successful in connceting.

https://community.tealiumiq.com/t5/AudienceStream/AudienceStream-Webhook-to-Microsoft-Azure/ta-p/152...

 

Also, please note that I had no experience with Azure when setting this up. If anything is mistated, incorrect, or you have any general updates I should make please do not hesitate to reach out and let me know.

 

Cheers!

-Dan

Visitor
Posts: 61
Registered: ‎09-22-2015

Re: Webhook to Azure

Tested this today and it is working fine. We get data sent over to Azure.
Thanks a million!