用于逻辑应用程序的ARM模板Office 365连接 [英] ARM template Office 365 connection for logic apps

查看:136
本文介绍了用于逻辑应用程序的ARM模板Office 365连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个逻辑应用程序,试图通过ARM模板进行自动化.

I have a logic app that I am trying to automate through an ARM Template.

逻辑应用程序需要与Office 365的连接.在下面,我具有从Azure门户的自动化窗格生成的连接模板.

The logic app requires a connection to Office 365. Below I have the template for the connection generated from the automation pane of the Azure Portal.

运行脚本时,脚本失败-Azure订阅与Office 365订阅之间存在身份验证问题.

When I run the script it fails - there is an authentication issue between the Azure subscription and the Office 365 subscription.

LinkedAuthorizationFailed

客户端有权在范围上执行操作"Microsoft.Web/locations/managedApis/join/action" ...但是当前租户"curr-tenant-guid"未获得授权 访问链接的订阅"linked-sub-guid" ...

The client has permission to perform action 'Microsoft.Web/locations/managedApis/join/action' on scope ... however the current tenant 'curr-tenant-guid' is not authorized to access linked subscription 'linked-sub-guid' ...

我将无法创建此信任关系来自动执行供应,但是我想将连接创建为占位符,以便可以部署逻辑应用程序,并且可以返回到门户网站以授权连接.这可能吗?还有其他选择吗?

I wont be able to create this trust to automate the provisioning, but I would like to create the connection as placeholder so that the logic app can be deployed and I can go back to the portal to authorise the connection. Is this possible? Are there any other alternatives?

 {
      "comments": "Office 365 user for file monitoring",
      "type": "Microsoft.Web/connections",
      "name": "MyOffice365User",
      "apiVersion": "2016-06-01",
      "location": "northeurope",
      "scale": null,
      "properties": {
        "displayName": "readuser@example.com",
        "customParameterValues": {},
        "api": {
          "id": "[concat('/subscriptions/a6720ff8-f7cb-4bc8-a542-e7868767686/providers/Microsoft.Web/locations/northeurope/managedApis/', 'MyOffice365User')]"
        }
      },
      "dependsOn": []
    }

推荐答案

我发现了三个与同一个问题相关的帖子:

I found three post related to the same problem:

  • Deploying a logic app using ARM templates/powershell
  • Azure Logic Apps - ARM template to deploy filesystem API connection
  • How to set the connection string for a Service Bus Logic App action in an ARM template?

对于所有API连接,问题都是相同的. 用于访问特定服务的连接参数存储在Azure上,当您尝试导出ARM模板时,没有关于这些特定参数的任何信息(由于Azure不会公开您的机密,密码,所以很有意义).

The problem is the same for all API Connection. Connection parameters to access the specific service are stored on Azure and when you try to export the ARM Template there is nothing regarding these specific parameters (which make sens as Azure will not expose your secret, password...).

技巧是查询Azure资源管理API以返回逻辑应用程序中任何连接所需的参数.

The trick is to query Azure Resource Management API to return the parameters needed for any connection in a Logic App.

只需按照本文上的说明进行操作:

Just follow the instructions on this article:

这篇关于用于逻辑应用程序的ARM模板Office 365连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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