How to call NTLM aauthentication enabled rest service from Azure Logic apps/ Azure function app

Amar-Azure-Practice 661 Reputation points
2022-12-02T05:16:29.43+00:00

Hi

we have rest service running on onpremise with NTLM authentication enabled, we have requirement to call this service from Azure logic apps/ Azure function.

Can you please guide me on this implementation.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,543 questions
Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Cristian SPIRIDON 4,486 Reputation points Volunteer Moderator
    2022-12-02T08:05:21.457+00:00

    Hi,

    I found a blog post that explain how to do NTLM authentication on a rest api:

    https://weblog.west-wind.com/posts/2021/Nov/27/NTLM-Windows-Authentication-Authentication-with-HttpClient

    This is for c#. You should be able to find something for other languages too.

    Hope this helps!

    0 comments No comments

  2. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-12-08T08:49:19.24+00:00

    @Amar-Azure-Practice Thanks for reaching out. Azure logic app doesn't HTTP connector doesn't support NTLM authentication. From function perspective you can leverage hydbrid connection to connect to your on onpremise service. You can refer to this document to create the hybrid connection and how it works. The hybrid connection is not supported in Consumption Plan and works with Windows OS for azure function with other plans as mentioned in this article. You need to create the function app under the app service plan.
    Reference: https://learn.microsoft.com/en-us/azure/azure-functions/functions-networking-options#matrix-of-networking-features

    I haven't tested the NTLM authentication, but I think the Cristian shared third party article talks about how you can pass the credential and as per NetworkCredential class it does support NTLM authentication schemes.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.