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

  • Suggested answer
    Dmytro Rutkovskyi Profile Picture
    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
    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
    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics CRM (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 83 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 52

#3
dkrishna Profile Picture

dkrishna 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans