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)

Securely Call Azure App Service from Dynamics Portal

(0) ShareShare
ReportReport
Posted on by

I'm wondering if there is a way from a Dynamics Portal page to securely call an Azure App Service with only allowing either authenticated users or only calls from the Dynamics Portal?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Dmytro Rutkovskyi Profile Picture
    1,835 on at

    You have asked several questions:

    1) Calling from the portal page azure app service allowing for authenticated users:

    Either way access to the specific page you can easily grant just to specific web-role including auth users role using Web page access control rules  -  https://docs.microsoft.com/en-us/dynamics365/customer-engagement/portals/webpage-access-control 

    From that page, you can call app service with Javascript, and not-auth users will be returned back to the Login screen.

    2) Another way to call app services is from code behind in .NET. You can read PoC here - https://uds.systems/2017/03/20/how-to-run-custom-code-in-dynamics-365-portal/

    3) Allow calls from Dynamics Portal (you need to limit Azure App Service to accept calls only from specified IP range. Hopefully MS didn't change it often)

  • Community Member Profile Picture
    on at

    Thank you for your response.

    1. This sounds like it would more limit user access within a Dynamics Portal
    2. As much as this may work, it seems way too involved for what is needed
    3. This seems like the more accurate approach, just need to get the IPs that Dynamics uses for the portal

    This is more what I'm looking for:

    Dynamics Portal <- (allowed) -> Azure App Service <- (not allowed) -> Public

  • Suggested answer
    Dmytro Rutkovskyi Profile Picture
    1,835 on at

    To restrict usage of Azure App Service to just some IP Addresses you can use : docs.microsoft.com/.../app-service-ip-restrictions

    If you use to authenticate your users with Azure AD B2C you can limit access to the Azure App Service to specific users from the Portal using msftplayground.com/.../restricting-access-to-your-azure-web-application (second section)

    As well if you are relying on Azure AD B2C  you can build really secure interaction with portal companion application

    github.com/.../dynamics-portal-companion-app

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