Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Securely Call Azure App Service from Dynamics Portal

Posted on by Microsoft Employee

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

  • Suggested answer
    Dmytro Rutkovskyi Profile Picture
    Dmytro Rutkovskyi 1,835 on at
    RE: Securely Call Azure App Service from Dynamics Portal

    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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Securely Call Azure App Service from Dynamics Portal

    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
    Dmytro Rutkovskyi 1,835 on at
    RE: Securely Call Azure App Service from Dynamics Portal

    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)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans