Authorizing SharePoint Online API Connection in ARM Template

Tran, Nguyen 40 Reputation points
2025-01-23T17:55:45.34+00:00

Hi, I notice that after deploying the SharePoint Online connection alongside with my Logic App from DEV to Non-Prod environment, using ARM template, I need to manually re-authorize the SharePoint connection.

Is there a way to keep it authorized, using the ARM template when deploying? For example, is it possible to provide a service account or service principal credentials in the ARM template for the Microsoft.Web/connections resource?

Thanks!

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,322 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. LeelaRajeshSayana-MSFT 17,021 Reputation points
    2025-01-24T00:02:24.03+00:00

    Hi @Tran, Nguyen Thank you for posting the question on this forum.

    Unfortunately, managed identity/Service Principal authentication is not supported for SharePoint connector. It only connects using credentials. There is a feedback item opened by the users on a similar ask in the past. Here is the link to the feedback request Kindly upvote the feedback request.

    As an alternative in the meantime, you can try to call the SharePoint API using a HTTP trigger. Please refer a sample implementation provided in this article


    If the response helped, please do click Accept Answer and Yes for the answer provided. Doing so would help other community members with similar issue identify the solution. I highly appreciate your contribution to the community.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.