Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure逻辑应用程序与SharePoint连接_Azure_Powershell_Sharepoint_Sharepoint Online_Azure Logic Apps - Fatal编程技术网

Azure逻辑应用程序与SharePoint连接

Azure逻辑应用程序与SharePoint连接,azure,powershell,sharepoint,sharepoint-online,azure-logic-apps,Azure,Powershell,Sharepoint,Sharepoint Online,Azure Logic Apps,我正在创建我的第一个逻辑应用程序,它连接到SharePoint并将条目添加到一些SharePoint列表中 每当我创建SharePoint连接时,它都会将下面的资源添加到我的逻辑应用程序中 { "type": "MICROSOFT.WEB/CONNECTIONS", "apiVersion": "2018-07-01-preview", "name": "[parameters('sharepointonline_1_Connection_Name')]", "location"

我正在创建我的第一个逻辑应用程序,它连接到SharePoint并将条目添加到一些SharePoint列表中

每当我创建SharePoint连接时,它都会将下面的资源添加到我的逻辑应用程序中

{
  "type": "MICROSOFT.WEB/CONNECTIONS",
  "apiVersion": "2018-07-01-preview",
  "name": "[parameters('sharepointonline_1_Connection_Name')]",
  "location": "[parameters('logicAppLocation')]",
  "properties": {
    "api": {
      "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', parameters('logicAppLocation'), '/managedApis/', 'sharepointonline')]"
    },
    "displayName": "[parameters('sharepointonline_1_Connection_DisplayName')]",
    "nonSecretParameterValues": {
      "token:TenantId": "[parameters('sharepointonline_1_token:TenantId')]"
    }
  }
有人能解释一下“token:TenantId”吗。如何/从何处在我的开发人员租户中获取此值。如何将其移动到UAT/PROD环境

每当我使用SharePoint连接重新创建我的logic应用程序时,它就会失去连接,并在屏幕下方显示一个警告图标


有没有办法通过PowerShell或Azure DevOps部署验证此连接?

这似乎是OAuth连接,需要在模板部署后重新授权才能获得有效的访问令牌。某些连接支持使用Azure Active Directory(Azure AD)服务主体来授权在Azure AD中注册的逻辑应用程序的连接

此处的文档显示了如何将Azure data lake的连接资源定义配置为使用模板和Azure AD服务主体的参数值来生成令牌,因此您可能希望检查是否可以以相同的方式配置SharePoint连接

{
   <other-template-objects>
   "type": "MICROSOFT.WEB/CONNECTIONS",
   "apiVersion": "2016-06-01",
   "name": "[parameters('azuredatalake_1_Connection_Name')]",
   "location": "[parameters('LogicAppLocation')]",
   "properties": {
      "api": {
         "id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', 'resourceGroup().location', '/managedApis/', 'azuredatalake')]"
      },
      "displayName": "[parameters('azuredatalake_1_Connection_DisplayName')]",
      "parameterValues": {
         "token:clientId": "[parameters('azuredatalake_1_token:clientId')]",
         "token:clientSecret": "[parameters('azuredatalake_1_token:clientSecret')]",
         "token:TenantId": "[parameters('azuredatalake_1_token:TenantId')]",
         "token:grantType": "[parameters('azuredatalake_1_token:grantType')]"
      }
   }
}
{
“类型”:“MICROSOFT.WEB/CONNECTIONS”,
“apiVersion”:“2016-06-01”,
“名称”:“[参数('azuredatalake_1_连接_名称')”,
“位置”:“[参数('LogicAppLocation')]”,
“财产”:{
“api”:{
“id”:“[concat(subscription().id、/providers/Microsoft.Web/locations/”、'resourceGroup().location'、'/managedApis/'、'azuredatalake')”
},
“displayName”:“[参数('azuredatalake\u 1\u连接\u displayName')”,
“参数值”:{
“token:clientId”:“[参数('azuredatalake_1_token:clientId')”,
“令牌:clientSecret”:“[参数('azuredatalake_1_令牌:clientSecret')”,
“令牌:TenantId”:“[参数('azuredatalake_1_令牌:TenantId')”,
“令牌:grantType”:“[参数('azuredatalake_1_令牌:grantType')”
}
}
}

参考资料:

还有问题吗?它能解决你的问题吗?如果是,请接受。如果没有,请向响应者提供支持使用SPs登录的资源列表?我觉得sharepoint不是其中之一,因此这个答案没有帮助。