ARM templates for O365 connector in Logiv Apps

Sukumar Vinnakota 316 Reputation points
2021-06-01T16:11:02.11+00:00

My requirement is to have a HTTP trigger and a send an mail using O365 action in my logic app. I want to deploy the logic App code using ARM template. Is there any way where i can provide my credentials in ARM templates so that my O365 connector gets authenticated. Please provide the ARM templates for the ask

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

Accepted answer
  1. MayankBargali-MSFT 70,891 Reputation points
    2021-06-02T08:56:12.44+00:00

    @Sukumar Vinnakota At the moment, the Office365 API authorization works with the OAuth 2.0 Authorization Code Grant Type, which means, you can only get the authorization code by getting the user owning the mailbox to sign in to get the code. This behavior of the API is by design. Thus, there is no way to fully automate this.

    • Consider not re-creating api connection after initial manual authentication since there's no need unless cred changes, and only include logic apps in arm template for subsquent deployment.
    • Consider using HTTP with MSI to call graph API directly.

    For connection resource define you can refer to this.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.