在Azure中部署Logic App模板时遇到问题。一切正常,但未验证与OneDrive for Business的连接。为了自动建立连接,我需要在模板中使用哪个参数?
这是我的连接资源代码:
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('connections_onedriveforbusiness_name')]",
"location": "westeurope",
"properties": {
"displayName": "[parameters('onedrive_email_account')]",
"customParameterValues": {},
"api": {
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/westeurope/managedApis/', parameters('connections_onedriveforbusiness_name'))]"
}
}
}
答案 0 :(得分:0)
OneDrive for Business Connections是一个OAuth连接。因此,我们不必在“ parameterValues”中添加任何内容。
资源代码
{
"type": "Microsoft.Web/connections",
"apiVersion": "2016-06-01",
"name": "[parameters('connections_onedriveforbusiness_name')]",
"location": "westeurope",
"properties": {
"displayName": "[parameters('onedrive_email_account')]",
"api": {
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/westeurope/managedApis/',parameters('connections_onedriveforbusiness_name'))]",
"parameterValues": { }
}
}
}
完成ARM模板部署后,需要打开OneDrive for Business Connection进行身份验证。
如果您不喜欢打开门户。您也可以使用LogicAppConnectionAuth PowerShell脚本。 有关更多详细信息,请参阅https://www.bruttin.com/2017/06/13/deploy-logic-app-with-arm.html