Forum Discussion

Mikel2024's avatar
Mikel2024
Copper Contributor
May 27, 2025

LogicApps for AZURE VM with SharePoint farm

Hello

I was wondering if it is possible to access with LogicApps a SharePoint farm in a AZURE VM.

I am a developer and like to use my MSDN Subscription to access Logic Apps for using SharePoint test environment on a VM in AZURE.

If it is possible, how I can do that, what are the steps, like:

(1) App Registration

(2) Configure an endpoint to VM and SharePoint

(3) etc...

 

Thanks in advance for any suggestion or help.

 

Kind regards

Michael 

2 Replies

  • Mikel2024's avatar
    Mikel2024
    Copper Contributor

    Hello Kid_IP

    Thanks for your response.

    The questions for me still exists, how the LogicApp Connector will know that he needs to connect to the SharePoint Farm on my Azure VM? Is that possible over the APP Registration?

    Is it possible to use PNP after that, so I can use a runbook in LogicApps to do something on my SharePoint?

    And if I like to use ONLY a connection to the SharePoint Farm on my VM, is it possible to set the permissions very dedicated to that scenario or is it then possible to access also the SharePoint Online in that tenant. Because I am using a DEV Subscription and like to get a App-Registration only for using my DEV environment in that circumstances. So there is NO WAY to access the SharePoint Online in that tenant...

    Because in the App-Registration you need to setup a SharePoint permission like: Sites.FullControl.All.

    is it possible to dedicate the App-Registration only to the VM?

    Thanks in advance.

    Kind regards

    Michael 

     

  • Yes, here you go to set this up:

     

    1. App Registration in Microsoft Entra ID (formerly Azure AD)
      • Register an app in Microsoft Entra ID to authenticate Logic Apps with SharePoint.
      • Assign necessary permissions for SharePoint API access.
      • Generate client ID and secret for authentication.
    2. Configure Network Access to the Azure VM
      • Ensure the VM has a public or private endpoint accessible from Logic Apps.
      • If using a private network, set up Azure Virtual Network (VNet) integration for Logic Apps.
      • Configure firewall rules to allow inbound connections from Logic Apps.
    3. Create a SharePoint Connector in Logic Apps
      • Use the SharePoint Online or On-Premises connector in Logic Apps.
      • Authenticate using the app registration credentials.
      • Define actions such as "Get Items", "Create File", or "Update List".

     

    Access Denied or You need permission errors in SharePoint Online and OneDrive - SharePoint | Microsoft Learn

Resources