web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to connect to Azure function which is configured for Azure Active Directory authentication from Dynamics CRM

(0) ShareShare
ReportReport
Posted on by 3,115

I have created an Azure function. With no authentication configured, I'm able to create a webhook for this function in Dynamics CRM (using Plugin registration tool) and call the function. but now, I need to enable the Authentication and use AAD auth. This is failing because the CRM is not able to authenticate with Azure functions. Is it possible to integrate Azure Functions(AAD Authenticated) with Dynamics CRM?

All the places, I'm getting the other way around - like Authenticating Azure Function with CRM by registering it as App. In my case, it should be the other way around.

*This post is locked for comments

I have the same question (0)
  • ansrikanth Profile Picture
    3,115 on at

    No... Not really.. the post mentions how to connect to CRM from Azure function with out providing creds. But in my case, I have to call this function from CRM (using Webhooks created in plugin registration tool).

    Thank you

    -Srikanth

  • Suggested answer
    Kalpavruksh D365 CoE Profile Picture
    2,545 on at
    Hi,

    We hope you have followed the below steps to create a webhook in D365 using plug in registration tool.
    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/use-webhooks#invoke-a-webhook-from-a-plugin-or-workflow-activity

    Once this is done, copy the service endpoint ID.
    1. Select webhook from the plugin registration tool.
    2. Copy ID from the properties window at the bottom.

    You can invoke this webhook from your plugin or custom workflow using IServiceEndpointNotificationService.

    https://docs.microsoft.com/en-us/dynamics365/customer-engagement/developer/sample-azure-aware-custom-plugin

    Note: Sending a data from CRM to azure function does not require any AD based authentication. It's a REST API request.
  • ansrikanth Profile Picture
    3,115 on at

    If the Azure function is having AD Based authentication, then it is not possible to invoke from CRM (either through code or webhook message). It gives 401 - forbidden response. This is exactly what I'm looking for www.youtube.com/watch but in this example Marc showed on using with Custom Connector in my case I should use Dynamics CRM. Unfortunately, I don't know how to register Dynamics CMR as an App.

  • pavanmanideep Profile Picture
    1,331 on at
  • ansrikanth Profile Picture
    3,115 on at

    Nope, none of these talks about AAD Authenticated function calling from crm.. :(

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans