Azure Logic应用-通过ARM模板创建Office365连接 [英] Azure Logic App - Office365 connection creation by ARM template

查看:59
本文介绍了Azure Logic应用-通过ARM模板创建Office365连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为CI/CD发布管道的逻辑应用程序创建ARM模板.我的任务是在流程结束时发送电子邮件.

I am trying to create ARM template for my logic app for CI/CD release pipeline. I have a task to send email at the end of the flow.

  1. 我想动态创建Office365连接并添加到ARM模板中的步骤.您能帮忙做一下吗?

  1. I wanted to create Office365 connection dynamically and add to the step in ARM template. Can you please help on how is this done?

此外,是否有必要使用启用了多因素的office365帐户?我们可以使用服务帐户发送电子邮件吗?

Also, is it necessary to use multi-factor enabled office365 account for it? Can we use service account to send email?

谢谢!

推荐答案

当前afaik可以很容易地完成对office365连接器的身份验证.我自己也尝试过.

Currently afaik it’s easily done to authenticate the office365 connector. I’ve tried so myself.

您可以在ARM和

You can create the connector in ARM and this article will show you how to make a connector of your choosing in an ARM template.

问题在于您无法使用client_credentials流对端点进行身份验证,这意味着您无法以非交互方式对用户进行身份验证.

The problems is you can’t authenticate the endpoint using the client_credentials flow which means you can’t authenticate the user in a none interactive way.

GitHub中有一个示例,它将为您处理身份验证,但需要用户登录前一周,我尝试使用它来测试client_credentials(非交互式)流,但无法进行身份验证.

There is an example in GitHub which will handle the authentication for you but requires a user to log in. I tried using this the other week to test using client_credentials (non-interactive) flow but I was unable to authenticate.

这篇关于Azure Logic应用-通过ARM模板创建Office365连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆