Hello @Steff and welcome to Microsoft Q&A. I haven't touched API management before, but I will help as best I can.
In digest, I see several asks here:
- where do I put port number in Web activity in Data Factory?
- Should the requests be made through API Management, or Data Factory? (is this just the login, or also data?)
I am a little confused, but I think this is what you are sayings:
Data Factory ---(client cert)---> API Management ---(Basic auth)--->Login API > Bearer token
Data Factory ---(Bearer token)---> Data source
The web activity authentication allows you to choose Basic auth or client certificate, but not both at the same time.
Assuming you are going to use Data Factory's REST dataset and Copy Activity, there are a few things to check before investing more time.
The REST connector only works with JSON data. You mentioned your test data was JSON, so this sounds fine.
Will you be paginating? There are now more pagination options in the REST connector, but you still need to see if it is a compatible mechanism.
I have another possible cause for that error code. Is your API Management inside a private network? By default, Web activity does not support that. The workaround is to install a Self-Hosted Integration Runtime (SHIR) in that network and run the web activity through that.
I haven't found anything on specifying port specifically in Web activity, but I do have a suggestion. Try using it inside the URL like
http://example.com:80/path
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on or upvote button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators